anv: Use full anv_addresses in anv_surface_state
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 31 May 2018 00:16:52 +0000 (17:16 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 31 May 2018 23:51:46 +0000 (16:51 -0700)
commitde1c5c1b503fb190e5d169654ce207777e699195
tree7b5627234be10ae66b857f3f7b161230604e3f04
parent94081ffc80cc993c1c76cf427d8efd37e68de6f8
anv: Use full anv_addresses in anv_surface_state

This refactors surface state filling to work entirely in terms of
anv_addresses instead of offsets.  This should make things simpler for
when we go to soft-pin image buffers.  Among other things,
add_image_view_relocs now only cares about the addresses in the surface
state and doesn't really need the image view anymore.

Reviewed-by: Scott D Phillips <scott.d.phillips@intel.com>
src/intel/vulkan/anv_image.c
src/intel/vulkan/anv_private.h
src/intel/vulkan/genX_cmd_buffer.c