turnip: translate CreateRenderPass to CreateRenderPass2
authorJonathan Marek <jonathan@marek.ca>
Sat, 13 Jun 2020 01:19:20 +0000 (21:19 -0400)
committerMarge Bot <eric+marge@anholt.net>
Wed, 24 Jun 2020 22:12:33 +0000 (22:12 +0000)
commit70046145d19454ad74d98e719ee5aba8c8df86ae
tree6f2a0e6a1251249c41f250cb5811f066975e939b
parent01e2893cba4dd0f3ef98020ef0707510ce2cfde8
turnip: translate CreateRenderPass to CreateRenderPass2

It doesn't cut down the code size by much, and might not be the ideal for
performance (unless the compiler is unexpectedly smart), but makes it
easier to maintain (no modifying the same code in two places) and will
allow some simplifications since we wont have to worry about trying to
share code between the two versions.

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5451>
src/freedreno/vulkan/tu_pass.c