anv: don't reserve a particular register for draw count
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Wed, 5 Feb 2020 07:50:16 +0000 (09:50 +0200)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Wed, 20 May 2020 11:02:27 +0000 (14:02 +0300)
commita96d92a689a3e6112b5e2b4cc1b99b1152d7961a
treed60142b735f57ea79b3790664d972e8e229b4dff
parent796fccce631bf8ecb6ce2fd1a68f219788693a6e
anv: don't reserve a particular register for draw count

By using the same mi_builder throughout the draw call, we can just
allocate a register from the mi_builder and unref it when we're done.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Rafael Antognolli <rafael.antognolli@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/2775>
src/intel/vulkan/genX_cmd_buffer.c
src/intel/vulkan/genX_query.c