Debian Codegraph @

test/diff/diff_files/different_decorations_fragment_src.spvasm

raw
1 ;; Test where variable set/binding/location decorations are different between
2 ;; src and dst fragment shaders.
3 OpCapability Shader
4 OpMemoryModel Logical GLSL450
5 OpEntryPoint Fragment %63 "main" %4 %22
6 OpExecutionMode %63 OriginUpperLeft
7 OpSource GLSL 450
8 OpName %4 "_ue"
9 OpName %8 "_uf"
10 OpName %11 "_ug"
11 OpName %12 "_uA"
12 OpMemberName %12 0 "_ux"
13 OpName %14 "_uc"
14 OpName %15 "_uB"
15 OpMemberName %15 0 "_ux"
16 OpName %20 "_ud"
17 OpName %22 "_ucol"
18 OpName %26 "ANGLEDepthRangeParams"
19 OpMemberName %26 0 "near"
20 OpMemberName %26 1 "far"
21 OpMemberName %26 2 "diff"
22 OpMemberName %26 3 "reserved"
23 OpName %27 "ANGLEUniformBlock"
24 OpMemberName %27 0 "viewport"
25 OpMemberName %27 1 "clipDistancesEnabled"
26 OpMemberName %27 2 "xfbActiveUnpaused"
27 OpMemberName %27 3 "xfbVerticesPerInstance"
28 OpMemberName %27 4 "numSamples"
29 OpMemberName %27 5 "xfbBufferOffsets"
30 OpMemberName %27 6 "acbBufferOffsets"
31 OpMemberName %27 7 "depthRange"
32 OpName %29 "ANGLEUniforms"
33 OpName %33 "_uc"
34 OpName %32 "_uh"
35 OpName %49 "_ux"
36 OpName %50 "_uy"
37 OpName %48 "_ui"
38 OpName %63 "main"
39 OpName %65 "param"
40 OpName %68 "param"
41 OpName %73 "param"
42 OpDecorate %4 Location 0
43 OpDecorate %8 RelaxedPrecision
44 OpDecorate %8 DescriptorSet 0
45 OpDecorate %8 Binding 0
46 OpDecorate %11 DescriptorSet 0
47 OpDecorate %11 Binding 1
48 OpMemberDecorate %12 0 Offset 0
49 OpMemberDecorate %12 0 RelaxedPrecision
50 OpDecorate %12 Block
51 OpDecorate %14 DescriptorSet 0
52 OpDecorate %14 Binding 2
53 OpMemberDecorate %15 0 Offset 0
54 OpMemberDecorate %15 0 RelaxedPrecision
55 OpDecorate %15 BufferBlock
56 OpDecorate %20 DescriptorSet 0
57 OpDecorate %20 Binding 3
58 OpDecorate %22 RelaxedPrecision
59 OpDecorate %22 Location 0
60 OpMemberDecorate %26 0 Offset 0
61 OpMemberDecorate %26 1 Offset 4
62 OpMemberDecorate %26 2 Offset 8
63 OpMemberDecorate %26 3 Offset 12
64 OpMemberDecorate %27 0 Offset 0
65 OpMemberDecorate %27 1 Offset 16
66 OpMemberDecorate %27 2 Offset 20
67 OpMemberDecorate %27 3 Offset 24
68 OpMemberDecorate %27 4 Offset 28
69 OpMemberDecorate %27 5 Offset 32
70 OpMemberDecorate %27 6 Offset 48
71 OpMemberDecorate %27 7 Offset 64
72 OpMemberDecorate %27 2 RelaxedPrecision
73 OpMemberDecorate %27 4 RelaxedPrecision
74 OpDecorate %27 Block
75 OpDecorate %29 DescriptorSet 0
76 OpDecorate %29 Binding 4
77 OpDecorate %32 RelaxedPrecision
78 OpDecorate %33 RelaxedPrecision
79 OpDecorate %36 RelaxedPrecision
80 OpDecorate %37 RelaxedPrecision
81 OpDecorate %38 RelaxedPrecision
82 OpDecorate %39 RelaxedPrecision
83 OpDecorate %41 RelaxedPrecision
84 OpDecorate %42 RelaxedPrecision
85 OpDecorate %43 RelaxedPrecision
86 OpDecorate %48 RelaxedPrecision
87 OpDecorate %49 RelaxedPrecision
88 OpDecorate %50 RelaxedPrecision
89 OpDecorate %52 RelaxedPrecision
90 OpDecorate %53 RelaxedPrecision
91 OpDecorate %54 RelaxedPrecision
92 OpDecorate %55 RelaxedPrecision
93 OpDecorate %56 RelaxedPrecision
94 OpDecorate %57 RelaxedPrecision
95 OpDecorate %58 RelaxedPrecision
96 OpDecorate %59 RelaxedPrecision
97 OpDecorate %60 RelaxedPrecision
98 OpDecorate %67 RelaxedPrecision
99 OpDecorate %68 RelaxedPrecision
100 OpDecorate %72 RelaxedPrecision
101 OpDecorate %73 RelaxedPrecision
102 OpDecorate %75 RelaxedPrecision
103 OpDecorate %76 RelaxedPrecision
104 OpDecorate %77 RelaxedPrecision
105 OpDecorate %80 RelaxedPrecision
106 OpDecorate %81 RelaxedPrecision
107 %1 = OpTypeFloat 32
108 %2 = OpTypeVector %1 4
109 %5 = OpTypeImage %1 2D 0 0 0 1 Unknown
110 %6 = OpTypeSampledImage %5
111 %9 = OpTypeImage %1 2D 0 0 0 2 Rgba8
112 %12 = OpTypeStruct %2
113 %15 = OpTypeStruct %2
114 %16 = OpTypeInt 32 0
115 %17 = OpConstant %16 2
116 %18 = OpTypeArray %15 %17
117 %23 = OpTypeInt 32 1
118 %24 = OpTypeVector %23 4
119 %25 = OpTypeVector %16 4
120 %26 = OpTypeStruct %1 %1 %1 %1
121 %27 = OpTypeStruct %2 %16 %16 %23 %23 %24 %25 %26
122 %35 = OpTypeVector %1 2
123 %40 = OpTypeVector %23 2
124 %61 = OpTypeVoid
125 %69 = OpConstant %16 0
126 %78 = OpConstant %16 1
127 %3 = OpTypePointer Input %2
128 %7 = OpTypePointer UniformConstant %6
129 %10 = OpTypePointer UniformConstant %9
130 %13 = OpTypePointer Uniform %12
131 %19 = OpTypePointer Uniform %18
132 %21 = OpTypePointer Output %2
133 %28 = OpTypePointer Uniform %27
134 %30 = OpTypePointer Function %2
135 %70 = OpTypePointer Uniform %2
136 %31 = OpTypeFunction %2 %30
137 %47 = OpTypeFunction %2 %30 %30
138 %62 = OpTypeFunction %61
139 %4 = OpVariable %3 Input
140 %8 = OpVariable %7 UniformConstant
141 %11 = OpVariable %10 UniformConstant
142 %14 = OpVariable %13 Uniform
143 %20 = OpVariable %19 Uniform
144 %22 = OpVariable %21 Output
145 %29 = OpVariable %28 Uniform
146 %32 = OpFunction %2 None %31
147 %33 = OpFunctionParameter %30
148 %34 = OpLabel
149 %36 = OpLoad %6 %8
150 %37 = OpLoad %2 %33
151 %38 = OpVectorShuffle %35 %37 %37 0 1
152 %39 = OpImageSampleImplicitLod %2 %36 %38
153 %41 = OpLoad %2 %33
154 %42 = OpVectorShuffle %35 %41 %41 2 3
155 %43 = OpConvertFToS %40 %42
156 %44 = OpLoad %9 %11
157 %45 = OpImageRead %2 %44 %43
158 %46 = OpFAdd %2 %39 %45
159 OpReturnValue %46
160 OpFunctionEnd
161 %48 = OpFunction %2 None %47
162 %49 = OpFunctionParameter %30
163 %50 = OpFunctionParameter %30
164 %51 = OpLabel
165 %52 = OpLoad %2 %49
166 %53 = OpVectorShuffle %35 %52 %52 0 1
167 %54 = OpLoad %2 %50
168 %55 = OpVectorShuffle %35 %54 %54 2 3
169 %56 = OpCompositeExtract %1 %53 0
170 %57 = OpCompositeExtract %1 %53 1
171 %58 = OpCompositeExtract %1 %55 0
172 %59 = OpCompositeExtract %1 %55 1
173 %60 = OpCompositeConstruct %2 %56 %57 %58 %59
174 OpReturnValue %60
175 OpFunctionEnd
176 %63 = OpFunction %61 None %62
177 %64 = OpLabel
178 %65 = OpVariable %30 Function
179 %68 = OpVariable %30 Function
180 %73 = OpVariable %30 Function
181 %66 = OpLoad %2 %4
182 OpStore %65 %66
183 %67 = OpFunctionCall %2 %32 %65
184 %71 = OpAccessChain %70 %14 %69
185 %72 = OpLoad %2 %71
186 OpStore %68 %72
187 %74 = OpAccessChain %70 %20 %69 %69
188 %75 = OpLoad %2 %74
189 OpStore %73 %75
190 %76 = OpFunctionCall %2 %48 %68 %73
191 %77 = OpFAdd %2 %67 %76
192 %79 = OpAccessChain %70 %20 %78 %69
193 %80 = OpLoad %2 %79
194 %81 = OpFAdd %2 %77 %80
195 OpStore %22 %81
196 OpReturn
197 OpFunctionEnd
198