From d60f72a9f0e4a0ea04391731211c18e755e0346f Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Sat, 15 Oct 2016 15:24:45 +0200 Subject: radeonsi/gfx9: image descriptor changes in immutable fields MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The border color swizzle logic was copied from Vulkan. It doesn't make any sense to me, but it passes all piglits except the stencil ones. Reviewed-by: Nicolai Hähnle --- src/amd/common/gfx9d.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/amd/common') diff --git a/src/amd/common/gfx9d.h b/src/amd/common/gfx9d.h index 797bdcc2876..e295a1da820 100644 --- a/src/amd/common/gfx9d.h +++ b/src/amd/common/gfx9d.h @@ -1466,6 +1466,12 @@ #define S_008F20_BC_SWIZZLE(x) (((unsigned)(x) & 0x07) << 29) #define G_008F20_BC_SWIZZLE(x) (((x) >> 29) & 0x07) #define C_008F20_BC_SWIZZLE 0x1FFFFFFF +#define V_008F20_BC_SWIZZLE_XYZW 0 +#define V_008F20_BC_SWIZZLE_XWYZ 1 +#define V_008F20_BC_SWIZZLE_WZYX 2 +#define V_008F20_BC_SWIZZLE_WXYZ 3 +#define V_008F20_BC_SWIZZLE_ZYXW 4 +#define V_008F20_BC_SWIZZLE_YXWZ 5 #define R_008F24_SQ_IMG_RSRC_WORD5 0x008F24 #define S_008F24_BASE_ARRAY(x) (((unsigned)(x) & 0x1FFF) << 0) #define G_008F24_BASE_ARRAY(x) (((x) >> 0) & 0x1FFF) -- cgit v1.2.3