radv: enable SpvCapabilityImageMSArray
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 12 Dec 2019 17:22:34 +0000 (18:22 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 12 Dec 2019 17:52:08 +0000 (18:52 +0100)
The Vulkan spec says that StorageImageMultisample and ImageMSArray
SPIRV-V capabilities must be enabled if the
shaderStorageImageMultisample feature is supported.

This fixes a warning with RenderDoc.

Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2212
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_shader.c

index 6466bad5cae2917f75641479ac5905d40e8a1b79..dd3494b9e3e8557b16bd7a95c0893a9f17d394e1 100644 (file)
@@ -375,6 +375,7 @@ radv_shader_compile_to_nir(struct radv_device *device,
                                .float16 = !device->physical_device->use_aco,
                                .float64 = true,
                                .geometry_streams = true,
+                               .image_ms_array = true,
                                .image_read_without_format = true,
                                .image_write_without_format = true,
                                .int8 = !device->physical_device->use_aco,