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
9f0cbdc2
Commit
9f0cbdc2
authored
May 12, 2016
by
John Kessenich
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #277 from amdrexu/bugfix3
SPV: Add capability ImageGatherExtended if necessary.
parents
fc6ac785
58390317
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
1 deletion
+5
-1
SpvBuilder.cpp
SPIRV/SpvBuilder.cpp
+3
-1
spv.400.frag.out
Test/baseResults/spv.400.frag.out
+1
-0
spv.420.geom.out
Test/baseResults/spv.420.geom.out
+1
-0
No files found.
SPIRV/SpvBuilder.cpp
View file @
9f0cbdc2
...
@@ -1464,8 +1464,10 @@ Id Builder::createTextureCall(Decoration precision, Id resultType, bool sparse,
...
@@ -1464,8 +1464,10 @@ Id Builder::createTextureCall(Decoration precision, Id resultType, bool sparse,
if
(
parameters
.
offset
)
{
if
(
parameters
.
offset
)
{
if
(
isConstant
(
parameters
.
offset
))
if
(
isConstant
(
parameters
.
offset
))
mask
=
(
ImageOperandsMask
)(
mask
|
ImageOperandsConstOffsetMask
);
mask
=
(
ImageOperandsMask
)(
mask
|
ImageOperandsConstOffsetMask
);
else
else
{
addCapability
(
CapabilityImageGatherExtended
);
mask
=
(
ImageOperandsMask
)(
mask
|
ImageOperandsOffsetMask
);
mask
=
(
ImageOperandsMask
)(
mask
|
ImageOperandsOffsetMask
);
}
texArgs
[
numArgs
++
]
=
parameters
.
offset
;
texArgs
[
numArgs
++
]
=
parameters
.
offset
;
}
}
if
(
parameters
.
offsets
)
{
if
(
parameters
.
offsets
)
{
...
...
Test/baseResults/spv.400.frag.out
View file @
9f0cbdc2
...
@@ -11,6 +11,7 @@ Linked fragment stage:
...
@@ -11,6 +11,7 @@ Linked fragment stage:
Capability Shader
Capability Shader
Capability Float64
Capability Float64
Capability ImageGatherExtended
Capability ClipDistance
Capability ClipDistance
Capability SampledRect
Capability SampledRect
1: ExtInstImport "GLSL.std.450"
1: ExtInstImport "GLSL.std.450"
...
...
Test/baseResults/spv.420.geom.out
View file @
9f0cbdc2
...
@@ -11,6 +11,7 @@ Linked geometry stage:
...
@@ -11,6 +11,7 @@ Linked geometry stage:
Capability Geometry
Capability Geometry
Capability GeometryPointSize
Capability GeometryPointSize
Capability ImageGatherExtended
Capability GeometryStreams
Capability GeometryStreams
Capability MultiViewport
Capability MultiViewport
1: ExtInstImport "GLSL.std.450"
1: ExtInstImport "GLSL.std.450"
...
...
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