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
e085d834
Commit
e085d834
authored
Jul 06, 2019
by
Rex Xu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change implementation of gl_SIMDGroupSizeAMD
parent
0e5d1bb6
Hide 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 @
e085d834
...
@@ -3838,12 +3838,13 @@ void TBuiltIns::initialize(int version, EProfile profile, const SpvVersion& spvV
...
@@ -3838,12 +3838,13 @@ void TBuiltIns::initialize(int version, EProfile profile, const SpvVersion& spvV
}
}
// GL_AMD_gcn_shader
// GL_AMD_gcn_shader
if
(
profile
!=
EEsProfile
&&
version
>=
4
5
0
)
{
if
(
profile
!=
EEsProfile
&&
version
>=
4
4
0
)
{
commonBuiltins
.
append
(
commonBuiltins
.
append
(
"float cubeFaceIndexAMD(vec3);"
"float cubeFaceIndexAMD(vec3);"
"vec2 cubeFaceCoordAMD(vec3);"
"vec2 cubeFaceCoordAMD(vec3);"
"uint64_t timeAMD();"
"uint64_t timeAMD();"
"in int gl_SIMDGroupSizeAMD;"
"
\n
"
);
"
\n
"
);
}
}
...
@@ -7734,14 +7735,6 @@ void TBuiltIns::initialize(const TBuiltInResource &resources, int version, EProf
...
@@ -7734,14 +7735,6 @@ void TBuiltIns::initialize(const TBuiltInResource &resources, int version, EProf
s
.
append
(
builtInConstant
);
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
#ifdef NV_EXTENSIONS
// SPV_NV_mesh_shader
// SPV_NV_mesh_shader
if
((
profile
!=
EEsProfile
&&
version
>=
450
)
||
(
profile
==
EEsProfile
&&
version
>=
320
))
{
if
((
profile
!=
EEsProfile
&&
version
>=
450
)
||
(
profile
==
EEsProfile
&&
version
>=
320
))
{
...
@@ -7906,6 +7899,7 @@ void TBuiltIns::identifyBuiltIns(int version, EProfile profile, const SpvVersion
...
@@ -7906,6 +7899,7 @@ void TBuiltIns::identifyBuiltIns(int version, EProfile profile, const SpvVersion
}
}
}
}
#ifdef AMD_EXTENSIONS
#ifdef AMD_EXTENSIONS
if
(
profile
!=
EEsProfile
)
{
if
(
profile
!=
EEsProfile
)
{
symbolTable
.
setFunctionExtensions
(
"minInvocationsAMD"
,
1
,
&
E_GL_AMD_shader_ballot
);
symbolTable
.
setFunctionExtensions
(
"minInvocationsAMD"
,
1
,
&
E_GL_AMD_shader_ballot
);
...
@@ -7940,6 +7934,9 @@ void TBuiltIns::identifyBuiltIns(int version, EProfile profile, const SpvVersion
...
@@ -7940,6 +7934,9 @@ void TBuiltIns::identifyBuiltIns(int version, EProfile profile, const SpvVersion
}
}
if
(
profile
!=
EEsProfile
)
{
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
(
"cubeFaceIndexAMD"
,
1
,
&
E_GL_AMD_gcn_shader
);
symbolTable
.
setFunctionExtensions
(
"cubeFaceCoordAMD"
,
1
,
&
E_GL_AMD_gcn_shader
);
symbolTable
.
setFunctionExtensions
(
"cubeFaceCoordAMD"
,
1
,
&
E_GL_AMD_gcn_shader
);
symbolTable
.
setFunctionExtensions
(
"timeAMD"
,
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