tu: Support private memory

Graphics / Mesa 3D Graphics Library / Mesa - Connor Abbott [gmail.com] - 19 November 2020 16:55 UTC

Allocate enough space and then program the registers correctly. We currently allocate scratch memory as part of the pipeline, because the alternative of trying to share it across pipelines is a bit trickier due to the need for the configs to exactly match whenever we reuse the same buffer for different shaders.

Part-of:

4d44461dd51 tu: Support private memory
src/freedreno/vulkan/tu_clear_blit.c | 11 ++--
src/freedreno/vulkan/tu_cmd_buffer.c | 3 -
src/freedreno/vulkan/tu_pipeline.c | 110 ++++++++++++++++++++++++++++++-----
src/freedreno/vulkan/tu_private.h | 8 +++
4 files changed, 110 insertions(+), 22 deletions(-)

Upstream: cgit.freedesktop.org


  • Share