tu: Pass firstIndex directly to CP_DRAW_INDX_OFFSET
authorConnor Abbott <cwabbott0@gmail.com>
Thu, 25 Jun 2020 10:23:49 +0000 (12:23 +0200)
committerMarge Bot <eric+marge@anholt.net>
Fri, 26 Jun 2020 10:05:24 +0000 (10:05 +0000)
commitba5e1c5310f3954aae803fe82814b22a86beeef7
treecd6dc1e476fa73d7b270de79d916b58a444221f5
parent259d07a2ff8ef471f47e3618399977514177233e
tu: Pass firstIndex directly to CP_DRAW_INDX_OFFSET

Saves some minor overhead, cleans things up a bit, and removes one more
unknown. We now program the internal registers in the same way between
direct/indirect draws.

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