radeonsi: actually enable VBOs in user SGPRs

Fixes: 363b4027fc - radeonsi: put up to 5 VBO descriptors into user SGPRs
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
This commit is contained in:
Marek Olšák
2020-01-13 21:10:09 -05:00
parent f341db3e17
commit 9e699ae690

View File

@@ -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. */