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
70e057a4
Commit
70e057a4
authored
Jan 13, 2016
by
John Kessenich
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch GitHub 'master' into GitLab master
parents
3863412e
863aa667
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
11 additions
and
8 deletions
+11
-8
GlslangToSpv.cpp
SPIRV/GlslangToSpv.cpp
+1
-1
SpvBuilder.cpp
SPIRV/SpvBuilder.cpp
+1
-1
spirv.hpp
SPIRV/spirv.hpp
+0
-0
reflection.vert.out
Test/baseResults/reflection.vert.out
+1
-1
Scan.cpp
glslang/MachineIndependent/Scan.cpp
+1
-1
linkValidate.cpp
glslang/MachineIndependent/linkValidate.cpp
+6
-1
PpTokens.cpp
glslang/MachineIndependent/preprocessor/PpTokens.cpp
+1
-3
No files found.
SPIRV/GlslangToSpv.cpp
View file @
70e057a4
...
...
@@ -2954,7 +2954,7 @@ spv::Id TGlslangToSpvTraverser::createMiscOperation(glslang::TOperator op, spv::
spv
::
Op
opCode
=
spv
::
OpNop
;
int
libCall
=
-
1
;
in
t
consumedOperands
=
operands
.
size
();
size_
t
consumedOperands
=
operands
.
size
();
spv
::
Id
typeId0
=
0
;
if
(
consumedOperands
>
0
)
typeId0
=
builder
.
getTypeId
(
operands
[
0
]);
...
...
SPIRV/SpvBuilder.cpp
View file @
70e057a4
...
...
@@ -1365,7 +1365,7 @@ Id Builder::createTextureQueryCall(Op opCode, const TextureParameters& parameter
case
OpImageQuerySize
:
case
OpImageQuerySizeLod
:
{
int
numComponents
;
int
numComponents
=
0
;
switch
(
getTypeDimensionality
(
getImageType
(
parameters
.
sampler
)))
{
case
Dim1D
:
case
DimBuffer
:
...
...
SPIRV/spirv.hpp
View file @
70e057a4
This diff is collapsed.
Click to expand it.
Test/baseResults/reflection.vert.out
View file @
70e057a4
...
...
@@ -85,7 +85,7 @@ Uniform block reflection:
nameless: offset -1, type ffffffff, size 496, index -1
named: offset -1, type ffffffff, size 304, index -1
c_nameless: offset -1, type ffffffff, size 112, index -1
nested: offset -1, type ffffffff, size
28
, index -1
nested: offset -1, type ffffffff, size
32
, index -1
abl[0]: offset -1, type ffffffff, size 4, index -1
abl[1]: offset -1, type ffffffff, size 4, index -1
abl[2]: offset -1, type ffffffff, size 4, index -1
...
...
glslang/MachineIndependent/Scan.cpp
View file @
70e057a4
...
...
@@ -309,7 +309,7 @@ struct str_hash
unsigned
long
hash
=
5381
;
int
c
;
while
((
c
=
*
str
++
))
while
((
c
=
*
str
++
)
!=
0
)
hash
=
((
hash
<<
5
)
+
hash
)
+
c
;
return
hash
;
...
...
glslang/MachineIndependent/linkValidate.cpp
View file @
70e057a4
...
...
@@ -959,6 +959,11 @@ int TIntermediate::getBaseAlignment(const TType& type, int& size, int& stride, b
size
+=
memberSize
;
}
// The structure may have padding at the end; the base offset of
// the member following the sub-structure is rounded up to the next
// multiple of the base alignment of the structure.
RoundToPow2
(
size
,
maxAlignment
);
return
maxAlignment
;
}
...
...
@@ -982,7 +987,7 @@ int TIntermediate::getBaseAlignment(const TType& type, int& size, int& stride, b
// rules 5 and 7
if
(
type
.
isMatrix
())
{
// rule 5: deref to row, not to column, meaning the size of vector is num columns instead of num rows
TType
derefType
(
type
,
0
,
type
.
getQualifier
().
layoutMatrix
==
ElmR
owMajor
);
TType
derefType
(
type
,
0
,
r
owMajor
);
alignment
=
getBaseAlignment
(
derefType
,
size
,
dummyStride
,
std140
,
rowMajor
);
if
(
std140
)
...
...
glslang/MachineIndependent/preprocessor/PpTokens.cpp
View file @
70e057a4
...
...
@@ -195,7 +195,7 @@ int TPpContext::ReadToken(TokenStream *pTok, TPpToken *ppToken)
case
PpAtomConstUint
:
len
=
0
;
ch
=
lReadByte
(
pTok
);
while
(
ch
!=
0
)
{
while
(
ch
!=
0
&&
ch
!=
EndOfInput
)
{
if
(
len
<
MaxTokenLength
)
{
tokenText
[
len
]
=
(
char
)
ch
;
len
++
;
...
...
@@ -215,12 +215,10 @@ int TPpContext::ReadToken(TokenStream *pTok, TPpToken *ppToken)
break
;
case
PpAtomConstFloat
:
case
PpAtomConstDouble
:
strcpy
(
ppToken
->
name
,
tokenText
);
ppToken
->
dval
=
atof
(
ppToken
->
name
);
break
;
case
PpAtomConstInt
:
case
PpAtomConstUint
:
strcpy
(
ppToken
->
name
,
tokenText
);
if
(
len
>
0
&&
tokenText
[
0
]
==
'0'
)
{
if
(
len
>
1
&&
(
tokenText
[
1
]
==
'x'
||
tokenText
[
1
]
==
'X'
))
ppToken
->
ival
=
strtol
(
ppToken
->
name
,
0
,
16
);
...
...
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