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
30669536
Commit
30669536
authored
Aug 06, 2015
by
John Kessenich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes to
8f1684b7
, merge pull request 52.
parent
8f1684b7
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
11 deletions
+11
-11
GlslangToSpv.cpp
SPIRV/GlslangToSpv.cpp
+5
-5
SpvBuilder.cpp
SPIRV/SpvBuilder.cpp
+2
-2
revision.h
glslang/Include/revision.h
+2
-2
Constant.cpp
glslang/MachineIndependent/Constant.cpp
+1
-1
Scan.h
glslang/MachineIndependent/Scan.h
+1
-1
No files found.
SPIRV/GlslangToSpv.cpp
View file @
30669536
...
@@ -1370,9 +1370,9 @@ spv::Id TGlslangToSpvTraverser::convertGlslangToSpvType(const glslang::TType& ty
...
@@ -1370,9 +1370,9 @@ spv::Id TGlslangToSpvTraverser::convertGlslangToSpvType(const glslang::TType& ty
builder
.
addMemberDecoration
(
spvType
,
member
,
spv
::
DecorationOffset
,
glslangType
.
getQualifier
().
layoutXfbOffset
);
builder
.
addMemberDecoration
(
spvType
,
member
,
spv
::
DecorationOffset
,
glslangType
.
getQualifier
().
layoutXfbOffset
);
// built-in variable decorations
// built-in variable decorations
int
builtIn
=
TranslateBuiltInDecoration
(
glslangType
.
getQualifier
().
builtIn
);
spv
::
BuiltIn
builtIn
=
TranslateBuiltInDecoration
(
glslangType
.
getQualifier
().
builtIn
);
if
(
(
unsigned
int
)
builtIn
!=
spv
::
BadValue
)
if
(
builtIn
!=
spv
::
BadValue
)
builder
.
addMemberDecoration
(
spvType
,
member
,
spv
::
DecorationBuiltIn
,
builtIn
);
builder
.
addMemberDecoration
(
spvType
,
member
,
spv
::
DecorationBuiltIn
,
(
int
)
builtIn
);
}
}
}
}
...
@@ -2518,9 +2518,9 @@ spv::Id TGlslangToSpvTraverser::getSymbolId(const glslang::TIntermSymbol* symbol
...
@@ -2518,9 +2518,9 @@ spv::Id TGlslangToSpvTraverser::getSymbolId(const glslang::TIntermSymbol* symbol
}
}
// built-in variable decorations
// built-in variable decorations
int
builtIn
=
TranslateBuiltInDecoration
(
symbol
->
getQualifier
().
builtIn
);
spv
::
BuiltIn
builtIn
=
TranslateBuiltInDecoration
(
symbol
->
getQualifier
().
builtIn
);
if
((
unsigned
int
)
builtIn
!=
spv
::
BadValue
)
if
((
unsigned
int
)
builtIn
!=
spv
::
BadValue
)
builder
.
addDecoration
(
id
,
spv
::
DecorationBuiltIn
,
builtIn
);
builder
.
addDecoration
(
id
,
spv
::
DecorationBuiltIn
,
(
int
)
builtIn
);
if
(
linkageOnly
)
if
(
linkageOnly
)
builder
.
addDecoration
(
id
,
spv
::
DecorationNoStaticUse
);
builder
.
addDecoration
(
id
,
spv
::
DecorationNoStaticUse
);
...
...
SPIRV/SpvBuilder.cpp
View file @
30669536
...
@@ -1032,7 +1032,7 @@ Id Builder::createRvalueSwizzle(Id typeId, Id source, std::vector<unsigned>& cha
...
@@ -1032,7 +1032,7 @@ Id Builder::createRvalueSwizzle(Id typeId, Id source, std::vector<unsigned>& cha
// Comments in header
// Comments in header
Id
Builder
::
createLvalueSwizzle
(
Id
typeId
,
Id
target
,
Id
source
,
std
::
vector
<
unsigned
>&
channels
)
Id
Builder
::
createLvalueSwizzle
(
Id
typeId
,
Id
target
,
Id
source
,
std
::
vector
<
unsigned
>&
channels
)
{
{
assert
(
(
size_t
)
getNumComponents
(
source
)
==
channels
.
size
());
assert
(
getNumComponents
(
source
)
==
(
int
)
channels
.
size
());
if
(
channels
.
size
()
==
1
&&
getNumComponents
(
source
)
==
1
)
if
(
channels
.
size
()
==
1
&&
getNumComponents
(
source
)
==
1
)
return
createCompositeInsert
(
source
,
target
,
typeId
,
channels
.
front
());
return
createCompositeInsert
(
source
,
target
,
typeId
,
channels
.
front
());
...
@@ -1471,7 +1471,7 @@ Id Builder::createCompare(Decoration precision, Id value1, Id value2, bool equal
...
@@ -1471,7 +1471,7 @@ Id Builder::createCompare(Decoration precision, Id value1, Id value2, bool equal
// OpCompositeConstruct
// OpCompositeConstruct
Id
Builder
::
createCompositeConstruct
(
Id
typeId
,
std
::
vector
<
Id
>&
constituents
)
Id
Builder
::
createCompositeConstruct
(
Id
typeId
,
std
::
vector
<
Id
>&
constituents
)
{
{
assert
(
(
isAggregateType
(
typeId
)
||
getNumTypeComponents
(
typeId
)
>
1
)
&&
(
size_t
)
getNumTypeComponents
(
typeId
)
==
constituents
.
size
(
));
assert
(
isAggregateType
(
typeId
)
||
(
getNumTypeComponents
(
typeId
)
>
1
&&
getNumTypeComponents
(
typeId
)
==
(
int
)
constituents
.
size
()
));
Instruction
*
op
=
new
Instruction
(
getUniqueId
(),
typeId
,
OpCompositeConstruct
);
Instruction
*
op
=
new
Instruction
(
getUniqueId
(),
typeId
,
OpCompositeConstruct
);
for
(
int
c
=
0
;
c
<
(
int
)
constituents
.
size
();
++
c
)
for
(
int
c
=
0
;
c
<
(
int
)
constituents
.
size
();
++
c
)
...
...
glslang/Include/revision.h
View file @
30669536
...
@@ -2,5 +2,5 @@
...
@@ -2,5 +2,5 @@
// For the version, it uses the latest git tag followed by the number of commits.
// For the version, it uses the latest git tag followed by the number of commits.
// For the date, it uses the current date (when then script is run).
// For the date, it uses the current date (when then script is run).
#define GLSLANG_REVISION "2.2.6
87
"
#define GLSLANG_REVISION "2.2.6
99
"
#define GLSLANG_DATE "0
3
-Aug-2015"
#define GLSLANG_DATE "0
6
-Aug-2015"
glslang/MachineIndependent/Constant.cpp
View file @
30669536
...
@@ -172,7 +172,7 @@ TIntermTyped* TIntermConstantUnion::fold(TOperator op, const TIntermTyped* const
...
@@ -172,7 +172,7 @@ TIntermTyped* TIntermConstantUnion::fold(TOperator op, const TIntermTyped* const
case
EbtInt
:
case
EbtInt
:
if
(
rightUnionArray
[
i
]
==
0
)
if
(
rightUnionArray
[
i
]
==
0
)
newConstArray
[
i
].
setIConst
(
0x7FFFFFFF
);
newConstArray
[
i
].
setIConst
(
0x7FFFFFFF
);
else
if
(
rightUnionArray
[
i
].
getIConst
()
==
-
1
&&
(
unsigned
int
)
unionArray
[
i
].
getIConst
()
==
0x80000000
)
else
if
(
rightUnionArray
[
i
].
getIConst
()
==
-
1
&&
unionArray
[
i
].
getIConst
()
==
0x80000000
)
newConstArray
[
i
].
setIConst
(
0x80000000
);
newConstArray
[
i
].
setIConst
(
0x80000000
);
else
else
newConstArray
[
i
].
setIConst
(
unionArray
[
i
].
getIConst
()
/
rightUnionArray
[
i
].
getIConst
());
newConstArray
[
i
].
setIConst
(
unionArray
[
i
].
getIConst
()
/
rightUnionArray
[
i
].
getIConst
());
...
...
glslang/MachineIndependent/Scan.h
View file @
30669536
...
@@ -172,7 +172,7 @@ protected:
...
@@ -172,7 +172,7 @@ protected:
void
advance
()
void
advance
()
{
{
++
currentChar
;
++
currentChar
;
if
(
currentChar
>=
static_cast
<
size_t
>
(
lengths
[
currentSource
])
)
{
if
(
currentChar
>=
lengths
[
currentSource
]
)
{
++
currentSource
;
++
currentSource
;
if
(
currentSource
<
numSources
)
{
if
(
currentSource
<
numSources
)
{
loc
[
currentSource
].
string
=
loc
[
currentSource
-
1
].
string
+
1
;
loc
[
currentSource
].
string
=
loc
[
currentSource
-
1
].
string
+
1
;
...
...
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