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
58390317
Commit
58390317
authored
May 11, 2016
by
Rex Xu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SPV: Add capability ImageGatherExtended if necessary.
parent
fc6ac785
Hide 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 @
58390317
...
...
@@ -1464,8 +1464,10 @@ Id Builder::createTextureCall(Decoration precision, Id resultType, bool sparse,
if
(
parameters
.
offset
)
{
if
(
isConstant
(
parameters
.
offset
))
mask
=
(
ImageOperandsMask
)(
mask
|
ImageOperandsConstOffsetMask
);
else
else
{
addCapability
(
CapabilityImageGatherExtended
);
mask
=
(
ImageOperandsMask
)(
mask
|
ImageOperandsOffsetMask
);
}
texArgs
[
numArgs
++
]
=
parameters
.
offset
;
}
if
(
parameters
.
offsets
)
{
...
...
Test/baseResults/spv.400.frag.out
View file @
58390317
...
...
@@ -11,6 +11,7 @@ Linked fragment stage:
Capability Shader
Capability Float64
Capability ImageGatherExtended
Capability ClipDistance
Capability SampledRect
1: ExtInstImport "GLSL.std.450"
...
...
Test/baseResults/spv.420.geom.out
View file @
58390317
...
...
@@ -11,6 +11,7 @@ Linked geometry stage:
Capability Geometry
Capability GeometryPointSize
Capability ImageGatherExtended
Capability GeometryStreams
Capability MultiViewport
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