Fix #1924: Emit SPV_EXT_physical_storage_buffer, not the KHR form.
The KHR form comes along as part of 1.5, and otherwise should require another form of request to emit it.
This commit is contained in:
parent
4b97a11081
commit
1ff0c181bb
@ -40,6 +40,7 @@ static const char* const E_SPV_KHR_8bit_storage = "SPV_KHR_8bit_
|
|||||||
static const char* const E_SPV_KHR_storage_buffer_storage_class = "SPV_KHR_storage_buffer_storage_class";
|
static const char* const E_SPV_KHR_storage_buffer_storage_class = "SPV_KHR_storage_buffer_storage_class";
|
||||||
static const char* const E_SPV_KHR_post_depth_coverage = "SPV_KHR_post_depth_coverage";
|
static const char* const E_SPV_KHR_post_depth_coverage = "SPV_KHR_post_depth_coverage";
|
||||||
static const char* const E_SPV_KHR_vulkan_memory_model = "SPV_KHR_vulkan_memory_model";
|
static const char* const E_SPV_KHR_vulkan_memory_model = "SPV_KHR_vulkan_memory_model";
|
||||||
|
static const char* const E_SPV_EXT_physical_storage_buffer = "SPV_EXT_physical_storage_buffer";
|
||||||
static const char* const E_SPV_KHR_physical_storage_buffer = "SPV_KHR_physical_storage_buffer";
|
static const char* const E_SPV_KHR_physical_storage_buffer = "SPV_KHR_physical_storage_buffer";
|
||||||
static const char* const E_SPV_EXT_fragment_shader_interlock = "SPV_EXT_fragment_shader_interlock";
|
static const char* const E_SPV_EXT_fragment_shader_interlock = "SPV_EXT_fragment_shader_interlock";
|
||||||
static const char* const E_SPV_KHR_shader_clock = "SPV_KHR_shader_clock";
|
static const char* const E_SPV_KHR_shader_clock = "SPV_KHR_shader_clock";
|
||||||
|
@ -1399,7 +1399,7 @@ TGlslangToSpvTraverser::TGlslangToSpvTraverser(unsigned int spvVersion, const gl
|
|||||||
|
|
||||||
if (glslangIntermediate->usingPhysicalStorageBuffer()) {
|
if (glslangIntermediate->usingPhysicalStorageBuffer()) {
|
||||||
addressingModel = spv::AddressingModelPhysicalStorageBuffer64EXT;
|
addressingModel = spv::AddressingModelPhysicalStorageBuffer64EXT;
|
||||||
builder.addIncorporatedExtension(spv::E_SPV_KHR_physical_storage_buffer, spv::Spv_1_5);
|
builder.addIncorporatedExtension(spv::E_SPV_EXT_physical_storage_buffer, spv::Spv_1_5);
|
||||||
builder.addCapability(spv::CapabilityPhysicalStorageBufferAddressesEXT);
|
builder.addCapability(spv::CapabilityPhysicalStorageBufferAddressesEXT);
|
||||||
};
|
};
|
||||||
if (glslangIntermediate->usingVulkanMemoryModel()) {
|
if (glslangIntermediate->usingVulkanMemoryModel()) {
|
||||||
|
@ -6,7 +6,7 @@ spv.bufferhandle1.frag
|
|||||||
Capability Shader
|
Capability Shader
|
||||||
Capability VulkanMemoryModelKHR
|
Capability VulkanMemoryModelKHR
|
||||||
Capability PhysicalStorageBufferAddressesEXT
|
Capability PhysicalStorageBufferAddressesEXT
|
||||||
Extension "SPV_KHR_physical_storage_buffer"
|
Extension "SPV_EXT_physical_storage_buffer"
|
||||||
Extension "SPV_KHR_storage_buffer_storage_class"
|
Extension "SPV_KHR_storage_buffer_storage_class"
|
||||||
Extension "SPV_KHR_vulkan_memory_model"
|
Extension "SPV_KHR_vulkan_memory_model"
|
||||||
1: ExtInstImport "GLSL.std.450"
|
1: ExtInstImport "GLSL.std.450"
|
||||||
|
@ -6,7 +6,7 @@ spv.bufferhandle10.frag
|
|||||||
Capability Shader
|
Capability Shader
|
||||||
Capability VulkanMemoryModelKHR
|
Capability VulkanMemoryModelKHR
|
||||||
Capability PhysicalStorageBufferAddressesEXT
|
Capability PhysicalStorageBufferAddressesEXT
|
||||||
Extension "SPV_KHR_physical_storage_buffer"
|
Extension "SPV_EXT_physical_storage_buffer"
|
||||||
Extension "SPV_KHR_storage_buffer_storage_class"
|
Extension "SPV_KHR_storage_buffer_storage_class"
|
||||||
Extension "SPV_KHR_vulkan_memory_model"
|
Extension "SPV_KHR_vulkan_memory_model"
|
||||||
1: ExtInstImport "GLSL.std.450"
|
1: ExtInstImport "GLSL.std.450"
|
||||||
|
@ -9,8 +9,8 @@ WARNING: 0:6: '' : all default precisions are highp; use precision statements to
|
|||||||
Capability Shader
|
Capability Shader
|
||||||
Capability StorageBuffer8BitAccess
|
Capability StorageBuffer8BitAccess
|
||||||
Capability PhysicalStorageBufferAddressesEXT
|
Capability PhysicalStorageBufferAddressesEXT
|
||||||
|
Extension "SPV_EXT_physical_storage_buffer"
|
||||||
Extension "SPV_KHR_8bit_storage"
|
Extension "SPV_KHR_8bit_storage"
|
||||||
Extension "SPV_KHR_physical_storage_buffer"
|
|
||||||
Extension "SPV_KHR_storage_buffer_storage_class"
|
Extension "SPV_KHR_storage_buffer_storage_class"
|
||||||
1: ExtInstImport "GLSL.std.450"
|
1: ExtInstImport "GLSL.std.450"
|
||||||
MemoryModel PhysicalStorageBuffer64EXT GLSL450
|
MemoryModel PhysicalStorageBuffer64EXT GLSL450
|
||||||
|
@ -9,8 +9,8 @@ WARNING: 0:6: '' : all default precisions are highp; use precision statements to
|
|||||||
Capability Shader
|
Capability Shader
|
||||||
Capability StorageUniformBufferBlock16
|
Capability StorageUniformBufferBlock16
|
||||||
Capability PhysicalStorageBufferAddressesEXT
|
Capability PhysicalStorageBufferAddressesEXT
|
||||||
|
Extension "SPV_EXT_physical_storage_buffer"
|
||||||
Extension "SPV_KHR_16bit_storage"
|
Extension "SPV_KHR_16bit_storage"
|
||||||
Extension "SPV_KHR_physical_storage_buffer"
|
|
||||||
Extension "SPV_KHR_storage_buffer_storage_class"
|
Extension "SPV_KHR_storage_buffer_storage_class"
|
||||||
1: ExtInstImport "GLSL.std.450"
|
1: ExtInstImport "GLSL.std.450"
|
||||||
MemoryModel PhysicalStorageBuffer64EXT GLSL450
|
MemoryModel PhysicalStorageBuffer64EXT GLSL450
|
||||||
|
@ -5,7 +5,7 @@ spv.bufferhandle13.frag
|
|||||||
|
|
||||||
Capability Shader
|
Capability Shader
|
||||||
Capability PhysicalStorageBufferAddressesEXT
|
Capability PhysicalStorageBufferAddressesEXT
|
||||||
Extension "SPV_KHR_physical_storage_buffer"
|
Extension "SPV_EXT_physical_storage_buffer"
|
||||||
Extension "SPV_KHR_storage_buffer_storage_class"
|
Extension "SPV_KHR_storage_buffer_storage_class"
|
||||||
1: ExtInstImport "GLSL.std.450"
|
1: ExtInstImport "GLSL.std.450"
|
||||||
MemoryModel PhysicalStorageBuffer64EXT GLSL450
|
MemoryModel PhysicalStorageBuffer64EXT GLSL450
|
||||||
|
@ -5,7 +5,7 @@ spv.bufferhandle14.frag
|
|||||||
|
|
||||||
Capability Shader
|
Capability Shader
|
||||||
Capability PhysicalStorageBufferAddressesEXT
|
Capability PhysicalStorageBufferAddressesEXT
|
||||||
Extension "SPV_KHR_physical_storage_buffer"
|
Extension "SPV_EXT_physical_storage_buffer"
|
||||||
1: ExtInstImport "GLSL.std.450"
|
1: ExtInstImport "GLSL.std.450"
|
||||||
MemoryModel PhysicalStorageBuffer64EXT GLSL450
|
MemoryModel PhysicalStorageBuffer64EXT GLSL450
|
||||||
EntryPoint Fragment 4 "main"
|
EntryPoint Fragment 4 "main"
|
||||||
|
@ -8,7 +8,7 @@ WARNING: 0:16: '' : all default precisions are highp; use precision statements t
|
|||||||
|
|
||||||
Capability Shader
|
Capability Shader
|
||||||
Capability PhysicalStorageBufferAddressesEXT
|
Capability PhysicalStorageBufferAddressesEXT
|
||||||
Extension "SPV_KHR_physical_storage_buffer"
|
Extension "SPV_EXT_physical_storage_buffer"
|
||||||
Extension "SPV_KHR_storage_buffer_storage_class"
|
Extension "SPV_KHR_storage_buffer_storage_class"
|
||||||
1: ExtInstImport "GLSL.std.450"
|
1: ExtInstImport "GLSL.std.450"
|
||||||
MemoryModel PhysicalStorageBuffer64EXT GLSL450
|
MemoryModel PhysicalStorageBuffer64EXT GLSL450
|
||||||
|
@ -6,7 +6,7 @@ spv.bufferhandle16.frag
|
|||||||
Capability Shader
|
Capability Shader
|
||||||
Capability Int64
|
Capability Int64
|
||||||
Capability PhysicalStorageBufferAddressesEXT
|
Capability PhysicalStorageBufferAddressesEXT
|
||||||
Extension "SPV_KHR_physical_storage_buffer"
|
Extension "SPV_EXT_physical_storage_buffer"
|
||||||
1: ExtInstImport "GLSL.std.450"
|
1: ExtInstImport "GLSL.std.450"
|
||||||
MemoryModel PhysicalStorageBuffer64EXT GLSL450
|
MemoryModel PhysicalStorageBuffer64EXT GLSL450
|
||||||
EntryPoint Fragment 4 "main"
|
EntryPoint Fragment 4 "main"
|
||||||
|
@ -6,7 +6,7 @@ spv.bufferhandle18.frag
|
|||||||
Capability Shader
|
Capability Shader
|
||||||
Capability Int64
|
Capability Int64
|
||||||
Capability PhysicalStorageBufferAddressesEXT
|
Capability PhysicalStorageBufferAddressesEXT
|
||||||
Extension "SPV_KHR_physical_storage_buffer"
|
Extension "SPV_EXT_physical_storage_buffer"
|
||||||
1: ExtInstImport "GLSL.std.450"
|
1: ExtInstImport "GLSL.std.450"
|
||||||
MemoryModel PhysicalStorageBuffer64EXT GLSL450
|
MemoryModel PhysicalStorageBuffer64EXT GLSL450
|
||||||
EntryPoint Fragment 4 "main"
|
EntryPoint Fragment 4 "main"
|
||||||
|
@ -5,7 +5,7 @@ spv.bufferhandle2.frag
|
|||||||
|
|
||||||
Capability Shader
|
Capability Shader
|
||||||
Capability PhysicalStorageBufferAddressesEXT
|
Capability PhysicalStorageBufferAddressesEXT
|
||||||
Extension "SPV_KHR_physical_storage_buffer"
|
Extension "SPV_EXT_physical_storage_buffer"
|
||||||
Extension "SPV_KHR_storage_buffer_storage_class"
|
Extension "SPV_KHR_storage_buffer_storage_class"
|
||||||
1: ExtInstImport "GLSL.std.450"
|
1: ExtInstImport "GLSL.std.450"
|
||||||
MemoryModel PhysicalStorageBuffer64EXT GLSL450
|
MemoryModel PhysicalStorageBuffer64EXT GLSL450
|
||||||
|
@ -5,7 +5,7 @@ spv.bufferhandle3.frag
|
|||||||
|
|
||||||
Capability Shader
|
Capability Shader
|
||||||
Capability PhysicalStorageBufferAddressesEXT
|
Capability PhysicalStorageBufferAddressesEXT
|
||||||
Extension "SPV_KHR_physical_storage_buffer"
|
Extension "SPV_EXT_physical_storage_buffer"
|
||||||
Extension "SPV_KHR_storage_buffer_storage_class"
|
Extension "SPV_KHR_storage_buffer_storage_class"
|
||||||
1: ExtInstImport "GLSL.std.450"
|
1: ExtInstImport "GLSL.std.450"
|
||||||
MemoryModel PhysicalStorageBuffer64EXT GLSL450
|
MemoryModel PhysicalStorageBuffer64EXT GLSL450
|
||||||
|
@ -5,7 +5,7 @@ spv.bufferhandle4.frag
|
|||||||
|
|
||||||
Capability Shader
|
Capability Shader
|
||||||
Capability PhysicalStorageBufferAddressesEXT
|
Capability PhysicalStorageBufferAddressesEXT
|
||||||
Extension "SPV_KHR_physical_storage_buffer"
|
Extension "SPV_EXT_physical_storage_buffer"
|
||||||
Extension "SPV_KHR_storage_buffer_storage_class"
|
Extension "SPV_KHR_storage_buffer_storage_class"
|
||||||
1: ExtInstImport "GLSL.std.450"
|
1: ExtInstImport "GLSL.std.450"
|
||||||
MemoryModel PhysicalStorageBuffer64EXT GLSL450
|
MemoryModel PhysicalStorageBuffer64EXT GLSL450
|
||||||
|
@ -5,7 +5,7 @@ spv.bufferhandle5.frag
|
|||||||
|
|
||||||
Capability Shader
|
Capability Shader
|
||||||
Capability PhysicalStorageBufferAddressesEXT
|
Capability PhysicalStorageBufferAddressesEXT
|
||||||
Extension "SPV_KHR_physical_storage_buffer"
|
Extension "SPV_EXT_physical_storage_buffer"
|
||||||
1: ExtInstImport "GLSL.std.450"
|
1: ExtInstImport "GLSL.std.450"
|
||||||
MemoryModel PhysicalStorageBuffer64EXT GLSL450
|
MemoryModel PhysicalStorageBuffer64EXT GLSL450
|
||||||
EntryPoint Fragment 4 "main"
|
EntryPoint Fragment 4 "main"
|
||||||
|
@ -5,7 +5,7 @@ spv.bufferhandle6.frag
|
|||||||
|
|
||||||
Capability Shader
|
Capability Shader
|
||||||
Capability PhysicalStorageBufferAddressesEXT
|
Capability PhysicalStorageBufferAddressesEXT
|
||||||
Extension "SPV_KHR_physical_storage_buffer"
|
Extension "SPV_EXT_physical_storage_buffer"
|
||||||
Extension "SPV_KHR_storage_buffer_storage_class"
|
Extension "SPV_KHR_storage_buffer_storage_class"
|
||||||
1: ExtInstImport "GLSL.std.450"
|
1: ExtInstImport "GLSL.std.450"
|
||||||
MemoryModel PhysicalStorageBuffer64EXT GLSL450
|
MemoryModel PhysicalStorageBuffer64EXT GLSL450
|
||||||
|
@ -5,7 +5,7 @@ spv.bufferhandle7.frag
|
|||||||
|
|
||||||
Capability Shader
|
Capability Shader
|
||||||
Capability PhysicalStorageBufferAddressesEXT
|
Capability PhysicalStorageBufferAddressesEXT
|
||||||
Extension "SPV_KHR_physical_storage_buffer"
|
Extension "SPV_EXT_physical_storage_buffer"
|
||||||
Extension "SPV_KHR_storage_buffer_storage_class"
|
Extension "SPV_KHR_storage_buffer_storage_class"
|
||||||
1: ExtInstImport "GLSL.std.450"
|
1: ExtInstImport "GLSL.std.450"
|
||||||
MemoryModel PhysicalStorageBuffer64EXT GLSL450
|
MemoryModel PhysicalStorageBuffer64EXT GLSL450
|
||||||
|
@ -5,7 +5,7 @@ spv.bufferhandle8.frag
|
|||||||
|
|
||||||
Capability Shader
|
Capability Shader
|
||||||
Capability PhysicalStorageBufferAddressesEXT
|
Capability PhysicalStorageBufferAddressesEXT
|
||||||
Extension "SPV_KHR_physical_storage_buffer"
|
Extension "SPV_EXT_physical_storage_buffer"
|
||||||
Extension "SPV_KHR_storage_buffer_storage_class"
|
Extension "SPV_KHR_storage_buffer_storage_class"
|
||||||
1: ExtInstImport "GLSL.std.450"
|
1: ExtInstImport "GLSL.std.450"
|
||||||
MemoryModel PhysicalStorageBuffer64EXT GLSL450
|
MemoryModel PhysicalStorageBuffer64EXT GLSL450
|
||||||
|
@ -6,7 +6,7 @@ spv.bufferhandle9.frag
|
|||||||
Capability Shader
|
Capability Shader
|
||||||
Capability Int64
|
Capability Int64
|
||||||
Capability PhysicalStorageBufferAddressesEXT
|
Capability PhysicalStorageBufferAddressesEXT
|
||||||
Extension "SPV_KHR_physical_storage_buffer"
|
Extension "SPV_EXT_physical_storage_buffer"
|
||||||
Extension "SPV_KHR_storage_buffer_storage_class"
|
Extension "SPV_KHR_storage_buffer_storage_class"
|
||||||
1: ExtInstImport "GLSL.std.450"
|
1: ExtInstImport "GLSL.std.450"
|
||||||
MemoryModel PhysicalStorageBuffer64EXT GLSL450
|
MemoryModel PhysicalStorageBuffer64EXT GLSL450
|
||||||
|
@ -1,11 +1,12 @@
|
|||||||
spv.bufferhandleUvec2.frag
|
spv.bufferhandleUvec2.frag
|
||||||
|
Validation failed
|
||||||
// Module Version 10000
|
// Module Version 10000
|
||||||
// Generated by (magic number): 80007
|
// Generated by (magic number): 80007
|
||||||
// Id's are bound by 71
|
// Id's are bound by 71
|
||||||
|
|
||||||
Capability Shader
|
Capability Shader
|
||||||
Capability PhysicalStorageBufferAddressesEXT
|
Capability PhysicalStorageBufferAddressesEXT
|
||||||
Extension "SPV_KHR_physical_storage_buffer"
|
Extension "SPV_EXT_physical_storage_buffer"
|
||||||
Extension "SPV_KHR_storage_buffer_storage_class"
|
Extension "SPV_KHR_storage_buffer_storage_class"
|
||||||
1: ExtInstImport "GLSL.std.450"
|
1: ExtInstImport "GLSL.std.450"
|
||||||
MemoryModel PhysicalStorageBuffer64EXT GLSL450
|
MemoryModel PhysicalStorageBuffer64EXT GLSL450
|
||||||
|
@ -9,8 +9,8 @@ spv.coopmat.comp
|
|||||||
Capability VulkanMemoryModelKHR
|
Capability VulkanMemoryModelKHR
|
||||||
Capability PhysicalStorageBufferAddressesEXT
|
Capability PhysicalStorageBufferAddressesEXT
|
||||||
Capability CooperativeMatrixNV
|
Capability CooperativeMatrixNV
|
||||||
|
Extension "SPV_EXT_physical_storage_buffer"
|
||||||
Extension "SPV_KHR_16bit_storage"
|
Extension "SPV_KHR_16bit_storage"
|
||||||
Extension "SPV_KHR_physical_storage_buffer"
|
|
||||||
Extension "SPV_KHR_storage_buffer_storage_class"
|
Extension "SPV_KHR_storage_buffer_storage_class"
|
||||||
Extension "SPV_KHR_vulkan_memory_model"
|
Extension "SPV_KHR_vulkan_memory_model"
|
||||||
Extension "SPV_NV_cooperative_matrix"
|
Extension "SPV_NV_cooperative_matrix"
|
||||||
|
@ -10,8 +10,8 @@ spv.intcoopmat.comp
|
|||||||
Capability VulkanMemoryModelKHR
|
Capability VulkanMemoryModelKHR
|
||||||
Capability PhysicalStorageBufferAddressesEXT
|
Capability PhysicalStorageBufferAddressesEXT
|
||||||
Capability CooperativeMatrixNV
|
Capability CooperativeMatrixNV
|
||||||
|
Extension "SPV_EXT_physical_storage_buffer"
|
||||||
Extension "SPV_KHR_8bit_storage"
|
Extension "SPV_KHR_8bit_storage"
|
||||||
Extension "SPV_KHR_physical_storage_buffer"
|
|
||||||
Extension "SPV_KHR_storage_buffer_storage_class"
|
Extension "SPV_KHR_storage_buffer_storage_class"
|
||||||
Extension "SPV_KHR_vulkan_memory_model"
|
Extension "SPV_KHR_vulkan_memory_model"
|
||||||
Extension "SPV_NV_cooperative_matrix"
|
Extension "SPV_NV_cooperative_matrix"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user