diff options
author | Marek Olšák <[email protected]> | 2016-10-15 15:24:45 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-03-30 14:44:33 +0200 |
commit | d60f72a9f0e4a0ea04391731211c18e755e0346f (patch) | |
tree | 0b7a14bc0555db5bfa5de93b89b494bc46afcf4d /src/amd/common | |
parent | dfd2b549488beb8af9c83255dfd5585b010ba4e3 (diff) |
radeonsi/gfx9: image descriptor changes in immutable fields
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 <[email protected]>
Diffstat (limited to 'src/amd/common')
-rw-r--r-- | src/amd/common/gfx9d.h | 6 |
1 files changed, 6 insertions, 0 deletions
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) |