radeonsi: skip buffer_atomic_add(ptr, n) when n=0 in the prim discard CS
authorMarek Olšák <marek.olsak@amd.com>
Tue, 1 Jun 2021 04:35:34 +0000 (00:35 -0400)
committerMarge Bot <eric+marge@anholt.net>
Mon, 21 Jun 2021 19:03:29 +0000 (19:03 +0000)
commit4b5eb336e18a8ccc8425e107e316a239a1f4f943
treedf733168f435e755ea02d566b72b8d6deaed4aad
parentdf4de12af48b66578e5fe2fce557abd713f28980
radeonsi: skip buffer_atomic_add(ptr, n) when n=0 in the prim discard CS

This improves performance of the shader nicely.

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