tu: Start tracking shaders independently of pipeline
authorConnor Abbott <cwabbott0@gmail.com>
Mon, 4 Sep 2023 17:58:36 +0000 (19:58 +0200)
committerMarge Bot <emma+marge@anholt.net>
Mon, 25 Sep 2023 19:03:56 +0000 (19:03 +0000)
commitdf007dcfe7d357e442c1e23b3215ccfaf14d05f7
treeaa429cebb5969e6ea2e7916a348ff07838d569fb
parent0f022c3076ee03eff309f98aefcae125140a4825
tu: Start tracking shaders independently of pipeline

We will gradually transition over users of cmd->state.pipeline and
TU_CMD_DIRTY_PIPELINE to shaders and derived state from shaders. This
just puts in place the framework to start doing that.

When importing a library with all of the shader state, we now have to
import the shaders in addition to the program, so that they are
available when we bind the pipeline.

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