mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 22:00:13 +01:00
radeonsi/gfx9: fix TC-compatible stencil compression
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
parent
8a264dd829
commit
0f827b51c0
2 changed files with 8 additions and 2 deletions
|
|
@ -1345,8 +1345,8 @@
|
|||
#define V_008F14_IMG_DATA_FORMAT_RESERVED_56 0x38
|
||||
#define V_008F14_IMG_DATA_FORMAT_4_4 0x39
|
||||
#define V_008F14_IMG_DATA_FORMAT_6_5_5 0x3A
|
||||
#define V_008F14_IMG_DATA_S8_16 0x3B
|
||||
#define V_008F14_IMG_DATA_S8_32 0x3C
|
||||
#define V_008F14_IMG_DATA_FORMAT_S8_16 0x3B
|
||||
#define V_008F14_IMG_DATA_FORMAT_S8_32 0x3C
|
||||
#define V_008F14_IMG_DATA_FORMAT_8_AS_32 0x3D
|
||||
#define V_008F14_IMG_DATA_FORMAT_8_AS_32_32 0x3E
|
||||
#define V_008F14_IMG_DATA_FORMAT_32_AS_32_32_32_32 0x3F
|
||||
|
|
|
|||
|
|
@ -3227,6 +3227,12 @@ si_make_texture_descriptor(struct si_screen *screen,
|
|||
data_format = V_008F14_IMG_DATA_FORMAT_24_8;
|
||||
}
|
||||
|
||||
/* S8 with Z32 HTILE needs a special format. */
|
||||
if (screen->b.chip_class >= GFX9 &&
|
||||
pipe_format == PIPE_FORMAT_S8_UINT &&
|
||||
tex->tc_compatible_htile)
|
||||
data_format = V_008F14_IMG_DATA_FORMAT_S8_32;
|
||||
|
||||
if (!sampler &&
|
||||
(res->target == PIPE_TEXTURE_CUBE ||
|
||||
res->target == PIPE_TEXTURE_CUBE_ARRAY ||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue