Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
glslang
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
public-release-test-restored
platform
external
deqp-deps
glslang
Commits
50e57560
Commit
50e57560
authored
9 years ago
by
John Kessenich
Browse files
Options
Downloads
Patches
Plain Diff
SPV: Don't make MissingFunctionality() exit anymore.
parent
2211835b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
SPIRV/GlslangToSpv.cpp
+4
-8
4 additions, 8 deletions
SPIRV/GlslangToSpv.cpp
SPIRV/SpvBuilder.cpp
+1
-4
1 addition, 4 deletions
SPIRV/SpvBuilder.cpp
glslang/Include/revision.h
+1
-1
1 addition, 1 deletion
glslang/Include/revision.h
with
6 additions
and
13 deletions
SPIRV/GlslangToSpv.cpp
+
4
−
8
View file @
50e57560
...
...
@@ -786,16 +786,14 @@ bool TGlslangToSpvTraverser::visitBinary(glslang::TVisit /* visit */, glslang::T
convertGlslangToSpvType
(
node
->
getType
()),
left
,
right
,
node
->
getLeft
()
->
getType
().
getBasicType
());
builder
.
clearAccessChain
();
if
(
!
result
)
{
spv
::
MissingFunctionality
(
"unknown glslang binary operation"
);
return
true
;
// pick up a child as the place-holder result
}
else
{
builder
.
clearAccessChain
();
builder
.
setAccessChainRValue
(
result
);
return
false
;
}
return
true
;
}
bool
TGlslangToSpvTraverser
::
visitUnary
(
glslang
::
TVisit
/* visit */
,
glslang
::
TIntermUnary
*
node
)
...
...
@@ -908,10 +906,8 @@ bool TGlslangToSpvTraverser::visitUnary(glslang::TVisit /* visit */, glslang::TI
default
:
spv
::
MissingFunctionality
(
"unknown glslang unary"
);
b
re
ak
;
re
turn
true
;
// pick up operand as placeholder result
}
return
true
;
}
bool
TGlslangToSpvTraverser
::
visitAggregate
(
glslang
::
TVisit
visit
,
glslang
::
TIntermAggregate
*
node
)
...
...
@@ -1251,7 +1247,7 @@ bool TGlslangToSpvTraverser::visitAggregate(glslang::TVisit visit, glslang::TInt
if
(
!
result
)
{
spv
::
MissingFunctionality
(
"unknown glslang aggregate"
);
return
true
;
return
true
;
// pick up a child as a placeholder operand
}
else
{
builder
.
clearAccessChain
();
builder
.
setAccessChainRValue
(
result
);
...
...
This diff is collapsed.
Click to expand it.
SPIRV/SpvBuilder.cpp
+
1
−
4
View file @
50e57560
...
...
@@ -1369,14 +1369,12 @@ Id Builder::createTextureQueryCall(Op opCode, const TextureParameters& parameter
case
Dim2D
:
case
DimCube
:
case
DimRect
:
case
DimSubpassData
:
numComponents
=
2
;
break
;
case
Dim3D
:
numComponents
=
3
;
break
;
case
DimSubpassData
:
MissingFunctionality
(
"input-attachment dim"
);
break
;
default:
assert
(
0
);
...
...
@@ -2251,7 +2249,6 @@ void TbdFunctionality(const char* tbd)
void
MissingFunctionality
(
const
char
*
fun
)
{
printf
(
"Missing functionality: %s
\n
"
,
fun
);
exit
(
1
);
}
Builder
::
Loop
::
Loop
(
Builder
&
builder
,
bool
testFirstArg
)
...
...
This diff is collapsed.
Click to expand it.
glslang/Include/revision.h
+
1
−
1
View file @
50e57560
...
...
@@ -2,5 +2,5 @@
// 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).
#define GLSLANG_REVISION "SPIRV99.86
3
"
#define GLSLANG_REVISION "SPIRV99.86
4
"
#define GLSLANG_DATE "21-Dec-2015"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment