From 94d48b7f9f143ff333dff4eba8069ee26acbf4e0 Mon Sep 17 00:00:00 2001 From: Alex Smith Date: Tue, 14 Feb 2017 10:34:48 +0000 Subject: spirv: Add support for SpvCapabilityStorageImageWriteWithoutFormat Allow that capability if the driver indicates that it is supported, and flag whether images are read-only/write-only in the nir_variable (based on the NonReadable and NonWritable decorations), which drivers may need to implement this. Signed-off-by: Alex Smith Reviewed-by: Jason Ekstrand Reviewed-by: Lionel Landwerlin --- src/compiler/spirv/nir_spirv.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/compiler/spirv/nir_spirv.h') diff --git a/src/compiler/spirv/nir_spirv.h b/src/compiler/spirv/nir_spirv.h index e0ebc625844..e43e9b53825 100644 --- a/src/compiler/spirv/nir_spirv.h +++ b/src/compiler/spirv/nir_spirv.h @@ -49,6 +49,7 @@ struct nir_spirv_supported_extensions { bool image_ms_array; bool tessellation; bool draw_parameters; + bool image_write_without_format; }; nir_function *spirv_to_nir(const uint32_t *words, size_t word_count, -- cgit v1.2.3