turnip: use global bo for clear blit shaders
authorJonathan Marek <jonathan@marek.ca>
Mon, 6 Jul 2020 15:48:54 +0000 (11:48 -0400)
committerMarge Bot <eric+marge@anholt.net>
Tue, 7 Jul 2020 16:40:45 +0000 (16:40 +0000)
commit14c554a391ebe5c6a6f9e6f2c62fe29660dc32ea
treec4e17e769471c40e1bfa9d4257c1d82aa7171ffd
parent10020b8d17589126ef5f54e88fc49f0f6880fcbe
turnip: use global bo for clear blit shaders

Fill the global bo will all possible shaders for 3D clear/blit. Note the
global bo size is still <4k (so this doesn't cost any extra memory), this
saves having to allocate shaders in sub_cs everytime the 3D path is used.

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5776>
src/freedreno/vulkan/tu_clear_blit.c
src/freedreno/vulkan/tu_device.c
src/freedreno/vulkan/tu_private.h