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
8aa9a7bb
Unverified
Commit
8aa9a7bb
authored
Jul 09, 2019
by
John Kessenich
Committed by
GitHub
Jul 09, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1825 from amdrexu/bugfix
Change implementation of gl_SIMDGroupSizeAMD
parents
4b4b41a6
e085d834
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
Initialize.cpp
glslang/MachineIndependent/Initialize.cpp
+6
-9
No files found.
glslang/MachineIndependent/Initialize.cpp
View file @
8aa9a7bb
...
...
@@ -3838,12 +3838,13 @@ void TBuiltIns::initialize(int version, EProfile profile, const SpvVersion& spvV
}
// GL_AMD_gcn_shader
if
(
profile
!=
EEsProfile
&&
version
>=
4
5
0
)
{
if
(
profile
!=
EEsProfile
&&
version
>=
4
4
0
)
{
commonBuiltins
.
append
(
"float cubeFaceIndexAMD(vec3);"
"vec2 cubeFaceCoordAMD(vec3);"
"uint64_t timeAMD();"
"in int gl_SIMDGroupSizeAMD;"
"
\n
"
);
}
...
...
@@ -7752,14 +7753,6 @@ void TBuiltIns::initialize(const TBuiltInResource &resources, int version, EProf
s
.
append
(
builtInConstant
);
}
#ifdef AMD_EXTENSIONS
// GL_AMD_gcn_shader
if
(
profile
!=
EEsProfile
&&
version
>=
450
)
{
snprintf
(
builtInConstant
,
maxSize
,
"const int gl_SIMDGroupSizeAMD = 64;"
);
s
.
append
(
builtInConstant
);
}
#endif
#ifdef NV_EXTENSIONS
// SPV_NV_mesh_shader
if
((
profile
!=
EEsProfile
&&
version
>=
450
)
||
(
profile
==
EEsProfile
&&
version
>=
320
))
{
...
...
@@ -7911,6 +7904,7 @@ void TBuiltIns::identifyBuiltIns(int version, EProfile profile, const SpvVersion
}
}
#ifdef AMD_EXTENSIONS
if
(
profile
!=
EEsProfile
)
{
symbolTable
.
setFunctionExtensions
(
"minInvocationsAMD"
,
1
,
&
E_GL_AMD_shader_ballot
);
...
...
@@ -7945,6 +7939,9 @@ void TBuiltIns::identifyBuiltIns(int version, EProfile profile, const SpvVersion
}
if
(
profile
!=
EEsProfile
)
{
symbolTable
.
setVariableExtensions
(
"gl_SIMDGroupSizeAMD"
,
1
,
&
E_GL_AMD_gcn_shader
);
SpecialQualifier
(
"gl_SIMDGroupSizeAMD"
,
EvqVaryingIn
,
EbvSubGroupSize
,
symbolTable
);
symbolTable
.
setFunctionExtensions
(
"cubeFaceIndexAMD"
,
1
,
&
E_GL_AMD_gcn_shader
);
symbolTable
.
setFunctionExtensions
(
"cubeFaceCoordAMD"
,
1
,
&
E_GL_AMD_gcn_shader
);
symbolTable
.
setFunctionExtensions
(
"timeAMD"
,
1
,
&
E_GL_AMD_gcn_shader
);
...
...
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