spirv: always expose SpvCapabilityStorageImageExtendedFormats
authorIlia Mirkin <imirkin@alum.mit.edu>
Fri, 30 Dec 2016 01:59:12 +0000 (20:59 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Fri, 30 Dec 2016 03:09:58 +0000 (22:09 -0500)
I forgot to do this in commit 76b97d544e ("anv: enable storage image
extended formats"). Since both drivers support this now, no need for the
conditional enable.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_pipeline.c
src/compiler/spirv/nir_spirv.h
src/compiler/spirv/spirv_to_nir.c

index 25d78058fb206be0949e0fc3341bd6bd4ee82a3a..75785ec921d040ff59869fada72ed879f53b4a37 100644 (file)
@@ -192,7 +192,6 @@ radv_shader_compile_to_nir(struct radv_device *device,
                        }
                }
                const struct nir_spirv_supported_extensions supported_ext = {
-                       .storage_image_extended_formats = true,
                };
                entry_point = spirv_to_nir(spirv, module->size / 4,
                                           spec_entries, num_spec_entries,
index d959f3f227c48dc459ad6fc7d2466a50b05ed4d0..e0112ef4ad4786e52967863497c18f350986b1bb 100644 (file)
@@ -42,7 +42,6 @@ struct nir_spirv_specialization {
 };
 
 struct nir_spirv_supported_extensions {
-   bool storage_image_extended_formats;
    bool image_ms_array;
 };
 
index b8acc1ed2e9ba1ba48c27e392f5bf12948df5907..07980aa2019d185f464195e7ca5f357b18d55314 100644 (file)
@@ -2506,6 +2506,7 @@ vtn_handle_preamble_instruction(struct vtn_builder *b, SpvOp opcode,
       case SpvCapabilityCullDistance:
       case SpvCapabilityInputAttachment:
       case SpvCapabilityImageGatherExtended:
+      case SpvCapabilityStorageImageExtendedFormats:
          break;
 
       case SpvCapabilityGeometryStreams:
@@ -2546,9 +2547,6 @@ vtn_handle_preamble_instruction(struct vtn_builder *b, SpvOp opcode,
                   spirv_capability_to_string(cap));
          break;
 
-      case SpvCapabilityStorageImageExtendedFormats:
-         spv_check_supported(storage_image_extended_formats, cap);
-         break;
       case SpvCapabilityImageMSArray:
          spv_check_supported(image_ms_array, cap);
          break;