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
7beb4419
Commit
7beb4419
authored
Dec 15, 2015
by
Rex Xu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SPV: Fix an issue related with imageStore() for 2DMS.
parent
ea0cb2eb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
GlslangToSpv.cpp
SPIRV/GlslangToSpv.cpp
+7
-3
spv.image.frag.out
Test/baseResults/spv.image.frag.out
+2
-2
No files found.
SPIRV/GlslangToSpv.cpp
View file @
7beb4419
...
...
@@ -1889,15 +1889,19 @@ spv::Id TGlslangToSpvTraverser::createImageTextureFunctionCall(glslang::TIntermO
auto
opIt
=
arguments
.
begin
();
operands
.
push_back
(
*
(
opIt
++
));
operands
.
push_back
(
*
(
opIt
++
));
if
(
node
->
getOp
()
==
glslang
::
EOpImageStore
)
operands
.
push_back
(
*
(
opIt
++
));
if
(
node
->
getOp
()
==
glslang
::
EOpImageLoad
)
{
if
(
sampler
.
ms
)
{
operands
.
push_back
(
spv
::
ImageOperandsSampleMask
);
operands
.
push_back
(
*
(
opIt
++
)
);
operands
.
push_back
(
*
opIt
);
}
return
builder
.
createOp
(
spv
::
OpImageRead
,
convertGlslangToSpvType
(
node
->
getType
()),
operands
);
}
else
if
(
node
->
getOp
()
==
glslang
::
EOpImageStore
)
{
if
(
sampler
.
ms
)
{
operands
.
push_back
(
*
(
opIt
+
1
));
operands
.
push_back
(
spv
::
ImageOperandsSampleMask
);
operands
.
push_back
(
*
opIt
);
}
else
operands
.
push_back
(
*
opIt
);
builder
.
createNoResultOp
(
spv
::
OpImageWrite
,
operands
);
return
spv
::
NoResult
;
}
else
{
...
...
Test/baseResults/spv.image.frag.out
View file @
7beb4419
...
...
@@ -333,7 +333,7 @@ Linked fragment stage:
214: 96 Load 98(i2DMS)
215: 29(ivec2) Load 142(ic2D)
217: 125(fvec4) Load 127(v)
ImageWrite 214 215 216
ImageWrite 214 215 21
7 Sample 21
6
218: 106 Load 108(i2DMSArray)
219: 7(ivec3) Load 152(ic3D)
221: 125(fvec4) ImageRead 218 219 Sample 220
...
...
@@ -343,7 +343,7 @@ Linked fragment stage:
224: 106 Load 108(i2DMSArray)
225: 7(ivec3) Load 152(ic3D)
227: 125(fvec4) Load 127(v)
ImageWrite 224 225 226
ImageWrite 224 225 22
7 Sample 22
6
Store 229(ui) 19
233: 6(int) Load 132(ic1D)
236: 235(ptr) ImageTexelPointer 232(ii1D) 233 0
...
...
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