anv/image: Remove extra dependency on HiZ-specific variable
authorNanley Chery <nanley.g.chery@intel.com>
Wed, 22 Feb 2017 02:17:59 +0000 (18:17 -0800)
committerNanley Chery <nanley.g.chery@intel.com>
Thu, 2 Mar 2017 21:17:54 +0000 (13:17 -0800)
commit258af3a856328934d30b7cdf626d5fdba76852f2
tree1e1ddcfee7d58d39493aad7b14fb588c8b9fa4bd
parent54d29ee65f65b4e8541745d83bc741e68147cd28
anv/image: Remove extra dependency on HiZ-specific variable

surf_usage is only useful to image views that may use HiZ buffers.
Storage image views don't use HiZ buffers.

v2: Update commit message and add an assertion.

Fixes: 055ff2ec521 ("anv: Replace anv_image_has_hiz() with ISL_AUX_USAGE_HIZ")
Signed-off-by: Nanley Chery <nanley.g.chery@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/anv_image.c