turnip: share code between 3D blit/clear path and tu_pipeline
authorJonathan Marek <jonathan@marek.ca>
Thu, 11 Jun 2020 12:38:18 +0000 (08:38 -0400)
committerMarge Bot <eric+marge@anholt.net>
Fri, 12 Jun 2020 15:09:06 +0000 (15:09 +0000)
commit093c4137224a59536af9e8062f5c98c2dc136ba1
treef01d98e6c4b0264e0caea663d0c0098573e66dbb
parent13525a9c706bc3b5aef2b9bc649644f2e3607f31
turnip: share code between 3D blit/clear path and tu_pipeline

Instead of filling out registers manually, fill out ir3 structs and re-use
code from tu_pipeline.

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