tu: Don't reference pipeline for some draw states
authorConnor Abbott <cwabbott0@gmail.com>
Tue, 12 Sep 2023 11:06:27 +0000 (13:06 +0200)
committerMarge Bot <emma+marge@anholt.net>
Mon, 25 Sep 2023 19:03:56 +0000 (19:03 +0000)
commit2d00b2b9c7d2a28d20732ad224ea326d6d3bc5b0
treee8399f3547e19930883a121bfc15b365a1eaf25c
parent1d74af8bb64ea59eb7b4e0a2c2332c07ad34007e
tu: Don't reference pipeline for some draw states

These draw states are things that depend on pipeline-only state:

- The load state depends on knowing the pipeline layout, which we won't
  know for a shader that's loaded from a binary. This is going away on
  a7xx anyway, and we should be able to use the a7xx strategy of
  prefetching the descriptors in the preamble on a6xx too.
- The prim order state depends on feedback loops and raster order
  attachment access, which isn't supported at the moment.

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