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
45d4a94c
Commit
45d4a94c
authored
Mar 06, 2018
by
John Kessenich
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'GitHub/master'
parents
7160e172
caa54449
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
1 deletion
+24
-1
Types.h
glslang/Include/Types.h
+6
-0
ParseHelper.cpp
glslang/MachineIndependent/ParseHelper.cpp
+17
-0
known_good.json
known_good.json
+1
-1
No files found.
glslang/Include/Types.h
View file @
45d4a94c
...
...
@@ -515,6 +515,12 @@ public:
return
flat
||
smooth
||
nopersp
;
#endif
}
#ifdef AMD_EXTENSIONS
bool
isExplicitInterpolation
()
const
{
return
explicitInterp
;
}
#endif
bool
isAuxiliary
()
const
{
return
centroid
||
patch
||
sample
;
...
...
glslang/MachineIndependent/ParseHelper.cpp
View file @
45d4a94c
...
...
@@ -1609,6 +1609,23 @@ void TParseContext::builtInOpCheck(const TSourceLoc& loc, const TFunction& fnCan
if
(
base
==
nullptr
||
base
->
getType
().
getQualifier
().
storage
!=
EvqVaryingIn
)
error
(
loc
,
"first argument must be an interpolant, or interpolant-array element"
,
fnCandidate
.
getName
().
c_str
(),
""
);
}
#ifdef AMD_EXTENSIONS
if
(
callNode
.
getOp
()
==
EOpInterpolateAtVertex
)
{
if
(
!
arg0
->
getType
().
getQualifier
().
isExplicitInterpolation
())
error
(
loc
,
"argument must be qualified as __explicitInterpAMD in"
,
"interpolant"
,
""
);
else
{
if
(
!
(
*
argp
)[
1
]
->
getAsConstantUnion
())
error
(
loc
,
"argument must be compile-time constant"
,
"vertex index"
,
""
);
else
{
unsigned
vertexIdx
=
(
*
argp
)[
1
]
->
getAsConstantUnion
()
->
getConstArray
()[
0
].
getUConst
();
if
(
vertexIdx
>
2
)
error
(
loc
,
"must be in the range [0, 2]"
,
"vertex index"
,
""
);
}
}
}
#endif
break
;
case
EOpEmitStreamVertex
:
...
...
known_good.json
View file @
45d4a94c
...
...
@@ -5,7 +5,7 @@
"site"
:
"github"
,
"subrepo"
:
"KhronosGroup/SPIRV-Tools"
,
"subdir"
:
"External/spirv-tools"
,
"commit"
:
"4
e4a254bc85ea41af93a048f1713ef27e04c01ab
"
"commit"
:
"4
6a9ec9d2312bc8f2a87810614d06c721ea3121c
"
},
{
"name"
:
"spirv-tools/external/spirv-headers"
,
...
...
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