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
6feb4989
Commit
6feb4989
authored
Dec 13, 2015
by
John Kessenich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SPV texturing: Use comp. 2 as the 3rd comp. for Dref in ImageSampleProjDrefImplicitLod.
parent
f5ce6465
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
9 deletions
+9
-9
GlslangToSpv.cpp
SPIRV/GlslangToSpv.cpp
+1
-1
spv.400.frag.out
Test/baseResults/spv.400.frag.out
+1
-1
spv.texture.frag.out
Test/baseResults/spv.texture.frag.out
+4
-4
spv.texture.vert.out
Test/baseResults/spv.texture.vert.out
+2
-2
revision.h
glslang/Include/revision.h
+1
-1
No files found.
SPIRV/GlslangToSpv.cpp
View file @
6feb4989
...
@@ -1951,7 +1951,7 @@ spv::Id TGlslangToSpvTraverser::createImageTextureFunctionCall(glslang::TIntermO
...
@@ -1951,7 +1951,7 @@ spv::Id TGlslangToSpvTraverser::createImageTextureFunctionCall(glslang::TIntermO
std
::
vector
<
spv
::
Id
>
indexes
;
std
::
vector
<
spv
::
Id
>
indexes
;
int
comp
;
int
comp
;
if
(
cracked
.
proj
)
if
(
cracked
.
proj
)
comp
=
3
;
comp
=
2
;
// "The resulting 3rd component of P in the shadow forms is used as Dref"
else
else
comp
=
builder
.
getNumComponents
(
params
.
coords
)
-
1
;
comp
=
builder
.
getNumComponents
(
params
.
coords
)
-
1
;
indexes
.
push_back
(
comp
);
indexes
.
push_back
(
comp
);
...
...
Test/baseResults/spv.400.frag.out
View file @
6feb4989
...
@@ -163,7 +163,7 @@ Linked fragment stage:
...
@@ -163,7 +163,7 @@ Linked fragment stage:
7: Label
7: Label
16: 13 Load 15(u2drs)
16: 13 Load 15(u2drs)
17: 9(fvec4) Load 11(outp)
17: 9(fvec4) Load 11(outp)
26: 8(float) CompositeExtract 17
3
26: 8(float) CompositeExtract 17
2
27: 8(float) ImageSampleProjDrefExplicitLod 16 17 26 Grad ConstOffset 20 20 25
27: 8(float) ImageSampleProjDrefExplicitLod 16 17 26 Grad ConstOffset 20 20 25
31: 30(ptr) AccessChain 11(outp) 29
31: 30(ptr) AccessChain 11(outp) 29
32: 8(float) Load 31
32: 8(float) Load 31
...
...
Test/baseResults/spv.texture.frag.out
View file @
6feb4989
...
@@ -268,7 +268,7 @@ Linked fragment stage:
...
@@ -268,7 +268,7 @@ Linked fragment stage:
Store 26(color) 173
Store 26(color) 173
174: 137 Load 139(shadowSampler1D)
174: 137 Load 139(shadowSampler1D)
175: 22(fvec4) Load 24(coords4D)
175: 22(fvec4) Load 24(coords4D)
176: 6(float) CompositeExtract 175
3
176: 6(float) CompositeExtract 175
2
177: 6(float) ImageSampleProjDrefImplicitLod 174 175 176
177: 6(float) ImageSampleProjDrefImplicitLod 174 175 176
178: 22(fvec4) Load 26(color)
178: 22(fvec4) Load 26(color)
179: 22(fvec4) CompositeConstruct 177 177 177 177
179: 22(fvec4) CompositeConstruct 177 177 177 177
...
@@ -277,7 +277,7 @@ Linked fragment stage:
...
@@ -277,7 +277,7 @@ Linked fragment stage:
181: 137 Load 139(shadowSampler1D)
181: 137 Load 139(shadowSampler1D)
182: 22(fvec4) Load 24(coords4D)
182: 22(fvec4) Load 24(coords4D)
183: 6(float) Load 10(bias)
183: 6(float) Load 10(bias)
184: 6(float) CompositeExtract 182
3
184: 6(float) CompositeExtract 182
2
185: 6(float) ImageSampleProjDrefImplicitLod 181 182 184 Bias 183
185: 6(float) ImageSampleProjDrefImplicitLod 181 182 184 Bias 183
186: 22(fvec4) Load 26(color)
186: 22(fvec4) Load 26(color)
187: 22(fvec4) CompositeConstruct 185 185 185 185
187: 22(fvec4) CompositeConstruct 185 185 185 185
...
@@ -285,7 +285,7 @@ Linked fragment stage:
...
@@ -285,7 +285,7 @@ Linked fragment stage:
Store 26(color) 188
Store 26(color) 188
189: 156 Load 158(shadowSampler2D)
189: 156 Load 158(shadowSampler2D)
190: 22(fvec4) Load 24(coords4D)
190: 22(fvec4) Load 24(coords4D)
191: 6(float) CompositeExtract 190
3
191: 6(float) CompositeExtract 190
2
192: 6(float) ImageSampleProjDrefImplicitLod 189 190 191
192: 6(float) ImageSampleProjDrefImplicitLod 189 190 191
193: 22(fvec4) Load 26(color)
193: 22(fvec4) Load 26(color)
194: 22(fvec4) CompositeConstruct 192 192 192 192
194: 22(fvec4) CompositeConstruct 192 192 192 192
...
@@ -294,7 +294,7 @@ Linked fragment stage:
...
@@ -294,7 +294,7 @@ Linked fragment stage:
196: 156 Load 158(shadowSampler2D)
196: 156 Load 158(shadowSampler2D)
197: 22(fvec4) Load 24(coords4D)
197: 22(fvec4) Load 24(coords4D)
198: 6(float) Load 10(bias)
198: 6(float) Load 10(bias)
199: 6(float) CompositeExtract 197
3
199: 6(float) CompositeExtract 197
2
200: 6(float) ImageSampleProjDrefImplicitLod 196 197 199 Bias 198
200: 6(float) ImageSampleProjDrefImplicitLod 196 197 199 Bias 198
201: 22(fvec4) Load 26(color)
201: 22(fvec4) Load 26(color)
202: 22(fvec4) CompositeConstruct 200 200 200 200
202: 22(fvec4) CompositeConstruct 200 200 200 200
...
...
Test/baseResults/spv.texture.vert.out
View file @
6feb4989
...
@@ -174,7 +174,7 @@ Linked vertex stage:
...
@@ -174,7 +174,7 @@ Linked vertex stage:
123: 100 Load 102(shadowSampler1D)
123: 100 Load 102(shadowSampler1D)
124: 18(fvec4) Load 20(coords4D)
124: 18(fvec4) Load 20(coords4D)
125: 6(float) Load 8(lod)
125: 6(float) Load 8(lod)
126: 6(float) CompositeExtract 124
3
126: 6(float) CompositeExtract 124
2
127: 6(float) ImageSampleProjDrefExplicitLod 123 124 126 Lod 125
127: 6(float) ImageSampleProjDrefExplicitLod 123 124 126 Lod 125
128: 18(fvec4) Load 23(color)
128: 18(fvec4) Load 23(color)
129: 18(fvec4) CompositeConstruct 127 127 127 127
129: 18(fvec4) CompositeConstruct 127 127 127 127
...
@@ -183,7 +183,7 @@ Linked vertex stage:
...
@@ -183,7 +183,7 @@ Linked vertex stage:
131: 112 Load 114(shadowSampler2D)
131: 112 Load 114(shadowSampler2D)
132: 18(fvec4) Load 20(coords4D)
132: 18(fvec4) Load 20(coords4D)
133: 6(float) Load 8(lod)
133: 6(float) Load 8(lod)
134: 6(float) CompositeExtract 132
3
134: 6(float) CompositeExtract 132
2
135: 6(float) ImageSampleProjDrefExplicitLod 131 132 134 Lod 133
135: 6(float) ImageSampleProjDrefExplicitLod 131 132 134 Lod 133
136: 18(fvec4) Load 23(color)
136: 18(fvec4) Load 23(color)
137: 18(fvec4) CompositeConstruct 135 135 135 135
137: 18(fvec4) CompositeConstruct 135 135 135 135
...
...
glslang/Include/revision.h
View file @
6feb4989
...
@@ -2,5 +2,5 @@
...
@@ -2,5 +2,5 @@
// For the version, it uses the latest git tag followed by the number of commits.
// For the version, it uses the latest git tag followed by the number of commits.
// For the date, it uses the current date (when then script is run).
// For the date, it uses the current date (when then script is run).
#define GLSLANG_REVISION "SPIRV99.84
3
"
#define GLSLANG_REVISION "SPIRV99.84
4
"
#define GLSLANG_DATE "13-Dec-2015"
#define GLSLANG_DATE "13-Dec-2015"
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