zink: allow resource creation without VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BIT
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Tue, 25 Jan 2022 16:52:43 +0000 (11:52 -0500)
committerMarge Bot <emma+marge@anholt.net>
Fri, 28 Jan 2022 14:23:51 +0000 (14:23 +0000)
commitc639e82f185989506a8d161bd79dd46d88b7b61d
tree04c0cd86511e193b5a0b685bcdea6cad917f2108
parentd4720c65acc9aefe22b5364c0663e9a5a0ba4cf9
zink: allow resource creation without VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BIT

as long as this isn't multisampled, it should be okay since it could be used
with texture_subdata

fixes (anv):
dEQP-GLES31.functional.srgb_texture_decode.skip_decode.sr8.conversion_gpu
dEQP-GLES31.functional.srgb_texture_decode.skip_decode.sr8.enabled
dEQP-GLES31.functional.srgb_texture_decode.skip_decode.sr8.multiple_textures
dEQP-GLES31.functional.srgb_texture_decode.skip_decode.sr8.skipped
dEQP-GLES31.functional.srgb_texture_decode.skip_decode.sr8.texel_fetch
dEQP-GLES31.functional.srgb_texture_decode.skip_decode.sr8.toggled
dEQP-GLES31.functional.srgb_texture_decode.skip_decode.sr8.using_sampler
dEQP-GLES31.functional.texture.filtering.cube_array.formats.sr8_linear
dEQP-GLES31.functional.texture.filtering.cube_array.formats.sr8_linear_mipmap_linear
dEQP-GLES31.functional.texture.filtering.cube_array.formats.sr8_linear_mipmap_nearest
dEQP-GLES31.functional.texture.filtering.cube_array.formats.sr8_nearest
dEQP-GLES31.functional.texture.filtering.cube_array.formats.sr8_nearest_mipmap_linear
dEQP-GLES31.functional.texture.filtering.cube_array.formats.sr8_nearest_mipmap_nearest
dEQP-GLES31.functional.texture.format.sized.cube_array.srgb_r8_npot
dEQP-GLES31.functional.texture.format.sized.cube_array.srgb_r8_pot

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14719>
src/gallium/drivers/zink/zink_resource.c