turnip: remove duplicated stage2opcode and stage2shaderdb
authorJonathan Marek <jonathan@marek.ca>
Sat, 13 Jun 2020 17:52:45 +0000 (13:52 -0400)
committerJonathan Marek <jonathan@marek.ca>
Mon, 15 Jun 2020 19:34:52 +0000 (15:34 -0400)
commit067370fe87d6015e973e2a6646ca83924757bda7
tree4f18213b3b67b2ad9db1c2a802b3bb2295fbaf26
parenta02e7f679975bba76ee2a5c64b5b43432619b5a5
turnip: remove duplicated stage2opcode and stage2shaderdb

Reduce 3 copies of this same logic into a single one.

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