radeonsi: don't allocate LDS for TCS outputs if they are not read
authorMarek Olšák <marek.olsak@amd.com>
Fri, 13 Nov 2020 04:24:04 +0000 (23:24 -0500)
committerMarge Bot <eric+marge@anholt.net>
Mon, 23 Nov 2020 02:22:21 +0000 (02:22 +0000)
commitbdee9dc633fd3aed4c27bf09c285dfd788c803ad
tree44c5c8b268ba60c14c0baada12acc3579139a4e5
parent10beddf6595499f17c6c23ec0409160fe1e952df
radeonsi: don't allocate LDS for TCS outputs if they are not read

This reduces LDS usage by 50% in Unigine Heaven.

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