OSDN Git Service

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)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 16 Mar 2017 01:34:01 +0000 (01:34 +0000)
commit0d7d4f973d17d74ea9a177c09a0b70bf7370b190
tree9ee1389c347c31cfbd763b311c6a5c685cd309e6
parented5c3fad3778d338f0f886e87381bd9e1d3737cf
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>
(cherry picked from commit 258af3a856328934d30b7cdf626d5fdba76852f2)
[Emil Velikov: resolve trivial conflicts]
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Conflicts:
src/intel/vulkan/anv_image.c
src/intel/vulkan/anv_image.c