diff options
author | Alex Smith <[email protected]> | 2017-02-14 10:34:48 +0000 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2017-02-14 08:16:52 -0800 |
commit | 94d48b7f9f143ff333dff4eba8069ee26acbf4e0 (patch) | |
tree | 65b1a0191382abab7deb752c6d9a0ef75be9733f /src/compiler/spirv/nir_spirv.h | |
parent | 5c6eaa1421bd6f95437f00629c09b8ddf7c39ed8 (diff) |
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 <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/compiler/spirv/nir_spirv.h')
-rw-r--r-- | src/compiler/spirv/nir_spirv.h | 1 |
1 files changed, 1 insertions, 0 deletions
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, |