anv/cmd_buffer: Rework surface relocation helpers
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 31 May 2018 01:30:50 +0000 (18:30 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 31 May 2018 23:51:46 +0000 (16:51 -0700)
commit1f2328c3b703c846749c2bef165618f068fa18ae
treea73f958ac554dde106f227787253bd9f6de873b3
parentf270a0973741724d5bdddd30e4b241caa12a1c29
anv/cmd_buffer: Rework surface relocation helpers

This commit renames add_surface_state_reloc to add_surface_reloc and
makes it takes an address.  We also rename add_image_view_relocs to
add_surface_state_relocs because it takes an anv_surface_state and
doesn't really care about the image view anymore.

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