anv: Don't add dynamic state base address to push constants on Gen7
authorJason Ekstrand <jason@jlekstrand.net>
Tue, 7 Jan 2020 23:51:03 +0000 (17:51 -0600)
committerJason Ekstrand <jason@jlekstrand.net>
Fri, 10 Jan 2020 01:44:06 +0000 (19:44 -0600)
commitca6b3b11af29b93ac73d4ca2677aa6b34837fdfe
treeb947b0ef69f2aa389a4a31db381fec0f73796a4b
parent044da65f52b1de20fce608f83a6313c86d62b5b8
anv: Don't add dynamic state base address to push constants on Gen7

Because Gen7 push constants are already relative to dynamic state base
address, they aren't really an address.  It's deceptive to return an
address from the helper function.  Instead, let's leave it as a
special-case in the gen7-11 helper; we don't need the helper for code
de-duplication for Gen7 anyway.

Fixes: 67d2cb3e9367a "anv: Add get_push_range_address() helper"
Closes: #2323
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
src/intel/vulkan/genX_cmd_buffer.c