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
a622cf2d
Commit
a622cf2d
authored
Jun 14, 2013
by
John Kessenich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix linux build problem.
git-svn-id:
https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@22002
e7fa87d3-cd2b-0410-9028-fcbf551c1848
parent
f78fff94
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
ParseHelper.cpp
glslang/MachineIndependent/ParseHelper.cpp
+6
-6
ParseHelper.h
glslang/MachineIndependent/ParseHelper.h
+1
-1
glslang.y
glslang/MachineIndependent/glslang.y
+1
-1
No files found.
glslang/MachineIndependent/ParseHelper.cpp
View file @
a622cf2d
...
...
@@ -1476,12 +1476,12 @@ void TParseContext::addBlock(int line, TTypeList& typeList, const TString* insta
if
(
profile
==
EEsProfile
&&
arraySizes
)
arraySizeRequiredCheck
(
line
,
arraySizes
->
front
());
if
(
b
lockType
.
basicType
!=
EbtVoid
)
{
if
(
publicB
lockType
.
basicType
!=
EbtVoid
)
{
error
(
line
,
"interface blocks cannot be declared with a type"
,
blockName
->
c_str
(),
""
);
return
;
}
if
(
b
lockType
.
qualifier
.
storage
==
EvqUniform
)
{
if
(
publicB
lockType
.
qualifier
.
storage
==
EvqUniform
)
{
requireProfile
(
line
,
(
EProfileMask
)(
~
ENoProfileMask
),
"uniform block"
);
profileRequires
(
line
,
EEsProfile
,
300
,
0
,
"uniform block"
);
}
else
{
...
...
@@ -1493,9 +1493,9 @@ void TParseContext::addBlock(int line, TTypeList& typeList, const TString* insta
// check for qualifiers and types that don't belong within a block
for
(
unsigned
int
member
=
0
;
member
<
typeList
.
size
();
++
member
)
{
TQualifier
memberQualifier
=
typeList
[
member
].
type
->
getQualifier
();
if
(
memberQualifier
.
storage
!=
EvqTemporary
&&
memberQualifier
.
storage
!=
EvqGlobal
&&
memberQualifier
.
storage
!=
b
lockType
.
qualifier
.
storage
)
if
(
memberQualifier
.
storage
!=
EvqTemporary
&&
memberQualifier
.
storage
!=
EvqGlobal
&&
memberQualifier
.
storage
!=
publicB
lockType
.
qualifier
.
storage
)
error
(
line
,
"member storage qualifier cannot contradict block storage qualifier"
,
typeList
[
member
].
type
->
getFieldName
().
c_str
(),
""
);
if
(
b
lockType
.
qualifier
.
storage
==
EvqUniform
&&
memberQualifier
.
isInterpolation
()
||
memberQualifier
.
isAuxillary
())
if
(
publicB
lockType
.
qualifier
.
storage
==
EvqUniform
&&
memberQualifier
.
isInterpolation
()
||
memberQualifier
.
isAuxillary
())
error
(
line
,
"member of uniform block cannot have an auxillary or interpolation qualifier"
,
typeList
[
member
].
type
->
getFieldName
().
c_str
(),
""
);
TBasicType
basicType
=
typeList
[
member
].
type
->
getBasicType
();
...
...
@@ -1506,7 +1506,7 @@ void TParseContext::addBlock(int line, TTypeList& typeList, const TString* insta
// Make default block qualification, and adjust the member qualifications
TQualifier
defaultQualification
=
defaultGlobalQualification
;
mergeLayoutQualifiers
(
line
,
defaultQualification
,
b
lockType
.
qualifier
);
mergeLayoutQualifiers
(
line
,
defaultQualification
,
publicB
lockType
.
qualifier
);
for
(
unsigned
int
member
=
0
;
member
<
typeList
.
size
();
++
member
)
{
TQualifier
memberQualification
=
defaultQualification
;
mergeLayoutQualifiers
(
line
,
memberQualification
,
typeList
[
member
].
type
->
getQualifier
());
...
...
@@ -1515,7 +1515,7 @@ void TParseContext::addBlock(int line, TTypeList& typeList, const TString* insta
// Build and add the interface block as a new type named blockName
TType
blockType
(
&
typeList
,
*
blockName
,
b
lockType
.
qualifier
.
storage
);
TType
blockType
(
&
typeList
,
*
blockName
,
publicB
lockType
.
qualifier
.
storage
);
if
(
arraySizes
)
blockType
.
setArraySizes
(
arraySizes
);
blockType
.
getQualifier
().
layoutPacking
=
defaultQualification
.
layoutPacking
;
...
...
glslang/MachineIndependent/ParseHelper.h
View file @
a622cf2d
...
...
@@ -95,7 +95,7 @@ struct TParseContext {
TString
HashErrMsg
;
bool
AfterEOF
;
const
TString
*
blockName
;
TPublicType
b
lockType
;
TPublicType
publicB
lockType
;
void
initializeExtensionBehavior
();
const
char
*
getPreamble
();
...
...
glslang/MachineIndependent/glslang.y
View file @
a622cf2d
...
...
@@ -1137,7 +1137,7 @@ block_structure
: type_qualifier IDENTIFIER LEFT_BRACE { parseContext.nestedBlockCheck($1.line); } struct_declaration_list RIGHT_BRACE {
--parseContext.structNestingLevel;
parseContext.blockName = $2.string;
parseContext.
b
lockType = $1;
parseContext.
publicB
lockType = $1;
$$.line = $1.line;
$$.typeList = $5;
}
...
...
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