SPV: Don't emit StorageImageMultisample capability for subpass images.

This commit is contained in:
John Kessenich 2017-10-20 10:56:50 -06:00
parent 6cfeced8de
commit 7a9db71f46
5 changed files with 4 additions and 5 deletions

View File

@ -469,7 +469,10 @@ Id Builder::makeImageType(Id sampledType, Dim dim, bool depth, bool arrayed, boo
if (ms) {
if (sampled == 2) {
addCapability(CapabilityStorageImageMultisample);
// Images used with subpass data are not storage
// images, so don't require the capability for them.
if (dim != Dim::DimSubpassData)
addCapability(CapabilityStorageImageMultisample);
if (arrayed)
addCapability(CapabilityImageMSArray);
}

View File

@ -434,7 +434,6 @@ gl_FragCoord origin is upper left
// Id's are bound by 204
Capability Shader
Capability StorageImageMultisample
Capability InputAttachment
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450

View File

@ -4,7 +4,6 @@ spv.register.subpass.frag
// Id's are bound by 40
Capability Shader
Capability StorageImageMultisample
Capability InputAttachment
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450

View File

@ -4,7 +4,6 @@ spv.shaderFragMaskAMD.frag
// Id's are bound by 80
Capability Shader
Capability StorageImageMultisample
Capability InputAttachment
Capability FragmentMaskAMD
Extension "SPV_AMD_shader_fragment_mask"

View File

@ -4,7 +4,6 @@ spv.subpass.frag
// Id's are bound by 67
Capability Shader
Capability StorageImageMultisample
Capability InputAttachment
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450