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
96e77c11
Commit
96e77c11
authored
Mar 02, 2018
by
John Kessenich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Non-functional: Remove meaning of 100 from Vulkan target version.
This was done on GitHub, but lots of new code did not change when doing the merge.
parent
efe17cda
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
Initialize.cpp
glslang/MachineIndependent/Initialize.cpp
+9
-9
No files found.
glslang/MachineIndependent/Initialize.cpp
View file @
96e77c11
...
...
@@ -1635,7 +1635,7 @@ void TBuiltIns::initialize(int version, EProfile profile, const SpvVersion& spvV
}
// GL_KHR_shader_subgroup
if
(
spvVersion
.
vulkan
>
=
10
0
)
{
if
(
spvVersion
.
vulkan
>
0
)
{
commonBuiltins
.
append
(
"void subgroupBarrier();"
"void subgroupMemoryBarrier();"
...
...
@@ -5199,7 +5199,7 @@ void TBuiltIns::initialize(int version, EProfile profile, const SpvVersion& spvV
}
// GL_KHR_shader_subgroup
if
(
spvVersion
.
vulkan
>
=
10
0
)
{
if
(
spvVersion
.
vulkan
>
0
)
{
const
char
*
ballotDecls
=
"in mediump uint gl_SubgroupSize;"
"in mediump uint gl_SubgroupInvocationID;"
...
...
@@ -7003,7 +7003,7 @@ void TBuiltIns::identifyBuiltIns(int version, EProfile profile, const SpvVersion
}
// GL_KHR_shader_subgroup
if
(
spvVersion
.
vulkan
>
=
10
0
)
{
if
(
spvVersion
.
vulkan
>
0
)
{
symbolTable
.
setVariableExtensions
(
"gl_SubgroupSize"
,
1
,
&
E_GL_KHR_shader_subgroup_basic
);
symbolTable
.
setVariableExtensions
(
"gl_SubgroupInvocationID"
,
1
,
&
E_GL_KHR_shader_subgroup_basic
);
symbolTable
.
setVariableExtensions
(
"gl_SubgroupEqMask"
,
1
,
&
E_GL_KHR_shader_subgroup_ballot
);
...
...
@@ -7282,7 +7282,7 @@ void TBuiltIns::identifyBuiltIns(int version, EProfile profile, const SpvVersion
BuiltInVariable
(
"gl_SubGroupLeMaskARB"
,
EbvSubGroupLeMask
,
symbolTable
);
BuiltInVariable
(
"gl_SubGroupLtMaskARB"
,
EbvSubGroupLtMask
,
symbolTable
);
if
(
spvVersion
.
vulkan
>
=
10
0
)
if
(
spvVersion
.
vulkan
>
0
)
// Treat "gl_SubGroupSizeARB" as shader input instead of uniform for Vulkan
SpecialQualifier
(
"gl_SubGroupSizeARB"
,
EvqVaryingIn
,
EbvSubGroupSize
,
symbolTable
);
else
...
...
@@ -7290,7 +7290,7 @@ void TBuiltIns::identifyBuiltIns(int version, EProfile profile, const SpvVersion
}
// GL_KHR_shader_subgroup
if
(
spvVersion
.
vulkan
>
=
10
0
)
{
if
(
spvVersion
.
vulkan
>
0
)
{
symbolTable
.
setVariableExtensions
(
"gl_SubgroupSize"
,
1
,
&
E_GL_KHR_shader_subgroup_basic
);
symbolTable
.
setVariableExtensions
(
"gl_SubgroupInvocationID"
,
1
,
&
E_GL_KHR_shader_subgroup_basic
);
symbolTable
.
setVariableExtensions
(
"gl_SubgroupEqMask"
,
1
,
&
E_GL_KHR_shader_subgroup_ballot
);
...
...
@@ -7418,7 +7418,7 @@ void TBuiltIns::identifyBuiltIns(int version, EProfile profile, const SpvVersion
BuiltInVariable
(
"gl_SubGroupLeMaskARB"
,
EbvSubGroupLeMask
,
symbolTable
);
BuiltInVariable
(
"gl_SubGroupLtMaskARB"
,
EbvSubGroupLtMask
,
symbolTable
);
if
(
spvVersion
.
vulkan
>
=
10
0
)
if
(
spvVersion
.
vulkan
>
0
)
// Treat "gl_SubGroupSizeARB" as shader input instead of uniform for Vulkan
SpecialQualifier
(
"gl_SubGroupSizeARB"
,
EvqVaryingIn
,
EbvSubGroupSize
,
symbolTable
);
else
...
...
@@ -7426,7 +7426,7 @@ void TBuiltIns::identifyBuiltIns(int version, EProfile profile, const SpvVersion
}
// GL_ARB_shader_ballot
if
(
spvVersion
.
vulkan
>
=
10
0
)
{
if
(
spvVersion
.
vulkan
>
0
)
{
symbolTable
.
setVariableExtensions
(
"gl_SubgroupSize"
,
1
,
&
E_GL_KHR_shader_subgroup_basic
);
symbolTable
.
setVariableExtensions
(
"gl_SubgroupInvocationID"
,
1
,
&
E_GL_KHR_shader_subgroup_basic
);
symbolTable
.
setVariableExtensions
(
"gl_SubgroupEqMask"
,
1
,
&
E_GL_KHR_shader_subgroup_ballot
);
...
...
@@ -7453,7 +7453,7 @@ void TBuiltIns::identifyBuiltIns(int version, EProfile profile, const SpvVersion
}
// GL_KHR_shader_subgroup
if
(
spvVersion
.
vulkan
>
=
10
0
)
{
if
(
spvVersion
.
vulkan
>
0
)
{
symbolTable
.
setVariableExtensions
(
"gl_NumSubgroups"
,
1
,
&
E_GL_KHR_shader_subgroup_basic
);
symbolTable
.
setVariableExtensions
(
"gl_SubgroupID"
,
1
,
&
E_GL_KHR_shader_subgroup_basic
);
...
...
@@ -7842,7 +7842,7 @@ void TBuiltIns::identifyBuiltIns(int version, EProfile profile, const SpvVersion
}
// GL_KHR_shader_subgroup
if
(
spvVersion
.
vulkan
>
=
10
0
)
{
if
(
spvVersion
.
vulkan
>
0
)
{
symbolTable
.
relateToOperator
(
"subgroupBarrier"
,
EOpSubgroupBarrier
);
symbolTable
.
relateToOperator
(
"subgroupMemoryBarrier"
,
EOpSubgroupMemoryBarrier
);
symbolTable
.
relateToOperator
(
"subgroupMemoryBarrierBuffer"
,
EOpSubgroupMemoryBarrierBuffer
);
...
...
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