radv: add dgc_emit_state() helper
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 12 Jun 2023 07:34:52 +0000 (09:34 +0200)
committerMarge Bot <emma+marge@anholt.net>
Fri, 16 Jun 2023 06:19:13 +0000 (06:19 +0000)
commitcc3a9b90a97c81d0736de0490923ffb748330763
tree90874691ebfcc57fdb5e23c5a4ab1992f7ad02ff
parent1d0c18ba3b20f65972b249c8d8d7db61d1c48faf
radv: add dgc_emit_state() helper

For emitting VK_INDIRECT_COMMANDS_TOKEN_TYPE_STATE_FLAGS_NV.
The scissor workaround for GFX9 is only needed if the state is emitted,
so move it there as well.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23584>
src/amd/vulkan/radv_device_generated_commands.c