radeonsi: fix issues with draw-level splitting for the prim discard CS
authorMarek Olšák <marek.olsak@amd.com>
Tue, 1 Jun 2021 01:58:37 +0000 (21:58 -0400)
committerMarge Bot <eric+marge@anholt.net>
Mon, 28 Jun 2021 13:23:14 +0000 (13:23 +0000)
commit81365c86f95caa6bc966bf7b1e6884c83a73a148
tree9c8f3c0a8cb6f5e29c8119244500c4bcac2c8edd
parent9fa0d2cf35017b0cece7d333e9bd8fd01f4b3f61
radeonsi: fix issues with draw-level splitting for the prim discard CS

- move the unreachable statement up by inlining u_decomposed_prims_for_vertices
- the last draw was not submitted after splitting
- move "count" to the non-multi draw path

Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11510>
src/gallium/drivers/radeonsi/si_compute_prim_discard.c