From 9e699ae69026588d2a4cccc67de07d0b91b40ca1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Mon, 13 Jan 2020 21:10:09 -0500 Subject: [PATCH] radeonsi: actually enable VBOs in user SGPRs Fixes: 363b4027fcb - radeonsi: put up to 5 VBO descriptors into user SGPRs Reviewed-by: Pierre-Eric Pelloux-Prayer --- src/gallium/drivers/radeonsi/si_pipe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c index f37a4b222bb..3120d4e0236 100644 --- a/src/gallium/drivers/radeonsi/si_pipe.c +++ b/src/gallium/drivers/radeonsi/si_pipe.c @@ -1102,7 +1102,7 @@ radeonsi_screen_create_impl(struct radeon_winsys *ws, &prim_discard_vertex_count_threshold, &tmp); /* Compute-shader-based culling doesn't support VBOs in user SGPRs. */ - if (prim_discard_vertex_count_threshold != UINT_MAX) + if (prim_discard_vertex_count_threshold == UINT_MAX) sscreen->num_vbos_in_user_sgprs = sscreen->info.chip_class >= GFX9 ? 5 : 1; /* Determine tessellation ring info. */ -- 2.30.2