anv/image: Set different usage flags for shadow surfaces
authorJason Ekstrand <jason@jlekstrand.net>
Wed, 19 Jun 2019 20:18:06 +0000 (15:18 -0500)
committerJason Ekstrand <jason@jlekstrand.net>
Wed, 19 Jun 2019 22:21:46 +0000 (22:21 +0000)
commitef323d02d8711febdccaeafc7596c9ffdf7a3dda
treea1573a71b609a1930f75cd3abb7f17adc16e5817
parent215f9f83f53c5a374c32424378c640ce8181e542
anv/image: Set different usage flags for shadow surfaces

For the block BLOCK_TEXEL_VIEW_COMPATIBLE case, this didn't matter
because the flags were already more-or-less what we wanted.  However,
for gen7 stencil shadow images, it still had ISL_SURF_USAGE_STENCIL_BIT
so we were getting W-tiled which isn't what we want for the shadow.  By
passing just ISL_SURF_USAGE_TEXTURE_BIT (and CUBE if we care), we now
get something that's actually texturable.

Fixes: f3ea0cf828 "anv: Add stencil texturing support for gen7"
src/intel/vulkan/anv_image.c