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
ef94b1a5
Commit
ef94b1a5
authored
Jul 24, 2017
by
LoopDawg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix dref explicit LOD form of sample with cube texture arrays
The dref parameter was being used as the LOD. Now it it's properly the dref.
parent
53863a3a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
GlslangToSpv.cpp
SPIRV/GlslangToSpv.cpp
+2
-2
hlsl.samplecmplevelzero.array.dx10.frag.out
Test/baseResults/hlsl.samplecmplevelzero.array.dx10.frag.out
+3
-3
No files found.
SPIRV/GlslangToSpv.cpp
View file @
ef94b1a5
...
@@ -3345,7 +3345,7 @@ spv::Id TGlslangToSpvTraverser::createImageTextureFunctionCall(glslang::TIntermO
...
@@ -3345,7 +3345,7 @@ spv::Id TGlslangToSpvTraverser::createImageTextureFunctionCall(glslang::TIntermO
// lod
// lod
if
(
cracked
.
lod
)
{
if
(
cracked
.
lod
)
{
params
.
lod
=
arguments
[
2
];
params
.
lod
=
arguments
[
2
+
extraArgs
];
++
extraArgs
;
++
extraArgs
;
}
else
if
(
glslangIntermediate
->
getStage
()
!=
EShLangFragment
)
{
}
else
if
(
glslangIntermediate
->
getStage
()
!=
EShLangFragment
)
{
// we need to invent the default lod for an explicit lod instruction for a non-fragment stage
// we need to invent the default lod for an explicit lod instruction for a non-fragment stage
...
@@ -3354,7 +3354,7 @@ spv::Id TGlslangToSpvTraverser::createImageTextureFunctionCall(glslang::TIntermO
...
@@ -3354,7 +3354,7 @@ spv::Id TGlslangToSpvTraverser::createImageTextureFunctionCall(glslang::TIntermO
// multisample
// multisample
if
(
sampler
.
ms
)
{
if
(
sampler
.
ms
)
{
params
.
sample
=
arguments
[
2
];
// For MS, "sample" should be specified
params
.
sample
=
arguments
[
2
+
extraArgs
];
// For MS, "sample" should be specified
++
extraArgs
;
++
extraArgs
;
}
}
...
...
Test/baseResults/hlsl.samplecmplevelzero.array.dx10.frag.out
View file @
ef94b1a5
...
@@ -713,7 +713,7 @@ gl_FragCoord origin is upper left
...
@@ -713,7 +713,7 @@ gl_FragCoord origin is upper left
127: 6(float) CompositeExtract 124 2
127: 6(float) CompositeExtract 124 2
128: 6(float) CompositeExtract 124 3
128: 6(float) CompositeExtract 124 3
129: 7(fvec4) CompositeConstruct 125 126 127 128
129: 7(fvec4) CompositeConstruct 125 126 127 128
130: 6(float) ImageSampleDrefExplicitLod 122 129 29 Lod
29
130: 6(float) ImageSampleDrefExplicitLod 122 129 29 Lod
34
Store 114(r60) 130
Store 114(r60) 130
135: 132 Load 134(g_tTexcdi4a)
135: 132 Load 134(g_tTexcdi4a)
136: 18 Load 20(g_sSamp)
136: 18 Load 20(g_sSamp)
...
@@ -723,7 +723,7 @@ gl_FragCoord origin is upper left
...
@@ -723,7 +723,7 @@ gl_FragCoord origin is upper left
142: 6(float) CompositeExtract 124 2
142: 6(float) CompositeExtract 124 2
143: 6(float) CompositeExtract 124 3
143: 6(float) CompositeExtract 124 3
144: 7(fvec4) CompositeConstruct 140 141 142 143
144: 7(fvec4) CompositeConstruct 140 141 142 143
145: 6(float) ImageSampleDrefExplicitLod 139 144 29 Lod
29
145: 6(float) ImageSampleDrefExplicitLod 139 144 29 Lod
34
Store 131(r62) 145
Store 131(r62) 145
150: 147 Load 149(g_tTexcdu4a)
150: 147 Load 149(g_tTexcdu4a)
151: 18 Load 20(g_sSamp)
151: 18 Load 20(g_sSamp)
...
@@ -733,7 +733,7 @@ gl_FragCoord origin is upper left
...
@@ -733,7 +733,7 @@ gl_FragCoord origin is upper left
157: 6(float) CompositeExtract 124 2
157: 6(float) CompositeExtract 124 2
158: 6(float) CompositeExtract 124 3
158: 6(float) CompositeExtract 124 3
159: 7(fvec4) CompositeConstruct 155 156 157 158
159: 7(fvec4) CompositeConstruct 155 156 157 158
160: 6(float) ImageSampleDrefExplicitLod 154 159 29 Lod
29
160: 6(float) ImageSampleDrefExplicitLod 154 159 29 Lod
34
Store 146(r64) 160
Store 146(r64) 160
167: 166(ptr) AccessChain 162(psout) 163
167: 166(ptr) AccessChain 162(psout) 163
Store 167 165
Store 167 165
...
...
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