OSDN Git Service

anv/cmd_buffer: Adjust the image view reloc function
authorNanley Chery <nanley.g.chery@intel.com>
Sat, 11 Mar 2017 01:24:23 +0000 (17:24 -0800)
committerNanley Chery <nanley.g.chery@intel.com>
Mon, 26 Jun 2017 18:09:12 +0000 (11:09 -0700)
commit5ca2fbcee2cebed7bfa820db09dc6aa6ccf4f1ff
tree6284a0123edf15cf9e40b0443e0f8e4a10a337a5
parent5f4f50419cc351b9cb55118d970885d96e4ac254
anv/cmd_buffer: Adjust the image view reloc function

Make the function take in an image instead of an image view. This
enables us to record relocations for surfaces states created outside of
the anv_CreateImageView path.

v2 (Jason Ekstrand):
- Use image->offset instead of surf_offset in aux_offset calculation.

Signed-off-by: Nanley Chery <nanley.g.chery@intel.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/genX_cmd_buffer.c