From c29f5fe41cea2d31188c363f039f0d55d0fff79b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Tue, 7 Nov 2017 03:29:36 +0100 Subject: [PATCH] radeonsi/gfx9: don't set gs_table_depth MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reviewed-by: Nicolai Hähnle --- src/gallium/drivers/radeonsi/si_pipe.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c index d39e412de9a..649a72e0fcf 100644 --- a/src/gallium/drivers/radeonsi/si_pipe.c +++ b/src/gallium/drivers/radeonsi/si_pipe.c @@ -866,6 +866,10 @@ static void si_destroy_screen(struct pipe_screen* pscreen) static bool si_init_gs_info(struct si_screen *sscreen) { + /* gs_table_depth is not used by GFX9 */ + if (sscreen->b.chip_class >= GFX9) + return true; + switch (sscreen->b.family) { case CHIP_OLAND: case CHIP_HAINAN: @@ -887,8 +891,6 @@ static bool si_init_gs_info(struct si_screen *sscreen) case CHIP_POLARIS10: case CHIP_POLARIS11: case CHIP_POLARIS12: - case CHIP_VEGA10: - case CHIP_RAVEN: sscreen->gs_table_depth = 32; return true; default: -- 2.30.2