tu: Rework passing shared consts
authorConnor Abbott <cwabbott0@gmail.com>
Thu, 7 Sep 2023 14:42:44 +0000 (16:42 +0200)
committerMarge Bot <emma+marge@anholt.net>
Mon, 25 Sep 2023 19:03:56 +0000 (19:03 +0000)
commit26352d26bfca364017bc71c07a7ef44070357481
treec0c8f909c648e04e8fb2cb1b1a3e689f928b87bb
parentefaf77bbddf91947fef32d078b5ce2714ec517f0
tu: Rework passing shared consts

The way this works now is awkward to map to shader objects. We don't
have the pipeline layout when "linking" shaders at draw time, so we have
to piece it together from the shaders. Store the information we need in
the shaders and piece it together.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25276>
src/freedreno/vulkan/tu_cmd_buffer.cc
src/freedreno/vulkan/tu_pipeline.cc
src/freedreno/vulkan/tu_pipeline.h
src/freedreno/vulkan/tu_shader.cc
src/freedreno/vulkan/tu_shader.h