anv: Add get_push_range_address() helper.
authorRafael Antognolli <rafael.antognolli@intel.com>
Tue, 26 Nov 2019 21:05:06 +0000 (13:05 -0800)
committerRafael Antognolli <rafael.antognolli@intel.com>
Wed, 4 Dec 2019 20:48:25 +0000 (20:48 +0000)
commit67d2cb3e9367a723d6f6310f75048c6d97afe9d4
tree658986529524eed197436d53d755f326fecebe98
parentc0225a728e1f33b2073af7c64d9449680aece536
anv: Add get_push_range_address() helper.

Add a helper function to get the push range address. Once we have a
separate function for emitting gen12 push constants, we can use this
helper and avoid duplicating code.

v3: Do not add range->start to the address in gen7 (Caio).
v4: Do not drop range->start from gen7 (Caio, Jason).

Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
src/intel/vulkan/genX_cmd_buffer.c