radeonsi/gfx9: always use IMG_DATA_FORMAT_S8_32 for 8-bit stencil
authorMarek Olšák <marek.olsak@amd.com>
Sat, 2 May 2020 20:35:16 +0000 (16:35 -0400)
committerMarge Bot <eric+marge@anholt.net>
Tue, 5 May 2020 16:27:29 +0000 (16:27 +0000)
I wanna remove dependency on tc_compatible_htile from non-dynamic states.
This should be the same as 8_UINT if HTILE is disabled.

Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4866>

src/gallium/drivers/radeonsi/si_state.c

index baa65452e3650124b0be0c781d231f92db359388..2efafe6b61af1bd43ecb1502731e40e48ea210ae 100644 (file)
@@ -3997,8 +3997,7 @@ static void si_make_texture_descriptor(struct si_screen *screen, struct si_textu
    }
 
    /* S8 with Z32 HTILE needs a special format. */
-   if (screen->info.chip_class == GFX9 && pipe_format == PIPE_FORMAT_S8_UINT &&
-       tex->tc_compatible_htile)
+   if (screen->info.chip_class == GFX9 && pipe_format == PIPE_FORMAT_S8_UINT)
       data_format = V_008F14_IMG_DATA_FORMAT_S8_32;
 
    if (!sampler && (res->target == PIPE_TEXTURE_CUBE || res->target == PIPE_TEXTURE_CUBE_ARRAY ||