tu: Don't use pipeline for dynamic draw states
authorConnor Abbott <cwabbott0@gmail.com>
Tue, 12 Sep 2023 18:18:31 +0000 (20:18 +0200)
committerMarge Bot <emma+marge@anholt.net>
Mon, 25 Sep 2023 19:03:57 +0000 (19:03 +0000)
commit768b1eacc7724ac5091d11f83509d8745d15f205
treeb2b3aeca880edfc6e72c97316aaefad112f78356
parentedce0af24240026b6156f7baef4d3247ff35910f
tu: Don't use pipeline for dynamic draw states

For dynamic states that are precompiled from static state, just set the
corresponding dynamic draw state directly, and keep a record of which
ones are precompiled when we go to emit states at draw time so we don't
accidentally re-emit them.

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