tu: Abstract driver-specific const state
authorConnor Abbott <cwabbott0@gmail.com>
Fri, 16 Sep 2022 14:13:31 +0000 (16:13 +0200)
committerMarge Bot <emma+marge@anholt.net>
Wed, 21 Sep 2022 11:20:15 +0000 (11:20 +0000)
commit0a47002a65c6932359e29e2d09144a3273e275a2
tree8d69588943ff2c93ec20b20a6f5f1a0bd52d2ee9
parent29262f3337a5d64d5e5eaa759d00910fcf030911
tu: Abstract driver-specific const state

Right now, we pass around the push constant state in a lot of places,
but we'll want to add other driver-managed constants. Add a struct which
we can add to, and separate out the total driver-reserved constants from
the size of push constants.

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