Module: Mesa
Branch: main
Commit: e8eb6d13a5d089be0c637407e4d10db19620c2ad
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=e8eb6d13a5d089be0c637407e4d10db19620c2ad

Author: Chia-I Wu <[email protected]>
Date:   Tue May 17 16:30:34 2022 -0700

turnip: fix tu6_pack_border_color for z24

The value should be at the bottom 24 bits, not at the top.

dEQP-VK.pipeline.sampler.* still passes.  This fixes most of
dEQP-GLES31.functional.texture_border_clamp.formats.*depth* on angle.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16570>

---

 src/freedreno/vulkan/tu_util.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/freedreno/vulkan/tu_util.h b/src/freedreno/vulkan/tu_util.h
index eb62c0be74c..58a35da590f 100644
--- a/src/freedreno/vulkan/tu_util.h
+++ b/src/freedreno/vulkan/tu_util.h
@@ -320,7 +320,7 @@ tu6_pack_border_color(struct bcolor_entry *bcolor, const 
VkClearColorValue *val,
    PACK_F(ui8, r8g8b8a8_unorm);
    PACK_F(si8, r8g8b8a8_snorm);
    PACK_F(rgb10a2, r10g10b10a2_unorm);
-   util_format_x8z24_unorm_pack_z_float((uint8_t*) &bcolor->z24,
+   util_format_z24x8_unorm_pack_z_float((uint8_t*) &bcolor->z24,
                                         0, val->float32, 0, 1, 1);
    PACK_F(srgb, r16g16b16a16_float); /* TODO: clamp? */
 #undef PACK_F

Reply via email to