radeonsi: add optimal multi draws and draw-level splitting for prim discard CS
authorMarek Olšák <marek.olsak@amd.com>
Tue, 1 Jun 2021 01:59:28 +0000 (21:59 -0400)
committerMarge Bot <eric+marge@anholt.net>
Mon, 28 Jun 2021 13:23:14 +0000 (13:23 +0000)
commitb141e50282752cd1ad6de274fb0e66a3f7e6d011
treea1b1ede3dac0a50f75ee81f2ea68b873b6f27e7b
parent81365c86f95caa6bc966bf7b1e6884c83a73a148
radeonsi: add optimal multi draws and draw-level splitting for prim discard CS

This is a partial rewrite of some parts of the code.

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
src/gallium/drivers/radeonsi/si_pipe.h
src/gallium/drivers/radeonsi/si_shader_llvm.c
src/gallium/drivers/radeonsi/si_state_draw.cpp