anv: Properly compute image usage in CreateImageView
authorJason Ekstrand <jason@jlekstrand.net>
Fri, 12 Jul 2019 13:20:25 +0000 (08:20 -0500)
committerJason Ekstrand <jason@jlekstrand.net>
Fri, 12 Jul 2019 16:13:48 +0000 (16:13 +0000)
commit16842b2391bac018326c9a2ee8dd36122b8269ee
treea66e594953d5f9df61c0f453bca880799a233d4c
parentb393b2ce95560f82623dad35757e5a65a8d3a582
anv: Properly compute image usage in CreateImageView

With separate stencil usage, we can't just grab the usage from the image
directly and have to consider the per-aspect usage instead.

Fixes: 1be38f9178 "anv:Use VK_EXT_separate_stencil_usage to avoid..."
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/vulkan/anv_image.c