anv: Be more conservative about image view usage
authorJason Ekstrand <jason@jlekstrand.net>
Fri, 6 Mar 2020 23:31:37 +0000 (17:31 -0600)
committerMarge Bot <eric+marge@anholt.net>
Fri, 24 Apr 2020 16:17:44 +0000 (16:17 +0000)
commiteb0cede5866f3cbd4b3e956b9670d61822b86e15
tree622abd01aa2a8c74715cc532f2f4ccb1cfce8a12
parentd2f3576d335c09313216ee052bf7570da8a61ff1
anv: Be more conservative about image view usage

We were ORing together the image and stencil usage rather than actually
following the formula in the spec.  This can lead to assertions in other
parts of the driver if we're not careful.

Reviewed-by: Rafael Antognolli <rafael.antognolli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4100>
src/intel/vulkan/anv_image.c