SPV: Don't emit StorageImageMultisample capability for subpass images.
This commit is contained in:
parent
6cfeced8de
commit
7a9db71f46
5 changed files with 4 additions and 5 deletions
|
|
@ -469,6 +469,9 @@ Id Builder::makeImageType(Id sampledType, Dim dim, bool depth, bool arrayed, boo
|
|||
|
||||
if (ms) {
|
||||
if (sampled == 2) {
|
||||
// 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);
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue