radeonsi: actually enable VBOs in user SGPRs
authorMarek Olšák <marek.olsak@amd.com>
Tue, 14 Jan 2020 02:10:09 +0000 (21:10 -0500)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 14 Jan 2020 18:42:36 +0000 (13:42 -0500)
Fixes: 363b4027fcb - radeonsi: put up to 5 VBO descriptors into user SGPRs
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
src/gallium/drivers/radeonsi/si_pipe.c

index f37a4b222bb912ca6fa3f7d98cd1d47cded6964a..3120d4e0236bc826331718d851b5c8a68aad9f7e 100644 (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. */