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
bb5c02fd
Commit
bb5c02fd
authored
Oct 19, 2016
by
David Neto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing guard to code that uses AMD extensions
Otherwise compilation fails when ENABLED_AMD_EXTENSIONS is off.
parent
5d45eade
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
GlslangToSpv.cpp
SPIRV/GlslangToSpv.cpp
+2
-0
No files found.
SPIRV/GlslangToSpv.cpp
View file @
bb5c02fd
...
...
@@ -4133,10 +4133,12 @@ spv::Id TGlslangToSpvTraverser::createInvocationsOperation(glslang::TOperator op
builder
.
addCapability
(
spv
::
CapabilitySubgroupBallotKHR
);
}
else
{
builder
.
addCapability
(
spv
::
CapabilityGroups
);
#ifdef AMD_EXTENSIONS
if
(
op
==
glslang
::
EOpMinInvocationsNonUniform
||
op
==
glslang
::
EOpMaxInvocationsNonUniform
||
op
==
glslang
::
EOpAddInvocationsNonUniform
)
builder
.
addExtension
(
spv
::
E_SPV_AMD_shader_ballot
);
#endif
spvGroupOperands
.
push_back
(
builder
.
makeUintConstant
(
spv
::
ScopeSubgroup
));
#ifdef AMD_EXTENSIONS
...
...
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