radeonsi/gfx11: updated si_is_format_supported

GFX11 format table is different than GFX10, the change is
required to pass below deqp tests for gfx11:
dEQP-GLES3.functional.texture.specification.teximage2d_pbo*,
texsubimage2d_pbo*, teximage3d_pbo*, texsubimage3d_pbo*.

Signed-off-by: Ikshwaku Chauhan <ikshwaku.chauhan@amd.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22466>
This commit is contained in:
Ikshwaku Chauhan
2023-04-13 19:32:53 +05:30
committed by Marge Bot
parent 543b6ca7c4
commit da3b8c1e6b
+3 -1
View File
@@ -2368,7 +2368,9 @@ static unsigned si_is_vertex_format_supported(struct pipe_screen *screen, enum p
if (sscreen->info.gfx_level >= GFX10) {
const struct gfx10_format *fmt = &ac_get_gfx10_format_table(&sscreen->info)[format];
if (!fmt->img_format || fmt->img_format >= 128)
unsigned first_image_only_format = sscreen->info.gfx_level >= GFX11 ? 64 : 128;
if (!fmt->img_format || fmt->img_format >= first_image_only_format)
return 0;
return usage;
}