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
33661450
Commit
33661450
authored
Dec 08, 2015
by
John Kessenich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SPV: Implement OpImage functionality (emit before query).
parent
45457bcd
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
579 additions
and
544 deletions
+579
-544
GlslangToSpv.cpp
SPIRV/GlslangToSpv.cpp
+3
-0
SpvBuilder.h
SPIRV/SpvBuilder.h
+2
-1
spv.130.frag.out
Test/baseResults/spv.130.frag.out
+185
-183
spv.140.frag.out
Test/baseResults/spv.140.frag.out
+78
-76
spv.newTexture.frag.out
Test/baseResults/spv.newTexture.frag.out
+46
-45
spv.queryL.frag.out
Test/baseResults/spv.queryL.frag.out
+263
-237
revision.h
glslang/Include/revision.h
+2
-2
No files found.
SPIRV/GlslangToSpv.cpp
View file @
33661450
...
@@ -1855,6 +1855,9 @@ spv::Id TGlslangToSpvTraverser::createImageTextureFunctionCall(glslang::TIntermO
...
@@ -1855,6 +1855,9 @@ spv::Id TGlslangToSpvTraverser::createImageTextureFunctionCall(glslang::TIntermO
// Check for queries
// Check for queries
if
(
cracked
.
query
)
{
if
(
cracked
.
query
)
{
// a sampled image needs to have the image extracted first
if
(
builder
.
isSampledImage
(
params
.
sampler
))
params
.
sampler
=
builder
.
createUnaryOp
(
spv
::
OpImage
,
builder
.
getImageType
(
params
.
sampler
),
params
.
sampler
);
switch
(
node
->
getOp
())
{
switch
(
node
->
getOp
())
{
case
glslang
:
:
EOpImageQuerySize
:
case
glslang
:
:
EOpImageQuerySize
:
case
glslang
:
:
EOpTextureQuerySize
:
case
glslang
:
:
EOpTextureQuerySize
:
...
...
SPIRV/SpvBuilder.h
View file @
33661450
...
@@ -127,8 +127,9 @@ public:
...
@@ -127,8 +127,9 @@ public:
bool
isVector
(
Id
resultId
)
const
{
return
isVectorType
(
getTypeId
(
resultId
));
}
bool
isVector
(
Id
resultId
)
const
{
return
isVectorType
(
getTypeId
(
resultId
));
}
bool
isMatrix
(
Id
resultId
)
const
{
return
isMatrixType
(
getTypeId
(
resultId
));
}
bool
isMatrix
(
Id
resultId
)
const
{
return
isMatrixType
(
getTypeId
(
resultId
));
}
bool
isAggregate
(
Id
resultId
)
const
{
return
isAggregateType
(
getTypeId
(
resultId
));
}
bool
isAggregate
(
Id
resultId
)
const
{
return
isAggregateType
(
getTypeId
(
resultId
));
}
bool
is
BoolType
(
Id
typeId
)
const
{
return
groupedTypes
[
OpTypeBool
].
size
()
>
0
&&
typeId
==
groupedTypes
[
OpTypeBool
].
back
()
->
getResultId
(
);
}
bool
is
SampledImage
(
Id
resultId
)
const
{
return
isSampledImageType
(
getTypeId
(
resultId
)
);
}
bool
isBoolType
(
Id
typeId
)
const
{
return
groupedTypes
[
OpTypeBool
].
size
()
>
0
&&
typeId
==
groupedTypes
[
OpTypeBool
].
back
()
->
getResultId
();
}
bool
isPointerType
(
Id
typeId
)
const
{
return
getTypeClass
(
typeId
)
==
OpTypePointer
;
}
bool
isPointerType
(
Id
typeId
)
const
{
return
getTypeClass
(
typeId
)
==
OpTypePointer
;
}
bool
isScalarType
(
Id
typeId
)
const
{
return
getTypeClass
(
typeId
)
==
OpTypeFloat
||
getTypeClass
(
typeId
)
==
OpTypeInt
||
getTypeClass
(
typeId
)
==
OpTypeBool
;
}
bool
isScalarType
(
Id
typeId
)
const
{
return
getTypeClass
(
typeId
)
==
OpTypeFloat
||
getTypeClass
(
typeId
)
==
OpTypeInt
||
getTypeClass
(
typeId
)
==
OpTypeBool
;
}
bool
isVectorType
(
Id
typeId
)
const
{
return
getTypeClass
(
typeId
)
==
OpTypeVector
;
}
bool
isVectorType
(
Id
typeId
)
const
{
return
getTypeClass
(
typeId
)
==
OpTypeVector
;
}
...
...
Test/baseResults/spv.130.frag.out
View file @
33661450
...
@@ -7,12 +7,12 @@ Linked fragment stage:
...
@@ -7,12 +7,12 @@ Linked fragment stage:
// Module Version 10000
// Module Version 10000
// Generated by (magic number): 80001
// Generated by (magic number): 80001
// Id's are bound by 21
2
// Id's are bound by 21
4
Capability Shader
Capability Shader
1: ExtInstImport "GLSL.std.450"
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main" 7
8 17 68 98 182 183 184 185 185 171
EntryPoint Fragment 4 "main" 7
9 17 68 99 184 185 186 187 187 173
ExecutionMode 4 OriginLowerLeft
ExecutionMode 4 OriginLowerLeft
Source GLSL 130
Source GLSL 130
SourceExtension "GL_ARB_gpu_shader5"
SourceExtension "GL_ARB_gpu_shader5"
...
@@ -33,38 +33,38 @@ Linked fragment stage:
...
@@ -33,38 +33,38 @@ Linked fragment stage:
Name 55 "samp2DS"
Name 55 "samp2DS"
Name 68 "io"
Name 68 "io"
Name 72 "Sca"
Name 72 "Sca"
Name 7
8
"i"
Name 7
9
"i"
Name 8
6
"Isca"
Name 8
7
"Isca"
Name 9
8
"uo"
Name 9
9
"uo"
Name 10
2
"Usca"
Name 10
3
"Usca"
Name 11
3
"a"
Name 11
4
"a"
Name 11
7
"Scas"
Name 11
8
"Scas"
Name 12
2
"f"
Name 12
4
"f"
Name 13
1
"c"
Name 13
3
"c"
Name 15
2
"a1"
Name 15
4
"a1"
Name 15
5
"m43"
Name 15
7
"m43"
Name 1
58
"b"
Name 1
60
"b"
Name 16
5
"sampC"
Name 16
7
"sampC"
Name 17
1
"gl_ClipDistance"
Name 17
3
"gl_ClipDistance"
Name 18
1
"b"
Name 18
3
"b"
Name 18
2
"fflat"
Name 18
4
"fflat"
Name 18
3
"fsmooth"
Name 18
5
"fsmooth"
Name 18
4
"fnop"
Name 18
6
"fnop"
Name 18
5
"gl_Color"
Name 18
7
"gl_Color"
Name 19
2
"bounds"
Name 19
4
"bounds"
Name 19
3
"s2D"
Name 19
5
"s2D"
Name 19
4
"s2DR"
Name 19
6
"s2DR"
Name
198
"s2DRS"
Name
200
"s2DRS"
Name 20
2
"s1D"
Name 20
4
"s1D"
Name 20
3
"s2DS"
Name 20
5
"s2DS"
Name 20
5
"f"
Name 20
7
"f"
Name 20
7
"v2"
Name 20
9
"v2"
Name 2
09
"v3"
Name 2
11
"v3"
Name 21
1
"v4"
Name 21
3
"v4"
Decorate 17
1
(gl_ClipDistance) BuiltIn ClipDistance
Decorate 17
3
(gl_ClipDistance) BuiltIn ClipDistance
Decorate 18
2
(fflat) Flat
Decorate 18
4
(fflat) Flat
Decorate 18
4
(fnop) NoPerspective
Decorate 18
6
(fnop) NoPerspective
Decorate 19
2
(bounds) Binding 0
Decorate 19
4
(bounds) Binding 0
2: TypeVoid
2: TypeVoid
3: TypeFunction 2
3: TypeFunction 2
14: TypeFloat 32
14: TypeFloat 32
...
@@ -107,94 +107,94 @@ Linked fragment stage:
...
@@ -107,94 +107,94 @@ Linked fragment stage:
71: TypePointer UniformConstant 70
71: TypePointer UniformConstant 70
72(Sca): 71(ptr) Variable UniformConstant
72(Sca): 71(ptr) Variable UniformConstant
74: 26(int) Constant 3
74: 26(int) Constant 3
77: TypePointer Input 15(fvec4)
78: TypePointer Input 15(fvec4)
78(i): 77(ptr) Variable Input
79(i): 78(ptr) Variable Input
83: TypeImage 26(int) Cube array sampled format:Unknown
84: TypeImage 26(int) Cube array sampled format:Unknown
84: TypeSampledImage 83
85: TypeSampledImage 84
85: TypePointer UniformConstant 84
86: TypePointer UniformConstant 85
86(Isca): 85(ptr) Variable UniformConstant
87(Isca): 86(ptr) Variable UniformConstant
89: 14(float) Constant 1060320051
90: 14(float) Constant 1060320051
90: TypeVector 26(int) 4
91: TypeVector 26(int) 4
95: TypeInt 32 0
96: TypeInt 32 0
96: TypeVector 95(int) 4
97: TypeVector 96(int) 4
97: TypePointer Output 96(ivec4)
98: TypePointer Output 97(ivec4)
98(uo): 97(ptr) Variable Output
99(uo): 98(ptr) Variable Output
99: TypeImage 95(int) Cube array sampled format:Unknown
100: TypeImage 96(int) Cube array sampled format:Unknown
100: TypeSampledImage 99
101: TypeSampledImage 100
101: TypePointer UniformConstant 100
102: TypePointer UniformConstant 101
102(Usca): 101(ptr) Variable UniformConstant
103(Usca): 102(ptr) Variable UniformConstant
108: 14(float) Constant 1071225242
109: 14(float) Constant 1071225242
112: TypePointer Private 39(fvec3)
113: TypePointer Private 39(fvec3)
113(a): 112(ptr) Variable Private
114(a): 113(ptr) Variable Private
114: TypeImage 14(float) Cube depth array sampled format:Unknown
115: TypeImage 14(float) Cube depth array sampled format:Unknown
115: TypeSampledImage 114
116: TypeSampledImage 115
116: TypePointer UniformConstant 115
117: TypePointer UniformConstant 116
117(Scas): 116(ptr) Variable UniformConstant
118(Scas): 117(ptr) Variable UniformConstant
121: TypePointer Function 14(float)
123: TypePointer Function 14(float)
125: 95(int) Constant 1
127: 96(int) Constant 1
126: TypePointer Input 14(float)
128: TypePointer Input 14(float)
130: TypePointer Function 90(ivec4)
132: TypePointer Function 91(ivec4)
134: 14(float) Constant 1036831949
136: 14(float) Constant 1036831949
135: 39(fvec3) ConstantComposite 134 134 134
136: 14(float) Constant 1045220557
137: 39(fvec3) ConstantComposite 136 136 136
137: 39(fvec3) ConstantComposite 136 136 136
153: TypeMatrix 39(fvec3) 4
138: 14(float) Constant 1045220557
154: TypePointer Function 153
139: 39(fvec3) ConstantComposite 138 138 138
159: 14(float) Constant 1073741824
155: TypeMatrix 39(fvec3) 4
162: TypeImage 14(float) Cube sampled format:Unknown
156: TypePointer Function 155
163: TypeSampledImage 162
161: 14(float) Constant 1073741824
164: TypePointer UniformConstant 163
164: TypeImage 14(float) Cube sampled format:Unknown
165(sampC): 164(ptr) Variable UniformConstant
165: TypeSampledImage 164
168: 95(int) Constant 4
166: TypePointer UniformConstant 165
169: TypeArray 14(float) 168
167(sampC): 166(ptr) Variable UniformConstant
170: TypePointer Input 169
170: 96(int) Constant 4
171(gl_ClipDistance): 170(ptr) Variable Input
171: TypeArray 14(float) 170
174: TypePointer Output 14(float)
172: TypePointer Input 171
180: TypePointer Private 14(float)
173(gl_ClipDistance): 172(ptr) Variable Input
181(b): 180(ptr) Variable Private
176: TypePointer Output 14(float)
182(fflat): 126(ptr) Variable Input
182: TypePointer Private 14(float)
183(fsmooth): 126(ptr) Variable Input
183(b): 182(ptr) Variable Private
184(fnop): 126(ptr) Variable Input
184(fflat): 128(ptr) Variable Input
185(gl_Color): 77(ptr) Variable Input
185(fsmooth): 128(ptr) Variable Input
186: 95(int) Constant 3
186(fnop): 128(ptr) Variable Input
187: TypeArray 26(int) 186
187(gl_Color): 78(ptr) Variable Input
188: 26(int) Constant 10
188: 96(int) Constant 3
189: 26(int) Constant 23
189: TypeArray 26(int) 188
190: 26(int) Constant 32
190: 26(int) Constant 10
191: 187 ConstantComposite 188 189 190
191: 26(int) Constant 23
192(bounds): 20(ptr) Variable UniformConstant
192: 26(int) Constant 32
193(s2D): 20(ptr) Variable UniformConstant
193: 189 ConstantComposite 190 191 192
194(s2DR): 46(ptr) Variable UniformConstant
194(bounds): 20(ptr) Variable UniformConstant
195: TypeImage 14(float) Rect depth sampled format:Unknown
195(s2D): 20(ptr) Variable UniformConstant
196: TypeSampledImage 195
196(s2DR): 46(ptr) Variable UniformConstant
197: TypePointer UniformConstant 196
197: TypeImage 14(float) Rect depth sampled format:Unknown
198(s2DRS): 197(ptr) Variable UniformConstant
198: TypeSampledImage 197
199: TypeImage 14(float) 1D sampled format:Unknown
199: TypePointer UniformConstant 198
200: TypeSampledImage 199
200(s2DRS): 199(ptr) Variable UniformConstant
201: TypePointer UniformConstant 200
201: TypeImage 14(float) 1D sampled format:Unknown
202(s1D): 201(ptr) Variable UniformConstant
202: TypeSampledImage 201
203(s2DS): 54(ptr) Variable UniformConstant
203: TypePointer UniformConstant 202
204: TypePointer UniformConstant 14(float)
204(s1D): 203(ptr) Variable UniformConstant
205(f): 204(ptr) Variable UniformConstant
205(s2DS): 54(ptr) Variable UniformConstant
206: TypePointer UniformConstant 23(fvec2)
206: TypePointer UniformConstant 14(float)
207(v2): 206(ptr) Variable UniformConstant
207(f): 206(ptr) Variable UniformConstant
208: TypePointer UniformConstant 39(fvec3)
208: TypePointer UniformConstant 23(fvec2)
209(v3): 208(ptr) Variable UniformConstant
209(v2): 208(ptr) Variable UniformConstant
210: TypePointer UniformConstant 15(fvec4)
210: TypePointer UniformConstant 39(fvec3)
211(v4): 210(ptr) Variable UniformConstant
211(v3): 210(ptr) Variable UniformConstant
212: TypePointer UniformConstant 15(fvec4)
213(v4): 212(ptr) Variable UniformConstant
4(main): 2 Function None 3
4(main): 2 Function None 3
5: Label
5: Label
16
6: 163 Load 165
(sampC)
16
8: 165 Load 167
(sampC)
16
7: 15(fvec4) ImageGather 166 137
30
16
9: 15(fvec4) ImageGather 168 139
30
Store 17(o) 16
7
Store 17(o) 16
9
17
2: 126(ptr) AccessChain 171
(gl_ClipDistance) 74
17
4: 128(ptr) AccessChain 173
(gl_ClipDistance) 74
17
3: 14(float) Load 172
17
5: 14(float) Load 174
17
5: 174(ptr) AccessChain 17(o) 125
17
7: 176(ptr) AccessChain 17(o) 127
Store 17
5 173
Store 17
7 175
17
6
: 2 FunctionCall 6(bar3()
17
8
: 2 FunctionCall 6(bar3()
17
7
: 2 FunctionCall 8(bar4()
17
9
: 2 FunctionCall 8(bar4()
1
78
: 2 FunctionCall 10(bar5()
1
80
: 2 FunctionCall 10(bar5()
1
79
: 2 FunctionCall 12(bar6()
1
81
: 2 FunctionCall 12(bar6()
Return
Return
FunctionEnd
FunctionEnd
6(bar3(): 2 Function None 3
6(bar3(): 2 Function None 3
...
@@ -232,74 +232,76 @@ Linked fragment stage:
...
@@ -232,74 +232,76 @@ Linked fragment stage:
FunctionEnd
FunctionEnd
10(bar5(): 2 Function None 3
10(bar5(): 2 Function None 3
11: Label
11: Label
12
2(f): 121
(ptr) Variable Function
12
4(f): 123
(ptr) Variable Function
13
1(c): 130
(ptr) Variable Function
13
3(c): 132
(ptr) Variable Function
73: 70 Load 72(Sca)
73: 70 Load 72(Sca)
75: 66(ivec3) ImageQuerySizeLod 73 74
75: 69 Image 73
Store 68(io) 75
76: 66(ivec3) ImageQuerySizeLod 75 74
76: 70 Load 72(Sca)
Store 68(io) 76
79: 15(fvec4) Load 78(i)
77: 70 Load 72(Sca)
80: 15(fvec4) ImageSampleImplicitLod 76 79
80: 15(fvec4) Load 79(i)
81: 15(fvec4) Load 17(o)
81: 15(fvec4) ImageSampleImplicitLod 77 80
82: 15(fvec4) FAdd 81 80
82: 15(fvec4) Load 17(o)
Store 17(o) 82
83: 15(fvec4) FAdd 82 81
87: 84 Load 86(Isca)
Store 17(o) 83
88: 15(fvec4) Load 78(i)
88: 85 Load 87(Isca)
91: 90(ivec4) ImageSampleImplicitLod 87 88 Bias 89
89: 15(fvec4) Load 79(i)
92: 66(ivec3) VectorShuffle 91 91 0 1 2
92: 91(ivec4) ImageSampleImplicitLod 88 89 Bias 90
93: 66(ivec3) Load 68(io)
93: 66(ivec3) VectorShuffle 92 92 0 1 2
94: 66(ivec3) IAdd 93 92
94: 66(ivec3) Load 68(io)
Store 68(io) 94
95: 66(ivec3) IAdd 94 93
103: 100 Load 102(Usca)
Store 68(io) 95
104: 15(fvec4) Load 78(i)
104: 101 Load 103(Usca)
105: 96(ivec4) ImageSampleImplicitLod 103 104
105: 15(fvec4) Load 79(i)
Store 98(uo) 105
106: 97(ivec4) ImageSampleImplicitLod 104 105
106: 70 Load 72(Sca)
Store 99(uo) 106
107: 15(fvec4) Load 78(i)
107: 70 Load 72(Sca)
109: 15(fvec4) ImageSampleExplicitLod 106 107 Lod 108
108: 15(fvec4) Load 79(i)
110: 15(fvec4) Load 17(o)
110: 15(fvec4) ImageSampleExplicitLod 107 108 Lod 109
111: 15(fvec4) FAdd 110 109
111: 15(fvec4) Load 17(o)
Store 17(o) 111
112: 15(fvec4) FAdd 111 110
118: 115 Load 117(Scas)
Store 17(o) 112
119: 66(ivec3) ImageQuerySizeLod 118 74
119: 116 Load 118(Scas)
120: 39(fvec3) ConvertSToF 119
120: 115 Image 119
Store 113(a) 120
121: 66(ivec3) ImageQuerySizeLod 120 74
123: 115 Load 117(Scas)
122: 39(fvec3) ConvertSToF 121
124: 15(fvec4) Load 78(i)
Store 114(a) 122
127: 126(ptr) AccessChain 78(i) 125
125: 116 Load 118(Scas)
128: 14(float) Load 127
126: 15(fvec4) Load 79(i)
129: 14(float) ImageSampleDrefImplicitLod 123 124 128
129: 128(ptr) AccessChain 79(i) 127
Store 122(f) 129
130: 14(float) Load 129
132: 84 Load 86(Isca)
131: 14(float) ImageSampleDrefImplicitLod 125 126 130
133: 15(fvec4) Load 78(i)
Store 124(f) 131
138: 90(ivec4) ImageSampleExplicitLod 132 133 Grad 135 137
134: 85 Load 87(Isca)
Store 131(c) 138
135: 15(fvec4) Load 79(i)
139: 39(fvec3) Load 113(a)
140: 91(ivec4) ImageSampleExplicitLod 134 135 Grad 137 139
140: 14(float) Load 122(f)
Store 133(c) 140
141: 90(ivec4) Load 131(c)
141: 39(fvec3) Load 114(a)
142: 15(fvec4) ConvertSToF 141
142: 14(float) Load 124(f)
143: 15(fvec4) CompositeConstruct 140 140 140 140
143: 91(ivec4) Load 133(c)
144: 15(fvec4) FAdd 143 142
144: 15(fvec4) ConvertSToF 143
145: 14(float) CompositeExtract 139 0
145: 15(fvec4) CompositeConstruct 142 142 142 142
146: 14(float) CompositeExtract 139 1
146: 15(fvec4) FAdd 145 144
147: 14(float) CompositeExtract 139 2
147: 14(float) CompositeExtract 141 0
148: 14(float) CompositeExtract 144 0
148: 14(float) CompositeExtract 141 1
149: 15(fvec4) CompositeConstruct 145 146 147 148
149: 14(float) CompositeExtract 141 2
150: 15(fvec4) Load 17(o)
150: 14(float) CompositeExtract 146 0
151: 15(fvec4) FAdd 150 149
151: 15(fvec4) CompositeConstruct 147 148 149 150
Store 17(o) 151
152: 15(fvec4) Load 17(o)
153: 15(fvec4) FAdd 152 151
Store 17(o) 153
Return
Return
FunctionEnd
FunctionEnd
12(bar6(): 2 Function None 3
12(bar6(): 2 Function None 3
13: Label
13: Label
15
2(a1): 121
(ptr) Variable Function
15
4(a1): 123
(ptr) Variable Function
15
5(m43): 154
(ptr) Variable Function
15
7(m43): 156
(ptr) Variable Function
1
58(b): 121
(ptr) Variable Function
1
60(b): 123
(ptr) Variable Function
15
6: 121(ptr) AccessChain 155(m43) 74 125
15
8: 123(ptr) AccessChain 157(m43) 74 127
15
7: 14(float) Load 156
15
9: 14(float) Load 158
Store 15
2(a1) 157
Store 15
4(a1) 159
16
0: 14(float) Load 152
(a1)
16
2: 14(float) Load 154
(a1)
16
1: 14(float) FMul 159 160
16
3: 14(float) FMul 161 162
Store 1
58(b) 161
Store 1
60(b) 163
Return
Return
FunctionEnd
FunctionEnd
Test/baseResults/spv.140.frag.out
View file @
33661450
...
@@ -5,7 +5,7 @@ Linked fragment stage:
...
@@ -5,7 +5,7 @@ Linked fragment stage:
// Module Version 10000
// Module Version 10000
// Generated by (magic number): 80001
// Generated by (magic number): 80001
// Id's are bound by 9
7
// Id's are bound by 9
9
Capability Shader
Capability Shader
1: ExtInstImport "GLSL.std.450"
1: ExtInstImport "GLSL.std.450"
...
@@ -22,41 +22,41 @@ Linked fragment stage:
...
@@ -22,41 +22,41 @@ Linked fragment stage:
Name 33 "gl_ClipDistance"
Name 33 "gl_ClipDistance"
Name 43 "k"
Name 43 "k"
Name 55 "sampR"
Name 55 "sampR"
Name 6
2
"sampB"
Name 6
3
"sampB"
Name 8
4
"samp2Da"
Name 8
6
"samp2Da"
Name
88
"bn"
Name
90
"bn"
MemberName
88
(bn) 0 "matra"
MemberName
90
(bn) 0 "matra"
MemberName
88
(bn) 1 "matca"
MemberName
90
(bn) 1 "matca"
MemberName
88
(bn) 2 "matr"
MemberName
90
(bn) 2 "matr"
MemberName
88
(bn) 3 "matc"
MemberName
90
(bn) 3 "matc"
MemberName
88
(bn) 4 "matrdef"
MemberName
90
(bn) 4 "matrdef"
Name 9
0
""
Name 9
2
""
Name 9
3
"bi"
Name 9
5
"bi"
MemberName 9
3
(bi) 0 "v"
MemberName 9
5
(bi) 0 "v"
Name 9
6
"bname"
Name 9
8
"bname"
Decorate 16(gl_FrontFacing) BuiltIn FrontFacing
Decorate 16(gl_FrontFacing) BuiltIn FrontFacing
Decorate 33(gl_ClipDistance) BuiltIn ClipDistance
Decorate 33(gl_ClipDistance) BuiltIn ClipDistance
Decorate 8
7
ArrayStride 64
Decorate 8
9
ArrayStride 64
Decorate 8
7
ArrayStride 64
Decorate 8
9
ArrayStride 64
MemberDecorate
88
(bn) 0 RowMajor
MemberDecorate
90
(bn) 0 RowMajor
MemberDecorate
88
(bn) 0 Offset 0
MemberDecorate
90
(bn) 0 Offset 0
MemberDecorate
88
(bn) 0 MatrixStride 16
MemberDecorate
90
(bn) 0 MatrixStride 16
MemberDecorate
88
(bn) 1 ColMajor
MemberDecorate
90
(bn) 1 ColMajor
MemberDecorate
88
(bn) 1 Offset 256
MemberDecorate
90
(bn) 1 Offset 256
MemberDecorate
88
(bn) 1 MatrixStride 16
MemberDecorate
90
(bn) 1 MatrixStride 16
MemberDecorate
88
(bn) 2 RowMajor
MemberDecorate
90
(bn) 2 RowMajor
MemberDecorate
88
(bn) 2 Offset 512
MemberDecorate
90
(bn) 2 Offset 512
MemberDecorate
88
(bn) 2 MatrixStride 16
MemberDecorate
90
(bn) 2 MatrixStride 16
MemberDecorate
88
(bn) 3 ColMajor
MemberDecorate
90
(bn) 3 ColMajor
MemberDecorate
88
(bn) 3 Offset 576
MemberDecorate
90
(bn) 3 Offset 576
MemberDecorate
88
(bn) 3 MatrixStride 16
MemberDecorate
90
(bn) 3 MatrixStride 16
MemberDecorate
88
(bn) 4 RowMajor
MemberDecorate
90
(bn) 4 RowMajor
MemberDecorate
88
(bn) 4 Offset 640
MemberDecorate
90
(bn) 4 Offset 640
MemberDecorate
88
(bn) 4 MatrixStride 16
MemberDecorate
90
(bn) 4 MatrixStride 16
Decorate
88
(bn) Block
Decorate
90
(bn) Block
Decorate 9
2
ArrayStride 16
Decorate 9
4
ArrayStride 16
MemberDecorate 9
3
(bi) 0 Offset 0
MemberDecorate 9
5
(bi) 0 Offset 0
Decorate 9
3
(bi) Block
Decorate 9
5
(bi) Block
2: TypeVoid
2: TypeVoid
3: TypeFunction 2
3: TypeFunction 2
6: TypeFloat 32
6: TypeFloat 32
...
@@ -92,31 +92,31 @@ Linked fragment stage:
...
@@ -92,31 +92,31 @@ Linked fragment stage:
53: TypeSampledImage 52
53: TypeSampledImage 52
54: TypePointer UniformConstant 53
54: TypePointer UniformConstant 53
55(sampR): 54(ptr) Variable UniformConstant
55(sampR): 54(ptr) Variable UniformConstant
5
7
: TypeVector 34(int) 2
5
8
: TypeVector 34(int) 2
59
: TypeImage 34(int) Buffer sampled format:Unknown
60
: TypeImage 34(int) Buffer sampled format:Unknown
6
0: TypeSampledImage 59
6
1: TypeSampledImage 60
6
1: TypePointer UniformConstant 60
6
2: TypePointer UniformConstant 61
6
2(sampB): 61
(ptr) Variable UniformConstant
6
3(sampB): 62
(ptr) Variable UniformConstant
6
7
: TypeVector 6(float) 2
6
9
: TypeVector 6(float) 2
7
0
: 6(float) Constant 1120403456
7
2
: 6(float) Constant 1120403456
7
2
: 29(int) Constant 3
7
4
: 29(int) Constant 3
8
0
: TypeImage 6(float) 2D sampled format:Unknown
8
2
: TypeImage 6(float) 2D sampled format:Unknown
8
1: TypeSampledImage 80
8
3: TypeSampledImage 82
8
2: TypeArray 81 72
8
4: TypeArray 83 74
8
3: TypePointer UniformConstant 82
8
5: TypePointer UniformConstant 84
8
4(samp2Da): 83
(ptr) Variable UniformConstant
8
6(samp2Da): 85
(ptr) Variable UniformConstant
8
5
: TypeMatrix 26(fvec4) 4
8
7
: TypeMatrix 26(fvec4) 4
8
6
: 29(int) Constant 4
8
8
: 29(int) Constant 4
8
7: TypeArray 85 86
8
9: TypeArray 87 88
88(bn): TypeStruct 87 87 85 85 85
90(bn): TypeStruct 89 89 87 87 87
89: TypePointer Uniform 88
(bn)
91: TypePointer Uniform 90
(bn)
9
0: 89
(ptr) Variable Uniform
9
2: 91
(ptr) Variable Uniform
9
1
: TypeVector 6(float) 3
9
3
: TypeVector 6(float) 3
9
2: TypeArray 91
(fvec3) 50
9
4: TypeArray 93
(fvec3) 50
9
3(bi): TypeStruct 92
9
5(bi): TypeStruct 94
9
4: TypeArray 93(bi) 86
9
6: TypeArray 95(bi) 88
9
5: TypePointer Uniform 94
9
7: TypePointer Uniform 96
9
6(bname): 95
(ptr) Variable Uniform
9
8(bname): 97
(ptr) Variable Uniform
4(main): 2 Function None 3
4(main): 2 Function None 3
5: Label
5: Label
13: 12(ptr) Variable Function
13: 12(ptr) Variable Function
...
@@ -145,25 +145,27 @@ Linked fragment stage:
...
@@ -145,25 +145,27 @@ Linked fragment stage:
51: 40(ptr) AccessChain 28(o) 50
51: 40(ptr) AccessChain 28(o) 50
Store 51 49
Store 51 49
56: 53 Load 55(sampR)
56: 53 Load 55(sampR)
58: 57(ivec2) ImageQuerySize 56
57: 52 Image 56
63: 60 Load 62(sampB)
59: 58(ivec2) ImageQuerySize 57
64: 34(int) ImageQuerySize 63
64: 61 Load 63(sampB)
65: 57(ivec2) CompositeConstruct 64 64
65: 60 Image 64
66: 57(ivec2) IAdd 58 65
66: 34(int) ImageQuerySize 65
68: 67(fvec2) ConvertSToF 66
67: 58(ivec2) CompositeConstruct 66 66
69: 6(float) CompositeExtract 68 0
68: 58(ivec2) IAdd 59 67
71: 6(float) FDiv 69 70
70: 69(fvec2) ConvertSToF 68
73: 40(ptr) AccessChain 28(o) 72
71: 6(float) CompositeExtract 70 0
Store 73 71
73: 6(float) FDiv 71 72
74: 6(float) FunctionCall 8(foo()
75: 40(ptr) AccessChain 28(o) 74
75: 40(ptr) AccessChain 28(o) 50
Store 75 73
Store 75 74
76: 6(float) FunctionCall 8(foo()
77: 40(ptr) AccessChain 28(o) 50
Store 77 76
Return
Return
FunctionEnd
FunctionEnd
8(foo(): 6(float) Function None 7
8(foo(): 6(float) Function None 7
9: Label
9: Label
7
6
: 6(float) Load 11(i1)
7
8
: 6(float) Load 11(i1)
7
7
: 6(float) Load 24(i2)
7
9
: 6(float) Load 24(i2)
78: 6(float) FAdd 76 77
80: 6(float) FAdd 78 79
ReturnValue
78
ReturnValue
80
FunctionEnd
FunctionEnd
Test/baseResults/spv.newTexture.frag.out
View file @
33661450
...
@@ -7,12 +7,12 @@ Linked fragment stage:
...
@@ -7,12 +7,12 @@ Linked fragment stage:
// Module Version 10000
// Module Version 10000
// Generated by (magic number): 80001
// Generated by (magic number): 80001
// Id's are bound by 27
7
// Id's are bound by 27
8
Capability Shader
Capability Shader
1: ExtInstImport "GLSL.std.450"
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main" 29 17 55 26 84 91 81 27
6 246
EntryPoint Fragment 4 "main" 29 17 55 26 84 91 81 27
7 247
ExecutionMode 4 OriginLowerLeft
ExecutionMode 4 OriginLowerLeft
Source GLSL 430
Source GLSL 430
Name 4 "main"
Name 4 "main"
...
@@ -39,17 +39,17 @@ Linked fragment stage:
...
@@ -39,17 +39,17 @@ Linked fragment stage:
Name 227 "is2DArray"
Name 227 "is2DArray"
Name 237 "iv2"
Name 237 "iv2"
Name 241 "sCubeShadow"
Name 241 "sCubeShadow"
Name 24
6
"FragData"
Name 24
7
"FragData"
Name 25
8
"is2Dms"
Name 25
9
"is2Dms"
Name 26
2
"us2D"
Name 26
3
"us2D"
Name 26
6
"us3D"
Name 26
7
"us3D"
Name 27
0
"usCube"
Name 27
1
"usCube"
Name 27
4
"us2DArray"
Name 27
5
"us2DArray"
Name 27
6
"ic4D"
Name 27
7
"ic4D"
Decorate 81(ic3D) Flat
Decorate 81(ic3D) Flat
Decorate 84(ic1D) Flat
Decorate 84(ic1D) Flat
Decorate 91(ic2D) Flat
Decorate 91(ic2D) Flat
Decorate 27
6
(ic4D) Flat
Decorate 27
7
(ic4D) Flat
2: TypeVoid
2: TypeVoid
3: TypeFunction 2
3: TypeFunction 2
6: TypeFloat 32
6: TypeFloat 32
...
@@ -140,31 +140,31 @@ Linked fragment stage:
...
@@ -140,31 +140,31 @@ Linked fragment stage:
240: TypePointer UniformConstant 239
240: TypePointer UniformConstant 239
241(sCubeShadow): 240(ptr) Variable UniformConstant
241(sCubeShadow): 240(ptr) Variable UniformConstant
243: 67(int) Constant 2
243: 67(int) Constant 2
24
5
: TypePointer Output 7(fvec4)
24
6
: TypePointer Output 7(fvec4)
24
6(FragData): 245
(ptr) Variable Output
24
7(FragData): 246
(ptr) Variable Output
25
0
: 6(float) Constant 0
25
1
: 6(float) Constant 0
25
5
: TypeImage 67(int) 2D multi-sampled sampled format:Unknown
25
6
: TypeImage 67(int) 2D multi-sampled sampled format:Unknown
25
6: TypeSampledImage 255
25
7: TypeSampledImage 256
25
7: TypePointer UniformConstant 256
25
8: TypePointer UniformConstant 257
25
8(is2Dms): 257
(ptr) Variable UniformConstant
25
9(is2Dms): 258
(ptr) Variable UniformConstant
2
59
: TypeImage 32(int) 2D sampled format:Unknown
2
60
: TypeImage 32(int) 2D sampled format:Unknown
26
0: TypeSampledImage 259
26
1: TypeSampledImage 260
26
1: TypePointer UniformConstant 260
26
2: TypePointer UniformConstant 261
26
2(us2D): 261
(ptr) Variable UniformConstant
26
3(us2D): 262
(ptr) Variable UniformConstant
26
3
: TypeImage 32(int) 3D sampled format:Unknown
26
4
: TypeImage 32(int) 3D sampled format:Unknown
26
4: TypeSampledImage 263
26
5: TypeSampledImage 264
26
5: TypePointer UniformConstant 264
26
6: TypePointer UniformConstant 265
26
6(us3D): 265
(ptr) Variable UniformConstant
26
7(us3D): 266
(ptr) Variable UniformConstant
26
7
: TypeImage 32(int) Cube sampled format:Unknown
26
8
: TypeImage 32(int) Cube sampled format:Unknown
26
8: TypeSampledImage 267
26
9: TypeSampledImage 268
2
69: TypePointer UniformConstant 268
2
70: TypePointer UniformConstant 269
27
0(usCube): 269
(ptr) Variable UniformConstant
27
1(usCube): 270
(ptr) Variable UniformConstant
27
1
: TypeImage 32(int) 2D array sampled format:Unknown
27
2
: TypeImage 32(int) 2D array sampled format:Unknown
27
2: TypeSampledImage 271
27
3: TypeSampledImage 272
27
3: TypePointer UniformConstant 272
27
4: TypePointer UniformConstant 273
27
4(us2DArray): 273
(ptr) Variable UniformConstant
27
5(us2DArray): 274
(ptr) Variable UniformConstant
27
5
: TypePointer Input 162(ivec4)
27
6
: TypePointer Input 162(ivec4)
27
6(ic4D): 275
(ptr) Variable Input
27
7(ic4D): 276
(ptr) Variable Input
4(main): 2 Function None 3
4(main): 2 Function None 3
5: Label
5: Label
9(v): 8(ptr) Variable Function
9(v): 8(ptr) Variable Function
...
@@ -345,15 +345,16 @@ Linked fragment stage:
...
@@ -345,15 +345,16 @@ Linked fragment stage:
235: 7(fvec4) FAdd 234 233
235: 7(fvec4) FAdd 234 233
Store 9(v) 235
Store 9(v) 235
242: 239 Load 241(sCubeShadow)
242: 239 Load 241(sCubeShadow)
244: 68(ivec2) ImageQuerySizeLod 242 243
244: 238 Image 242
Store 237(iv2) 244
245: 68(ivec2) ImageQuerySizeLod 244 243
247: 7(fvec4) Load 9(v)
Store 237(iv2) 245
248: 68(ivec2) Load 237(iv2)
248: 7(fvec4) Load 9(v)
249: 15(fvec2) ConvertSToF 248
249: 68(ivec2) Load 237(iv2)
251: 6(float) CompositeExtract 249 0
250: 15(fvec2) ConvertSToF 249
252: 6(float) CompositeExtract 249 1
252: 6(float) CompositeExtract 250 0
253: 7(fvec4) CompositeConstruct 251 252 250 250
253: 6(float) CompositeExtract 250 1
254: 7(fvec4) FAdd 247 253
254: 7(fvec4) CompositeConstruct 252 253 251 251
Store 246(FragData) 254
255: 7(fvec4) FAdd 248 254
Store 247(FragData) 255
Return
Return
FunctionEnd
FunctionEnd
Test/baseResults/spv.queryL.frag.out
View file @
33661450
...
@@ -7,7 +7,7 @@ Linked fragment stage:
...
@@ -7,7 +7,7 @@ Linked fragment stage:
// Module Version 10000
// Module Version 10000
// Generated by (magic number): 80001
// Generated by (magic number): 80001
// Id's are bound by 2
11
// Id's are bound by 2
37
Capability Shader
Capability Shader
1: ExtInstImport "GLSL.std.450"
1: ExtInstImport "GLSL.std.450"
...
@@ -19,28 +19,28 @@ Linked fragment stage:
...
@@ -19,28 +19,28 @@ Linked fragment stage:
Name 9 "lod"
Name 9 "lod"
Name 13 "samp1D"
Name 13 "samp1D"
Name 16 "pf"
Name 16 "pf"
Name 2
3
"isamp2D"
Name 2
4
"isamp2D"
Name 2
5
"pf2"
Name 2
6
"pf2"
Name 3
4
"usamp3D"
Name 3
6
"usamp3D"
Name
38
"pf3"
Name
40
"pf3"
Name 4
6
"sampCube"
Name 4
9
"sampCube"
Name 5
5
"isamp1DA"
Name 5
9
"isamp1DA"
Name 6
4
"usamp2DA"
Name 6
9
"usamp2DA"
Name 7
3
"isampCubeA"
Name 7
9
"isampCubeA"
Name 8
2
"samp1Ds"
Name 8
9
"samp1Ds"
Name 9
1
"samp2Ds"
Name 9
9
"samp2Ds"
Name 10
0
"sampCubes"
Name 10
9
"sampCubes"
Name 1
0
9 "samp1DAs"
Name 1
1
9 "samp1DAs"
Name 1
18
"samp2DAs"
Name 1
29
"samp2DAs"
Name 1
27
"sampCubeAs"
Name 1
39
"sampCubeAs"
Name 1
34
"levels"
Name 1
47
"levels"
Name 1
40
"usamp2D"
Name 1
54
"usamp2D"
Name 1
48
"isamp3D"
Name 1
63
"isamp3D"
Name 1
56
"isampCube"
Name 1
72
"isampCube"
Name 1
68
"samp2DA"
Name 1
86
"samp2DA"
Name 1
76
"usampCubeA"
Name 1
95
"usampCubeA"
Name 2
06
"sampBuf"
Name 2
32
"sampBuf"
Name 2
10
"sampRect"
Name 2
36
"sampRect"
2: TypeVoid
2: TypeVoid
3: TypeFunction 2
3: TypeFunction 2
6: TypeFloat 32
6: TypeFloat 32
...
@@ -51,230 +51,256 @@ Linked fragment stage:
...
@@ -51,230 +51,256 @@ Linked fragment stage:
12: TypePointer UniformConstant 11
12: TypePointer UniformConstant 11
13(samp1D): 12(ptr) Variable UniformConstant
13(samp1D): 12(ptr) Variable UniformConstant
15: TypePointer Function 6(float)
15: TypePointer Function 6(float)
19: TypeInt 32 1
20: TypeInt 32 1
20: TypeImage 19(int) 2D sampled format:Unknown
21: TypeImage 20(int) 2D sampled format:Unknown
21: TypeSampledImage 20
22: TypeSampledImage 21
22: TypePointer UniformConstant 21
23: TypePointer UniformConstant 22
23(isamp2D): 22(ptr) Variable UniformConstant
24(isamp2D): 23(ptr) Variable UniformConstant
30: TypeInt 32 0
32: TypeInt 32 0
31: TypeImage 30(int) 3D sampled format:Unknown
33: TypeImage 32(int) 3D sampled format:Unknown
32: TypeSampledImage 31
34: TypeSampledImage 33
33: TypePointer UniformConstant 32
35: TypePointer UniformConstant 34
34(usamp3D): 33(ptr) Variable UniformConstant
36(usamp3D): 35(ptr) Variable UniformConstant
36: TypeVector 6(float) 3
38: TypeVector 6(float) 3
37: TypePointer Function 36(fvec3)
39: TypePointer Function 38(fvec3)
43: TypeImage 6(float) Cube sampled format:Unknown
46: TypeImage 6(float) Cube sampled format:Unknown
44: TypeSampledImage 43
47: TypeSampledImage 46
45: TypePointer UniformConstant 44
48: TypePointer UniformConstant 47
46(sampCube): 45(ptr) Variable UniformConstant
49(sampCube): 48(ptr) Variable UniformConstant
52: TypeImage 19(int) 1D array sampled format:Unknown
56: TypeImage 20(int) 1D array sampled format:Unknown
53: TypeSampledImage 52
57: TypeSampledImage 56
54: TypePointer UniformConstant 53
58: TypePointer UniformConstant 57
55(isamp1DA): 54(ptr) Variable UniformConstant
59(isamp1DA): 58(ptr) Variable UniformConstant
61: TypeImage 30(int) 2D array sampled format:Unknown
66: TypeImage 32(int) 2D array sampled format:Unknown
62: TypeSampledImage 61
67: TypeSampledImage 66
63: TypePointer UniformConstant 62
68: TypePointer UniformConstant 67
64(usamp2DA): 63(ptr) Variable UniformConstant
69(usamp2DA): 68(ptr) Variable UniformConstant
70: TypeImage 19(int) Cube array sampled format:Unknown
76: TypeImage 20(int) Cube array sampled format:Unknown
71: TypeSampledImage 70
77: TypeSampledImage 76
72: TypePointer UniformConstant 71
78: TypePointer UniformConstant 77
73(isampCubeA): 72(ptr) Variable UniformConstant
79(isampCubeA): 78(ptr) Variable UniformConstant
79: TypeImage 6(float) 1D depth sampled format:Unknown
86: TypeImage 6(float) 1D depth sampled format:Unknown
80: TypeSampledImage 79
87: TypeSampledImage 86
81: TypePointer UniformConstant 80
88: TypePointer UniformConstant 87
82(samp1Ds): 81(ptr) Variable UniformConstant
89(samp1Ds): 88(ptr) Variable UniformConstant
88: TypeImage 6(float) 2D depth sampled format:Unknown
96: TypeImage 6(float) 2D depth sampled format:Unknown
89: TypeSampledImage 88
97: TypeSampledImage 96
90: TypePointer UniformConstant 89
98: TypePointer UniformConstant 97
91(samp2Ds): 90(ptr) Variable UniformConstant
99(samp2Ds): 98(ptr) Variable UniformConstant
97: TypeImage 6(float) Cube depth sampled format:Unknown
106: TypeImage 6(float) Cube depth sampled format:Unknown
98: TypeSampledImage 97
99: TypePointer UniformConstant 98
100(sampCubes): 99(ptr) Variable UniformConstant
106: TypeImage 6(float) 1D depth array sampled format:Unknown
107: TypeSampledImage 106
107: TypeSampledImage 106
108: TypePointer UniformConstant 107
108: TypePointer UniformConstant 107
109(samp1DAs): 108(ptr) Variable UniformConstant
109(sampCubes): 108(ptr) Variable UniformConstant
115: TypeImage 6(float) 2D depth array sampled format:Unknown
116: TypeImage 6(float) 1D depth array sampled format:Unknown
116: TypeSampledImage 115
117: TypeSampledImage 116
117: TypePointer UniformConstant 116
118: TypePointer UniformConstant 117
118(samp2DAs): 117(ptr) Variable UniformConstant
119(samp1DAs): 118(ptr) Variable UniformConstant
124: TypeImage 6(float) Cube depth array sampled format:Unknown
126: TypeImage 6(float) 2D depth array sampled format:Unknown
125: TypeSampledImage 124
127: TypeSampledImage 126
126: TypePointer UniformConstant 125
128: TypePointer UniformConstant 127
127(sampCubeAs): 126(ptr) Variable UniformConstant
129(samp2DAs): 128(ptr) Variable UniformConstant
133: TypePointer Function 19(int)
136: TypeImage 6(float) Cube depth array sampled format:Unknown
137: TypeImage 30(int) 2D sampled format:Unknown
137: TypeSampledImage 136
138: TypeSampledImage 137
138: TypePointer UniformConstant 137
139: TypePointer UniformConstant 138
139(sampCubeAs): 138(ptr) Variable UniformConstant
140(usamp2D): 139(ptr) Variable UniformConstant
146: TypePointer Function 20(int)
145: TypeImage 19(int) 3D sampled format:Unknown
151: TypeImage 32(int) 2D sampled format:Unknown
146: TypeSampledImage 145
152: TypeSampledImage 151
147: TypePointer UniformConstant 146
153: TypePointer UniformConstant 152
148(isamp3D): 147(ptr) Variable UniformConstant
154(usamp2D): 153(ptr) Variable UniformConstant
153: TypeImage 19(int) Cube sampled format:Unknown
160: TypeImage 20(int) 3D sampled format:Unknown
154: TypeSampledImage 153
161: TypeSampledImage 160
155: TypePointer UniformConstant 154
162: TypePointer UniformConstant 161
156(isampCube): 155(ptr) Variable UniformConstant
163(isamp3D): 162(ptr) Variable UniformConstant
165: TypeImage 6(float) 2D array sampled format:Unknown
169: TypeImage 20(int) Cube sampled format:Unknown
166: TypeSampledImage 165
170: TypeSampledImage 169
167: TypePointer UniformConstant 166
171: TypePointer UniformConstant 170
168(samp2DA): 167(ptr) Variable UniformConstant
172(isampCube): 171(ptr) Variable UniformConstant
173: TypeImage 30(int) Cube array sampled format:Unknown
183: TypeImage 6(float) 2D array sampled format:Unknown
174: TypeSampledImage 173
184: TypeSampledImage 183
175: TypePointer UniformConstant 174
185: TypePointer UniformConstant 184
176(usampCubeA): 175(ptr) Variable UniformConstant
186(samp2DA): 185(ptr) Variable UniformConstant
203: TypeImage 6(float) Buffer sampled format:Unknown
192: TypeImage 32(int) Cube array sampled format:Unknown
204: TypeSampledImage 203
193: TypeSampledImage 192
205: TypePointer UniformConstant 204
194: TypePointer UniformConstant 193
206(sampBuf): 205(ptr) Variable UniformConstant
195(usampCubeA): 194(ptr) Variable UniformConstant
207: TypeImage 6(float) Rect sampled format:Unknown
229: TypeImage 6(float) Buffer sampled format:Unknown
208: TypeSampledImage 207
230: TypeSampledImage 229
209: TypePointer UniformConstant 208
231: TypePointer UniformConstant 230
210(sampRect): 209(ptr) Variable UniformConstant
232(sampBuf): 231(ptr) Variable UniformConstant
233: TypeImage 6(float) Rect sampled format:Unknown
234: TypeSampledImage 233
235: TypePointer UniformConstant 234
236(sampRect): 235(ptr) Variable UniformConstant
4(main): 2 Function None 3
4(main): 2 Function None 3
5: Label
5: Label
9(lod): 8(ptr) Variable Function
9(lod): 8(ptr) Variable Function
16(pf): 15(ptr) Variable Function
16(pf): 15(ptr) Variable Function
2
5
(pf2): 8(ptr) Variable Function
2
6
(pf2): 8(ptr) Variable Function
38(pf3): 37
(ptr) Variable Function
40(pf3): 39
(ptr) Variable Function
1
34(levels): 133
(ptr) Variable Function
1
47(levels): 146
(ptr) Variable Function
14: 11 Load 13(samp1D)
14: 11 Load 13(samp1D)
17: 6(float) Load 16(pf)
17: 6(float) Load 16(pf)
18: 7(fvec2) ImageQueryLod 14 17
18: 10 Image 14
Store 9(lod) 18
19: 7(fvec2) ImageQueryLod 18 17
24: 21 Load 23(isamp2D)
Store 9(lod) 19
26: 7(fvec2) Load 25(pf2)
25: 22 Load 24(isamp2D)
27: 7(fvec2) ImageQueryLod 24 26
27: 7(fvec2) Load 26(pf2)
28: 7(fvec2) Load 9(lod)
28: 21 Image 25
29: 7(fvec2) FAdd 28 27
29: 7(fvec2) ImageQueryLod 28 27
Store 9(lod) 29
30: 7(fvec2) Load 9(lod)
35: 32 Load 34(usamp3D)
31: 7(fvec2) FAdd 30 29
39: 36(fvec3) Load 38(pf3)
Store 9(lod) 31
40: 7(fvec2) ImageQueryLod 35 39
37: 34 Load 36(usamp3D)
41: 7(fvec2) Load 9(lod)
41: 38(fvec3) Load 40(pf3)
42: 7(fvec2) FAdd 41 40
42: 33 Image 37
Store 9(lod) 42
43: 7(fvec2) ImageQueryLod 42 41
47: 44 Load 46(sampCube)
44: 7(fvec2) Load 9(lod)
48: 36(fvec3) Load 38(pf3)
45: 7(fvec2) FAdd 44 43
49: 7(fvec2) ImageQueryLod 47 48
Store 9(lod) 45
50: 7(fvec2) Load 9(lod)
50: 47 Load 49(sampCube)
51: 7(fvec2) FAdd 50 49
51: 38(fvec3) Load 40(pf3)
Store 9(lod) 51
52: 46 Image 50
56: 53 Load 55(isamp1DA)
53: 7(fvec2) ImageQueryLod 52 51
57: 6(float) Load 16(pf)
54: 7(fvec2) Load 9(lod)
58: 7(fvec2) ImageQueryLod 56 57
55: 7(fvec2) FAdd 54 53
59: 7(fvec2) Load 9(lod)
Store 9(lod) 55
60: 7(fvec2) FAdd 59 58
60: 57 Load 59(isamp1DA)
Store 9(lod) 60
61: 6(float) Load 16(pf)
65: 62 Load 64(usamp2DA)
62: 56 Image 60
66: 7(fvec2) Load 25(pf2)
63: 7(fvec2) ImageQueryLod 62 61
67: 7(fvec2) ImageQueryLod 65 66
64: 7(fvec2) Load 9(lod)
68: 7(fvec2) Load 9(lod)
65: 7(fvec2) FAdd 64 63
69: 7(fvec2) FAdd 68 67
Store 9(lod) 65
Store 9(lod) 69
70: 67 Load 69(usamp2DA)
74: 71 Load 73(isampCubeA)
71: 7(fvec2) Load 26(pf2)
75: 36(fvec3) Load 38(pf3)
72: 66 Image 70
76: 7(fvec2) ImageQueryLod 74 75
73: 7(fvec2) ImageQueryLod 72 71
77: 7(fvec2) Load 9(lod)
74: 7(fvec2) Load 9(lod)
78: 7(fvec2) FAdd 77 76
75: 7(fvec2) FAdd 74 73
Store 9(lod) 78
Store 9(lod) 75
83: 80 Load 82(samp1Ds)
80: 77 Load 79(isampCubeA)
84: 6(float) Load 16(pf)
81: 38(fvec3) Load 40(pf3)
85: 7(fvec2) ImageQueryLod 83 84
82: 76 Image 80
86: 7(fvec2) Load 9(lod)
83: 7(fvec2) ImageQueryLod 82 81
87: 7(fvec2) FAdd 86 85
84: 7(fvec2) Load 9(lod)
Store 9(lod) 87
85: 7(fvec2) FAdd 84 83
92: 89 Load 91(samp2Ds)
Store 9(lod) 85
93: 7(fvec2) Load 25(pf2)
90: 87 Load 89(samp1Ds)
94: 7(fvec2) ImageQueryLod 92 93
91: 6(float) Load 16(pf)
95: 7(fvec2) Load 9(lod)
92: 86 Image 90
96: 7(fvec2) FAdd 95 94
93: 7(fvec2) ImageQueryLod 92 91
Store 9(lod) 96
94: 7(fvec2) Load 9(lod)
101: 98 Load 100(sampCubes)
95: 7(fvec2) FAdd 94 93
102: 36(fvec3) Load 38(pf3)
Store 9(lod) 95
103: 7(fvec2) ImageQueryLod 101 102
100: 97 Load 99(samp2Ds)
101: 7(fvec2) Load 26(pf2)
102: 96 Image 100
103: 7(fvec2) ImageQueryLod 102 101
104: 7(fvec2) Load 9(lod)
104: 7(fvec2) Load 9(lod)
105: 7(fvec2) FAdd 104 103
105: 7(fvec2) FAdd 104 103
Store 9(lod) 105
Store 9(lod) 105
110: 107 Load 109(samp1DAs)
110: 107 Load 109(sampCubes)
111: 6(float) Load 16(pf)
111: 38(fvec3) Load 40(pf3)
112: 7(fvec2) ImageQueryLod 110 111
112: 106 Image 110
113: 7(fvec2) Load 9(lod)
113: 7(fvec2) ImageQueryLod 112 111
114: 7(fvec2) FAdd 113 112
114: 7(fvec2) Load 9(lod)
Store 9(lod) 114
115: 7(fvec2) FAdd 114 113
119: 116 Load 118(samp2DAs)
Store 9(lod) 115
120: 7(fvec2) Load 25(pf2)
120: 117 Load 119(samp1DAs)
121: 7(fvec2) ImageQueryLod 119 120
121: 6(float) Load 16(pf)
122: 7(fvec2) Load 9(lod)
122: 116 Image 120
123: 7(fvec2) FAdd 122 121
123: 7(fvec2) ImageQueryLod 122 121
Store 9(lod) 123
124: 7(fvec2) Load 9(lod)
128: 125 Load 127(sampCubeAs)
125: 7(fvec2) FAdd 124 123
129: 36(fvec3) Load 38(pf3)
Store 9(lod) 125
130: 7(fvec2) ImageQueryLod 128 129
130: 127 Load 129(samp2DAs)
131: 7(fvec2) Load 9(lod)
131: 7(fvec2) Load 26(pf2)
132: 7(fvec2) FAdd 131 130
132: 126 Image 130
Store 9(lod) 132
133: 7(fvec2) ImageQueryLod 132 131
135: 11 Load 13(samp1D)
134: 7(fvec2) Load 9(lod)
136: 19(int) ImageQueryLevels 135
135: 7(fvec2) FAdd 134 133
Store 134(levels) 136
Store 9(lod) 135
141: 138 Load 140(usamp2D)
140: 137 Load 139(sampCubeAs)
142: 19(int) ImageQueryLevels 141
141: 38(fvec3) Load 40(pf3)
143: 19(int) Load 134(levels)
142: 136 Image 140
144: 19(int) IAdd 143 142
143: 7(fvec2) ImageQueryLod 142 141
Store 134(levels) 144
144: 7(fvec2) Load 9(lod)
149: 146 Load 148(isamp3D)
145: 7(fvec2) FAdd 144 143
150: 19(int) ImageQueryLevels 149
Store 9(lod) 145
151: 19(int) Load 134(levels)
148: 11 Load 13(samp1D)
152: 19(int) IAdd 151 150
149: 10 Image 148
Store 134(levels) 152
150: 20(int) ImageQueryLevels 149
157: 154 Load 156(isampCube)
Store 147(levels) 150
158: 19(int) ImageQueryLevels 157
155: 152 Load 154(usamp2D)
159: 19(int) Load 134(levels)
156: 151 Image 155
160: 19(int) IAdd 159 158
157: 20(int) ImageQueryLevels 156
Store 134(levels) 160
158: 20(int) Load 147(levels)
161: 53 Load 55(isamp1DA)
159: 20(int) IAdd 158 157
162: 19(int) ImageQueryLevels 161
Store 147(levels) 159
163: 19(int) Load 134(levels)
164: 161 Load 163(isamp3D)
164: 19(int) IAdd 163 162
165: 160 Image 164
Store 134(levels) 164
166: 20(int) ImageQueryLevels 165
169: 166 Load 168(samp2DA)
167: 20(int) Load 147(levels)
170: 19(int) ImageQueryLevels 169
168: 20(int) IAdd 167 166
171: 19(int) Load 134(levels)
Store 147(levels) 168
172: 19(int) IAdd 171 170
173: 170 Load 172(isampCube)
Store 134(levels) 172
174: 169 Image 173
177: 174 Load 176(usampCubeA)
175: 20(int) ImageQueryLevels 174
178: 19(int) ImageQueryLevels 177
176: 20(int) Load 147(levels)
179: 19(int) Load 134(levels)
177: 20(int) IAdd 176 175
180: 19(int) IAdd 179 178
Store 147(levels) 177
Store 134(levels) 180
178: 57 Load 59(isamp1DA)
181: 80 Load 82(samp1Ds)
179: 56 Image 178
182: 19(int) ImageQueryLevels 181
180: 20(int) ImageQueryLevels 179
Store 134(levels) 182
181: 20(int) Load 147(levels)
183: 89 Load 91(samp2Ds)
182: 20(int) IAdd 181 180
184: 19(int) ImageQueryLevels 183
Store 147(levels) 182
185: 19(int) Load 134(levels)
187: 184 Load 186(samp2DA)
186: 19(int) IAdd 185 184
188: 183 Image 187
Store 134(levels) 186
189: 20(int) ImageQueryLevels 188
187: 98 Load 100(sampCubes)
190: 20(int) Load 147(levels)
188: 19(int) ImageQueryLevels 187
191: 20(int) IAdd 190 189
189: 19(int) Load 134(levels)
Store 147(levels) 191
190: 19(int) IAdd 189 188
196: 193 Load 195(usampCubeA)
Store 134(levels) 190
197: 192 Image 196
191: 107 Load 109(samp1DAs)
198: 20(int) ImageQueryLevels 197
192: 19(int) ImageQueryLevels 191
199: 20(int) Load 147(levels)
193: 19(int) Load 134(levels)
200: 20(int) IAdd 199 198
194: 19(int) IAdd 193 192
Store 147(levels) 200
Store 134(levels) 194
201: 87 Load 89(samp1Ds)
195: 116 Load 118(samp2DAs)
202: 86 Image 201
196: 19(int) ImageQueryLevels 195
203: 20(int) ImageQueryLevels 202
197: 19(int) Load 134(levels)
Store 147(levels) 203
198: 19(int) IAdd 197 196
204: 97 Load 99(samp2Ds)
Store 134(levels) 198
205: 96 Image 204
199: 125 Load 127(sampCubeAs)
206: 20(int) ImageQueryLevels 205
200: 19(int) ImageQueryLevels 199
207: 20(int) Load 147(levels)
201: 19(int) Load 134(levels)
208: 20(int) IAdd 207 206
202: 19(int) IAdd 201 200
Store 147(levels) 208
Store 134(levels) 202
209: 107 Load 109(sampCubes)
210: 106 Image 209
211: 20(int) ImageQueryLevels 210
212: 20(int) Load 147(levels)
213: 20(int) IAdd 212 211
Store 147(levels) 213
214: 117 Load 119(samp1DAs)
215: 116 Image 214
216: 20(int) ImageQueryLevels 215
217: 20(int) Load 147(levels)
218: 20(int) IAdd 217 216
Store 147(levels) 218
219: 127 Load 129(samp2DAs)
220: 126 Image 219
221: 20(int) ImageQueryLevels 220
222: 20(int) Load 147(levels)
223: 20(int) IAdd 222 221
Store 147(levels) 223
224: 137 Load 139(sampCubeAs)
225: 136 Image 224
226: 20(int) ImageQueryLevels 225
227: 20(int) Load 147(levels)
228: 20(int) IAdd 227 226
Store 147(levels) 228
Return
Return
FunctionEnd
FunctionEnd
glslang/Include/revision.h
View file @
33661450
...
@@ -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.8
24
"
#define GLSLANG_REVISION "SPIRV99.8
30
"
#define GLSLANG_DATE "0
6
-Dec-2015"
#define GLSLANG_DATE "0
8
-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