tu/a7xx: Fix CmdDrawIndirectByteCountEXT
authorDanylo Piliaiev <dpiliaiev@igalia.com>
Mon, 10 Jul 2023 13:07:39 +0000 (15:07 +0200)
committerMarge Bot <emma+marge@anholt.net>
Tue, 5 Sep 2023 16:19:30 +0000 (16:19 +0000)
commit4b84ae157a9b39429c6ab389f118785374848979
tree0a0d08e592d5d6a96368422298d1f3244e7830ce
parenta2191239f9fc106d227b11161cd0bb89f3706c99
tu/a7xx: Fix CmdDrawIndirectByteCountEXT

On a7xx DI_SRC_SEL_AUTO_INDEX is used instead of DI_SRC_SEL_AUTO_XFB.

On a7xx the counter value and offset are shifted right by 2, so
the vertexStride should also be in units of dwords.
CTS doesn't test this though.

Fixes:
 dEQP-VK.transform_feedback.simple.draw_indirect_*

Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23217>
src/freedreno/vulkan/tu_cmd_buffer.cc