[Mesa-dev] [PATCH 3/6] spirv: add support for StorageImageMultisample capability.
Dave Airlie
airlied at gmail.com
Mon Mar 19 07:26:54 UTC 2018
From: Dave Airlie <airlied at redhat.com>
---
src/compiler/shader_info.h | 1 +
src/compiler/spirv/spirv_to_nir.c | 5 +++--
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/compiler/shader_info.h b/src/compiler/shader_info.h
index 0eeb2ca58ea..f6f0734dfda 100644
--- a/src/compiler/shader_info.h
+++ b/src/compiler/shader_info.h
@@ -52,6 +52,7 @@ struct spirv_supported_capabilities {
bool subgroup_shuffle;
bool subgroup_vote;
bool gcn_shader;
+ bool storage_image_ms;
};
typedef struct shader_info {
diff --git a/src/compiler/spirv/spirv_to_nir.c b/src/compiler/spirv/spirv_to_nir.c
index f06dca90efd..2393efe18a3 100644
--- a/src/compiler/spirv/spirv_to_nir.c
+++ b/src/compiler/spirv/spirv_to_nir.c
@@ -3261,7 +3261,6 @@ vtn_handle_preamble_instruction(struct vtn_builder *b, SpvOp opcode,
case SpvCapabilityInt64Atomics:
case SpvCapabilityAtomicStorage:
case SpvCapabilityInt16:
- case SpvCapabilityStorageImageMultisample:
case SpvCapabilityInt8:
case SpvCapabilitySparseResidency:
case SpvCapabilityMinLod:
@@ -3269,7 +3268,9 @@ vtn_handle_preamble_instruction(struct vtn_builder *b, SpvOp opcode,
vtn_warn("Unsupported SPIR-V capability: %s",
spirv_capability_to_string(cap));
break;
-
+ case SpvCapabilityStorageImageMultisample:
+ spv_check_supported(storage_image_ms, cap);
+ break;
case SpvCapabilityFloat64:
spv_check_supported(float64, cap);
break;
--
2.14.3
More information about the mesa-dev
mailing list