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
7f6559d2
Unverified
Commit
7f6559d2
authored
Nov 16, 2020
by
Shahbaz Youssefi
Committed by
GitHub
Nov 16, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Compile out code for GL_EXT_shader_image_int64 for ANGLE (#2463)
Fixes a crash in ANGLE. Closes: #2452
parent
beec2e4a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
Initialize.cpp
glslang/MachineIndependent/Initialize.cpp
+7
-8
No files found.
glslang/MachineIndependent/Initialize.cpp
View file @
7f6559d2
...
...
@@ -5436,6 +5436,12 @@ void TBuiltIns::initialize(int version, EProfile profile, const SpvVersion& spvV
"
\n
"
);
}
if
(
version
>=
300
/* both ES and non-ES */
)
{
stageBuiltins
[
EShLangFragment
].
append
(
"flat in highp uint gl_ViewID_OVR;"
// GL_OVR_multiview, GL_OVR_multiview2
"
\n
"
);
}
#ifndef GLSLANG_ANGLE
// GL_ARB_shader_ballot
if
(
profile
!=
EEsProfile
&&
version
>=
450
)
{
...
...
@@ -5707,14 +5713,6 @@ void TBuiltIns::initialize(int version, EProfile profile, const SpvVersion& spvV
commonBuiltins
.
append
(
"const int gl_StorageSemanticsOutput = 0x1000;
\n
"
);
}
#endif // !GLSLANG_ANGLE
if
(
version
>=
300
/* both ES and non-ES */
)
{
stageBuiltins
[
EShLangFragment
].
append
(
"flat in highp uint gl_ViewID_OVR;"
// GL_OVR_multiview, GL_OVR_multiview2
"
\n
"
);
}
// Adding these to common built-ins triggers an assert due to a memory corruption in related code when testing
// So instead add to each stage individually, avoiding the GLSLang bug
if
((
profile
!=
EEsProfile
&&
version
>=
450
)
||
(
profile
==
EEsProfile
&&
version
>=
310
))
{
...
...
@@ -5764,6 +5762,7 @@ void TBuiltIns::initialize(int version, EProfile profile, const SpvVersion& spvV
}
}
}
#endif // !GLSLANG_ANGLE
#endif // !GLSLANG_WEB
...
...
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