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
8aa57c3c
Commit
8aa57c3c
authored
Jul 29, 2014
by
John Kessenich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix assert firing in debug mode from last check in.
git-svn-id:
https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@27543
e7fa87d3-cd2b-0410-9028-fcbf551c1848
parent
b9fc1453
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
27 deletions
+29
-27
Initialize.cpp
glslang/MachineIndependent/Initialize.cpp
+29
-27
No files found.
glslang/MachineIndependent/Initialize.cpp
View file @
8aa57c3c
...
@@ -2193,27 +2193,9 @@ void IdentifyBuiltIns(int version, EProfile profile, EShLanguage language, TSymb
...
@@ -2193,27 +2193,9 @@ void IdentifyBuiltIns(int version, EProfile profile, EShLanguage language, TSymb
// that cannot be declared with the text strings.
// that cannot be declared with the text strings.
//
//
// GL_ARB_shader_texture_lod functions usable only with the extension enabled
// N.B.: a symbol should only be tagged once, and this function is called multiple times, once
if
(
profile
!=
EEsProfile
)
{
// per stage that's used for this profile. So, stick common ones in the fragment stage to
symbolTable
.
setFunctionExtensions
(
"texture1DGradARB"
,
1
,
&
GL_ARB_shader_texture_lod
);
// ensure they are tagged exactly once.
symbolTable
.
setFunctionExtensions
(
"texture1DProjGradARB"
,
1
,
&
GL_ARB_shader_texture_lod
);
symbolTable
.
setFunctionExtensions
(
"texture1DProjGradARB"
,
1
,
&
GL_ARB_shader_texture_lod
);
symbolTable
.
setFunctionExtensions
(
"texture2DGradARB"
,
1
,
&
GL_ARB_shader_texture_lod
);
symbolTable
.
setFunctionExtensions
(
"texture2DProjGradARB"
,
1
,
&
GL_ARB_shader_texture_lod
);
symbolTable
.
setFunctionExtensions
(
"texture2DProjGradARB"
,
1
,
&
GL_ARB_shader_texture_lod
);
symbolTable
.
setFunctionExtensions
(
"texture3DGradARB"
,
1
,
&
GL_ARB_shader_texture_lod
);
symbolTable
.
setFunctionExtensions
(
"texture3DProjGradARB"
,
1
,
&
GL_ARB_shader_texture_lod
);
symbolTable
.
setFunctionExtensions
(
"textureCubeGradARB"
,
1
,
&
GL_ARB_shader_texture_lod
);
symbolTable
.
setFunctionExtensions
(
"shadow1DGradARB"
,
1
,
&
GL_ARB_shader_texture_lod
);
symbolTable
.
setFunctionExtensions
(
"shadow1DProjGradARB"
,
1
,
&
GL_ARB_shader_texture_lod
);
symbolTable
.
setFunctionExtensions
(
"shadow2DGradARB"
,
1
,
&
GL_ARB_shader_texture_lod
);
symbolTable
.
setFunctionExtensions
(
"shadow2DProjGradARB"
,
1
,
&
GL_ARB_shader_texture_lod
);
symbolTable
.
setFunctionExtensions
(
"texture2DRectGradARB"
,
1
,
&
GL_ARB_shader_texture_lod
);
symbolTable
.
setFunctionExtensions
(
"texture2DRectProjGradARB"
,
1
,
&
GL_ARB_shader_texture_lod
);
symbolTable
.
setFunctionExtensions
(
"texture2DRectProjGradARB"
,
1
,
&
GL_ARB_shader_texture_lod
);
symbolTable
.
setFunctionExtensions
(
"shadow2DRectGradARB"
,
1
,
&
GL_ARB_shader_texture_lod
);
symbolTable
.
setFunctionExtensions
(
"shadow2DRectProjGradARB"
,
1
,
&
GL_ARB_shader_texture_lod
);
}
switch
(
language
)
{
switch
(
language
)
{
case
EShLangVertex
:
case
EShLangVertex
:
...
@@ -2256,6 +2238,32 @@ void IdentifyBuiltIns(int version, EProfile profile, EShLanguage language, TSymb
...
@@ -2256,6 +2238,32 @@ void IdentifyBuiltIns(int version, EProfile profile, EShLanguage language, TSymb
symbolTable
.
setFunctionExtensions
(
"shadow1DProjLod"
,
1
,
&
GL_ARB_shader_texture_lod
);
symbolTable
.
setFunctionExtensions
(
"shadow1DProjLod"
,
1
,
&
GL_ARB_shader_texture_lod
);
symbolTable
.
setFunctionExtensions
(
"shadow2DProjLod"
,
1
,
&
GL_ARB_shader_texture_lod
);
symbolTable
.
setFunctionExtensions
(
"shadow2DProjLod"
,
1
,
&
GL_ARB_shader_texture_lod
);
}
}
// GL_ARB_shader_texture_lod functions usable only with the extension enabled
if
(
profile
!=
EEsProfile
)
{
symbolTable
.
setFunctionExtensions
(
"texture1DGradARB"
,
1
,
&
GL_ARB_shader_texture_lod
);
symbolTable
.
setFunctionExtensions
(
"texture1DProjGradARB"
,
1
,
&
GL_ARB_shader_texture_lod
);
symbolTable
.
setFunctionExtensions
(
"texture2DGradARB"
,
1
,
&
GL_ARB_shader_texture_lod
);
symbolTable
.
setFunctionExtensions
(
"texture2DProjGradARB"
,
1
,
&
GL_ARB_shader_texture_lod
);
symbolTable
.
setFunctionExtensions
(
"texture3DGradARB"
,
1
,
&
GL_ARB_shader_texture_lod
);
symbolTable
.
setFunctionExtensions
(
"texture3DProjGradARB"
,
1
,
&
GL_ARB_shader_texture_lod
);
symbolTable
.
setFunctionExtensions
(
"textureCubeGradARB"
,
1
,
&
GL_ARB_shader_texture_lod
);
symbolTable
.
setFunctionExtensions
(
"shadow1DGradARB"
,
1
,
&
GL_ARB_shader_texture_lod
);
symbolTable
.
setFunctionExtensions
(
"shadow1DProjGradARB"
,
1
,
&
GL_ARB_shader_texture_lod
);
symbolTable
.
setFunctionExtensions
(
"shadow2DGradARB"
,
1
,
&
GL_ARB_shader_texture_lod
);
symbolTable
.
setFunctionExtensions
(
"shadow2DProjGradARB"
,
1
,
&
GL_ARB_shader_texture_lod
);
symbolTable
.
setFunctionExtensions
(
"texture2DRectGradARB"
,
1
,
&
GL_ARB_shader_texture_lod
);
symbolTable
.
setFunctionExtensions
(
"texture2DRectProjGradARB"
,
1
,
&
GL_ARB_shader_texture_lod
);
symbolTable
.
setFunctionExtensions
(
"shadow2DRectGradARB"
,
1
,
&
GL_ARB_shader_texture_lod
);
symbolTable
.
setFunctionExtensions
(
"shadow2DRectProjGradARB"
,
1
,
&
GL_ARB_shader_texture_lod
);
}
if
(
profile
==
EEsProfile
)
{
symbolTable
.
setFunctionExtensions
(
"texture2DGradEXT"
,
1
,
&
GL_EXT_shader_texture_lod
);
symbolTable
.
setFunctionExtensions
(
"texture2DProjGradEXT"
,
1
,
&
GL_EXT_shader_texture_lod
);
symbolTable
.
setFunctionExtensions
(
"textureCubeGradEXT"
,
1
,
&
GL_EXT_shader_texture_lod
);
}
symbolTable
.
setVariableExtensions
(
"gl_FragDepthEXT"
,
1
,
&
GL_EXT_frag_depth
);
symbolTable
.
setVariableExtensions
(
"gl_FragDepthEXT"
,
1
,
&
GL_EXT_frag_depth
);
break
;
break
;
...
@@ -2268,12 +2276,6 @@ void IdentifyBuiltIns(int version, EProfile profile, EShLanguage language, TSymb
...
@@ -2268,12 +2276,6 @@ void IdentifyBuiltIns(int version, EProfile profile, EShLanguage language, TSymb
break
;
break
;
}
}
if
(
profile
==
EEsProfile
)
{
symbolTable
.
setFunctionExtensions
(
"texture2DGradEXT"
,
1
,
&
GL_EXT_shader_texture_lod
);
symbolTable
.
setFunctionExtensions
(
"texture2DProjGradEXT"
,
1
,
&
GL_EXT_shader_texture_lod
);
symbolTable
.
setFunctionExtensions
(
"textureCubeGradEXT"
,
1
,
&
GL_EXT_shader_texture_lod
);
}
//
//
// Next, identify which built-ins have a mapping to an operator.
// Next, identify which built-ins have a mapping to an operator.
// Those that are not identified as such are
// Those that are not identified as such are
...
...
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