anv: Update the HiZ sampling helper
authorNanley Chery <nanley.g.chery@intel.com>
Fri, 17 Feb 2017 18:14:59 +0000 (10:14 -0800)
committerNanley Chery <nanley.g.chery@intel.com>
Thu, 2 Mar 2017 21:17:54 +0000 (13:17 -0800)
commit54d29ee65f65b4e8541745d83bc741e68147cd28
tree45bccb9c8f9da7c38363df580b634c67645d8ac4
parent172747a963f92f7d9a1a4eb5ef6683f53426af0b
anv: Update the HiZ sampling helper

Validate the inputs, verify that this image has a depth
buffer, use gen_device_info instead of

v2:
- Add parenthesis (Jason Ekstrand)
- Make parameters const
- Use gen_device_info instead of gen
- Pass aspect to missed function in transition_depth_buffer

Signed-off-by: Nanley Chery <nanley.g.chery@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/anv_blorp.c
src/intel/vulkan/anv_image.c
src/intel/vulkan/anv_private.h
src/intel/vulkan/genX_cmd_buffer.c