Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
glslang
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
glslang
Commits
7a9db71f
Commit
7a9db71f
authored
Oct 20, 2017
by
John Kessenich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SPV: Don't emit StorageImageMultisample capability for subpass images.
parent
6cfeced8
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
4 additions
and
5 deletions
+4
-5
SpvBuilder.cpp
SPIRV/SpvBuilder.cpp
+4
-1
hlsl.subpass.frag.out
Test/baseResults/hlsl.subpass.frag.out
+0
-1
spv.register.subpass.frag.out
Test/baseResults/spv.register.subpass.frag.out
+0
-1
spv.shaderFragMaskAMD.frag.out
Test/baseResults/spv.shaderFragMaskAMD.frag.out
+0
-1
spv.subpass.frag.out
Test/baseResults/spv.subpass.frag.out
+0
-1
No files found.
SPIRV/SpvBuilder.cpp
View file @
7a9db71f
...
@@ -469,7 +469,10 @@ Id Builder::makeImageType(Id sampledType, Dim dim, bool depth, bool arrayed, boo
...
@@ -469,7 +469,10 @@ Id Builder::makeImageType(Id sampledType, Dim dim, bool depth, bool arrayed, boo
if
(
ms
)
{
if
(
ms
)
{
if
(
sampled
==
2
)
{
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
)
if
(
arrayed
)
addCapability
(
CapabilityImageMSArray
);
addCapability
(
CapabilityImageMSArray
);
}
}
...
...
Test/baseResults/hlsl.subpass.frag.out
View file @
7a9db71f
...
@@ -434,7 +434,6 @@ gl_FragCoord origin is upper left
...
@@ -434,7 +434,6 @@ gl_FragCoord origin is upper left
// Id's are bound by 204
// Id's are bound by 204
Capability Shader
Capability Shader
Capability StorageImageMultisample
Capability InputAttachment
Capability InputAttachment
1: ExtInstImport "GLSL.std.450"
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
MemoryModel Logical GLSL450
...
...
Test/baseResults/spv.register.subpass.frag.out
View file @
7a9db71f
...
@@ -4,7 +4,6 @@ spv.register.subpass.frag
...
@@ -4,7 +4,6 @@ spv.register.subpass.frag
// Id's are bound by 40
// Id's are bound by 40
Capability Shader
Capability Shader
Capability StorageImageMultisample
Capability InputAttachment
Capability InputAttachment
1: ExtInstImport "GLSL.std.450"
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
MemoryModel Logical GLSL450
...
...
Test/baseResults/spv.shaderFragMaskAMD.frag.out
View file @
7a9db71f
...
@@ -4,7 +4,6 @@ spv.shaderFragMaskAMD.frag
...
@@ -4,7 +4,6 @@ spv.shaderFragMaskAMD.frag
// Id's are bound by 80
// Id's are bound by 80
Capability Shader
Capability Shader
Capability StorageImageMultisample
Capability InputAttachment
Capability InputAttachment
Capability FragmentMaskAMD
Capability FragmentMaskAMD
Extension "SPV_AMD_shader_fragment_mask"
Extension "SPV_AMD_shader_fragment_mask"
...
...
Test/baseResults/spv.subpass.frag.out
View file @
7a9db71f
...
@@ -4,7 +4,6 @@ spv.subpass.frag
...
@@ -4,7 +4,6 @@ spv.subpass.frag
// Id's are bound by 67
// Id's are bound by 67
Capability Shader
Capability Shader
Capability StorageImageMultisample
Capability InputAttachment
Capability InputAttachment
1: ExtInstImport "GLSL.std.450"
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
MemoryModel Logical GLSL450
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment