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
d6c37b19
Commit
d6c37b19
authored
Aug 22, 2015
by
John Kessenich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GL_OES_shader_multisample_interpolation: Include scalar swizzles as valid for interpolateAt*.
parent
0fc4338f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
2 deletions
+25
-2
400.frag
Test/400.frag
+1
-1
440.frag
Test/440.frag
+1
-0
440.frag.out
Test/baseResults/440.frag.out
+20
-0
Intermediate.cpp
glslang/MachineIndependent/Intermediate.cpp
+3
-1
No files found.
Test/400.frag
View file @
d6c37b19
...
@@ -126,7 +126,7 @@ void interp()
...
@@ -126,7 +126,7 @@ void interp()
interpolateAtSample
(
sampInArray
,
1
);
// ERROR
interpolateAtSample
(
sampInArray
,
1
);
// ERROR
interpolateAtSample
(
sampInArray
[
i
],
0
);
interpolateAtSample
(
sampInArray
[
i
],
0
);
interpolateAtSample
(
s1
.
x
,
2
);
// ERROR
interpolateAtSample
(
s1
.
x
,
2
);
interpolateAtSample
(
scalarIn
,
1
);
interpolateAtSample
(
scalarIn
,
1
);
interpolateAtOffset
(
sampInArray
,
vec2
(
0
.
2
));
// ERROR
interpolateAtOffset
(
sampInArray
,
vec2
(
0
.
2
));
// ERROR
...
...
Test/440.frag
View file @
d6c37b19
...
@@ -144,4 +144,5 @@ sample in vec3 sampInArray[4];
...
@@ -144,4 +144,5 @@ sample in vec3 sampInArray[4];
void
interp
()
void
interp
()
{
{
interpolateAtCentroid
(
sampInArray
[
2
].
xy
);
interpolateAtCentroid
(
sampInArray
[
2
].
xy
);
interpolateAtSample
(
sampInArray
[
2
].
x
.
x
,
2
);
}
}
Test/baseResults/440.frag.out
View file @
d6c37b19
...
@@ -67,6 +67,16 @@ ERROR: node is still EOpNull!
...
@@ -67,6 +67,16 @@ ERROR: node is still EOpNull!
0:146 0 (const int)
0:146 0 (const int)
0:146 Constant:
0:146 Constant:
0:146 1 (const int)
0:146 1 (const int)
0:147 interpolateAtSample (global float)
0:147 direct index (temp float)
0:147 direct index (smooth sample temp 3-component vector of float)
0:147 'sampInArray' (smooth sample in 4-element array of 3-component vector of float)
0:147 Constant:
0:147 2 (const int)
0:147 Constant:
0:147 0 (const int)
0:147 Constant:
0:147 2 (const int)
0:? Linker Objects
0:? Linker Objects
0:? 'a' (layout(location=4 component=2 ) smooth in 2-component vector of float)
0:? 'a' (layout(location=4 component=2 ) smooth in 2-component vector of float)
0:? 'b' (layout(location=4 component=1 ) smooth in float)
0:? 'b' (layout(location=4 component=1 ) smooth in float)
...
@@ -125,6 +135,16 @@ ERROR: node is still EOpNull!
...
@@ -125,6 +135,16 @@ ERROR: node is still EOpNull!
0:146 0 (const int)
0:146 0 (const int)
0:146 Constant:
0:146 Constant:
0:146 1 (const int)
0:146 1 (const int)
0:147 interpolateAtSample (global float)
0:147 direct index (temp float)
0:147 direct index (smooth sample temp 3-component vector of float)
0:147 'sampInArray' (smooth sample in 4-element array of 3-component vector of float)
0:147 Constant:
0:147 2 (const int)
0:147 Constant:
0:147 0 (const int)
0:147 Constant:
0:147 2 (const int)
0:? Linker Objects
0:? Linker Objects
0:? 'a' (layout(location=4 component=2 ) smooth in 2-component vector of float)
0:? 'a' (layout(location=4 component=2 ) smooth in 2-component vector of float)
0:? 'b' (layout(location=4 component=1 ) smooth in float)
0:? 'b' (layout(location=4 component=1 ) smooth in float)
...
...
glslang/MachineIndependent/Intermediate.cpp
View file @
d6c37b19
...
@@ -882,7 +882,9 @@ const TIntermTyped* TIntermediate::findLValueBase(const TIntermTyped* node, bool
...
@@ -882,7 +882,9 @@ const TIntermTyped* TIntermediate::findLValueBase(const TIntermTyped* node, bool
if
(
!
swizzleOkay
)
{
if
(
!
swizzleOkay
)
{
if
(
op
==
EOpVectorSwizzle
)
if
(
op
==
EOpVectorSwizzle
)
return
nullptr
;
return
nullptr
;
if
((
op
==
EOpIndexDirect
||
op
==
EOpIndexIndirect
)
&&
binary
->
getLeft
()
->
getType
().
isVector
()
&&
!
binary
->
getLeft
()
->
getType
().
isArray
())
if
((
op
==
EOpIndexDirect
||
op
==
EOpIndexIndirect
)
&&
(
binary
->
getLeft
()
->
getType
().
isVector
()
||
binary
->
getLeft
()
->
getType
().
isScalar
())
&&
!
binary
->
getLeft
()
->
getType
().
isArray
())
return
nullptr
;
return
nullptr
;
}
}
node
=
node
->
getAsBinaryNode
()
->
getLeft
();
node
=
node
->
getAsBinaryNode
()
->
getLeft
();
...
...
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