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
344bd088
Unverified
Commit
344bd088
authored
Mar 30, 2020
by
John Kessenich
Committed by
GitHub
Mar 30, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2162 from ntfshard/small_fix
Humble fix
parents
83855b97
1dad9200
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
4 additions
and
10 deletions
+4
-10
hex_float.h
SPIRV/hex_float.h
+2
-2
StandAlone.cpp
StandAlone/StandAlone.cpp
+0
-1
spirv-remap.cpp
StandAlone/spirv-remap.cpp
+0
-2
SymbolTable.cpp
glslang/MachineIndependent/SymbolTable.cpp
+1
-1
reflection.cpp
glslang/MachineIndependent/reflection.cpp
+1
-1
hlslParseHelper.cpp
hlsl/hlslParseHelper.cpp
+0
-3
No files found.
SPIRV/hex_float.h
View file @
344bd088
...
@@ -784,8 +784,8 @@ inline std::istream& ParseNormalFloat(std::istream& is, bool negate_value,
...
@@ -784,8 +784,8 @@ inline std::istream& ParseNormalFloat(std::istream& is, bool negate_value,
if
(
val
.
isInfinity
())
{
if
(
val
.
isInfinity
())
{
// Fail the parse. Emulate standard behaviour by setting the value to
// Fail the parse. Emulate standard behaviour by setting the value to
// the closest normal value, and set the fail bit on the stream.
// the closest normal value, and set the fail bit on the stream.
value
.
set_value
((
value
.
isNegative
()
|
negate_value
)
?
T
::
lowest
()
value
.
set_value
((
value
.
isNegative
()
|
|
negate_value
)
?
T
::
lowest
()
:
T
::
max
());
:
T
::
max
());
is
.
setstate
(
std
::
ios_base
::
failbit
);
is
.
setstate
(
std
::
ios_base
::
failbit
);
}
}
return
is
;
return
is
;
...
...
StandAlone/StandAlone.cpp
View file @
344bd088
...
@@ -1140,7 +1140,6 @@ void CompileAndLinkShaderUnits(std::vector<ShaderCompUnit> compUnits)
...
@@ -1140,7 +1140,6 @@ void CompileAndLinkShaderUnits(std::vector<ShaderCompUnit> compUnits)
for
(
int
stage
=
0
;
stage
<
EShLangCount
;
++
stage
)
{
for
(
int
stage
=
0
;
stage
<
EShLangCount
;
++
stage
)
{
if
(
program
.
getIntermediate
((
EShLanguage
)
stage
))
{
if
(
program
.
getIntermediate
((
EShLanguage
)
stage
))
{
std
::
vector
<
unsigned
int
>
spirv
;
std
::
vector
<
unsigned
int
>
spirv
;
std
::
string
warningsErrors
;
spv
::
SpvBuildLogger
logger
;
spv
::
SpvBuildLogger
logger
;
glslang
::
SpvOptions
spvOptions
;
glslang
::
SpvOptions
spvOptions
;
if
(
Options
&
EOptionDebug
)
if
(
Options
&
EOptionDebug
)
...
...
StandAlone/spirv-remap.cpp
View file @
344bd088
...
@@ -334,8 +334,6 @@ int main(int argc, char** argv)
...
@@ -334,8 +334,6 @@ int main(int argc, char** argv)
if
(
outputDir
.
empty
())
if
(
outputDir
.
empty
())
usage
(
argv
[
0
],
"Output directory required"
);
usage
(
argv
[
0
],
"Output directory required"
);
std
::
string
errmsg
;
// Main operations: read, remap, and write.
// Main operations: read, remap, and write.
execute
(
inputFile
,
outputDir
,
opts
,
verbosity
);
execute
(
inputFile
,
outputDir
,
opts
,
verbosity
);
...
...
glslang/MachineIndependent/SymbolTable.cpp
View file @
344bd088
...
@@ -122,7 +122,7 @@ void TType::buildMangledName(TString& mangledName) const
...
@@ -122,7 +122,7 @@ void TType::buildMangledName(TString& mangledName) const
mangledName
+=
"-tx-struct"
;
mangledName
+=
"-tx-struct"
;
char
text
[
16
];
// plenty enough space for the small integers.
char
text
[
16
];
// plenty enough space for the small integers.
snprintf
(
text
,
sizeof
(
text
),
"%
d
-"
,
sampler
.
getStructReturnIndex
());
snprintf
(
text
,
sizeof
(
text
),
"%
u
-"
,
sampler
.
getStructReturnIndex
());
mangledName
+=
text
;
mangledName
+=
text
;
}
else
{
}
else
{
switch
(
sampler
.
getVectorSize
())
{
switch
(
sampler
.
getVectorSize
())
{
...
...
glslang/MachineIndependent/reflection.cpp
View file @
344bd088
...
@@ -1188,7 +1188,7 @@ void TReflection::dump()
...
@@ -1188,7 +1188,7 @@ void TReflection::dump()
for
(
int
dim
=
0
;
dim
<
3
;
++
dim
)
for
(
int
dim
=
0
;
dim
<
3
;
++
dim
)
if
(
getLocalSize
(
dim
)
>
1
)
if
(
getLocalSize
(
dim
)
>
1
)
printf
(
"Local size %s: %
d
\n
"
,
axis
[
dim
],
getLocalSize
(
dim
));
printf
(
"Local size %s: %
u
\n
"
,
axis
[
dim
],
getLocalSize
(
dim
));
printf
(
"
\n
"
);
printf
(
"
\n
"
);
}
}
...
...
hlsl/hlslParseHelper.cpp
View file @
344bd088
...
@@ -757,9 +757,6 @@ TIntermTyped* HlslParseContext::handleBracketOperator(const TSourceLoc& loc, TIn
...
@@ -757,9 +757,6 @@ TIntermTyped* HlslParseContext::handleBracketOperator(const TSourceLoc& loc, TIn
// indexStructBufferContent returns nullptr if it isn't a structuredbuffer (SSBO).
// indexStructBufferContent returns nullptr if it isn't a structuredbuffer (SSBO).
TIntermTyped
*
sbArray
=
indexStructBufferContent
(
loc
,
base
);
TIntermTyped
*
sbArray
=
indexStructBufferContent
(
loc
,
base
);
if
(
sbArray
!=
nullptr
)
{
if
(
sbArray
!=
nullptr
)
{
if
(
sbArray
==
nullptr
)
return
nullptr
;
// Now we'll apply the [] index to that array
// Now we'll apply the [] index to that array
const
TOperator
idxOp
=
(
index
->
getQualifier
().
storage
==
EvqConst
)
?
EOpIndexDirect
:
EOpIndexIndirect
;
const
TOperator
idxOp
=
(
index
->
getQualifier
().
storage
==
EvqConst
)
?
EOpIndexDirect
:
EOpIndexIndirect
;
...
...
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