skia2/tests/sksl/runtime/ArrayIndexing.skvm
John Stiles 3856a5854e Revert "Add SkVM op trace_done to indicate completion of debug tracing."
This reverts commit 062652067b.

Reason for revert: design change removes need for this op

Original change's description:
> Add SkVM op `trace_done` to indicate completion of debug tracing.
>
> This op can be used to invoke a callback function and dump the log to
> disk when it is ready. SkRuntimeEffect doesn't have any other viable
> mechanisms for detecting that a paint has completed, AFAIK. We can
> wait for ~SkRTShader to occur, but there's no guarantee that this will
> happen quickly, and the SkPaint with the SkRTShader shader can be reused
> over and over again.
>
> Unlike other trace ops, this only needs a trace mask, not an execution
> mask (we are unconditionally done at the end of main).
>
> Change-Id: I6f7ee41f2005b65940d36dee892279d4f245509f
> Bug: skia:12708
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/479876
> Auto-Submit: John Stiles <johnstiles@google.com>
> Commit-Queue: Brian Osman <brianosman@google.com>
> Reviewed-by: Brian Osman <brianosman@google.com>

Bug: skia:12708
Change-Id: Ic4c4f5dd72541195f07ca32035267a20a82536e7
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/481577
Commit-Queue: John Stiles <johnstiles@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
2021-12-08 17:49:56 +00:00

232 lines
7.1 KiB
Plaintext

$0 = u1[0] (float, L3)
$1 = u1[1] (float, L3)
$2 = u1[2] (float, L3)
$3 = u1[3] (float, L3)
$4 = u2[0] (float, L8)
$5 = u2[1] (float, L8)
$6 = u2[2] (float, L8)
$7 = u2[3] (float, L8)
$8 = u3[0] (float, L17)
$9 = u3[1] (float, L17)
$10 = u3[2] (float, L17)
$11 = u3[3] (float, L17)
$12 = u4[0] (float, L26)
$13 = u4[1] (float, L26)
$14 = u4[2] (float, L26)
$15 = u4[3] (float, L26)
$16 = u4[4] (float, L26)
$17 = u4[5] (float, L26)
$18 = u4[6] (float, L26)
$19 = u4[7] (float, L26)
$20 = u4[8] (float, L26)
$21 = u4[9] (float, L26)
$22 = u4[10] (float, L26)
$23 = u4[11] (float, L26)
$24 = u4[12] (float, L26)
$25 = u4[13] (float, L26)
$26 = u4[14] (float, L26)
$27 = u4[15] (float, L26)
$28 = [main].result (float4 : slot 1/4, L37)
$29 = [main].result (float4 : slot 2/4, L37)
$30 = [main].result (float4 : slot 3/4, L37)
$31 = [main].result (float4 : slot 4/4, L37)
$32 = xy (float2 : slot 1/2, L37)
$33 = xy (float2 : slot 2/2, L37)
$34 = [index_by_literal].result (float, L4)
$35 = [index_by_loop].result (float, L9)
$36 = sum (float, L10)
$37 = i (int, L11)
$38 = [index_by_complex_loop].result (float, L18)
$39 = prod (float, L19)
$40 = i (int, L20)
$41 = [index_out_of_bounds_checked].result (float, L27)
$42 = sum (float, L28)
$43 = f (float, L29)
F0 = float4 main(float2 xy)
F1 = float index_by_literal()
F2 = float index_by_loop()
F3 = float index_by_complex_loop()
F4 = float index_out_of_bounds_checked()
54 registers, 179 instructions:
0 r0 = uniform32 ptr0 0
1 r1 = uniform32 ptr0 4
2 r2 = uniform32 ptr0 8
3 r3 = uniform32 ptr0 C
4 r4 = uniform32 ptr0 10
5 r5 = uniform32 ptr0 14
6 r6 = uniform32 ptr0 18
7 r7 = uniform32 ptr0 1C
8 r8 = uniform32 ptr0 20
9 r9 = uniform32 ptr0 24
10 r10 = uniform32 ptr0 28
11 r11 = uniform32 ptr0 2C
12 r12 = uniform32 ptr0 30
13 r13 = uniform32 ptr0 34
14 r14 = uniform32 ptr0 38
15 r15 = uniform32 ptr0 3C
16 r16 = uniform32 ptr0 40
17 r17 = uniform32 ptr0 44
18 r18 = uniform32 ptr0 48
19 r19 = uniform32 ptr0 4C
20 r20 = uniform32 ptr0 50
21 r21 = uniform32 ptr0 54
22 r22 = uniform32 ptr0 58
23 r23 = uniform32 ptr0 5C
24 r24 = uniform32 ptr0 60
25 r25 = uniform32 ptr0 64
26 r26 = uniform32 ptr0 68
27 r27 = uniform32 ptr0 6C
28 r28 = uniform32 ptr0 70
29 r29 = splat 0 (0)
30 r30 = splat 3F000000 (0.5)
31 r31 = eq_f32 r0 r30
32 r32 = splat 3 (4.2038954e-45)
33 r33 = splat 2 (2.8025969e-45)
34 r34 = add_f32 r7 r8
35 r35 = splat 1 (1.4012985e-45)
36 r36 = add_f32 r6 r34
37 r37 = add_f32 r5 r36
38 r38 = splat 3F800000 (1)
39 r39 = mul_f32 r9 r9
40 r40 = mul_f32 r11 r39
41 r41 = mul_f32 r12 r40
42 r42 = splat C0133333 (-2.3)
43 r43 = splat 3FB33334 (1.4000001)
44 r44 = sub_f32 r29 r14
45 r45 = splat 40A33334 (5.1000004)
46 r46 = sub_f32 r44 r18
47 r47 = splat 410CCCCD (8.8000002)
48 r48 = sub_f32 r46 r21
49 r49 = splat 41480000 (12.5)
50 r50 = sub_f32 r48 r25
51 r51 = splat 4181999A (16.200001)
loop:
52 r52 = index
53 r53 = eq_f32 r52 r30
54 r53 = bit_and r53 r31
55 trace_var 0 r53 r53 $0 = r1
56 trace_var 0 r53 r53 $1 = r2
57 trace_var 0 r53 r53 $2 = r3
58 trace_var 0 r53 r53 $3 = r4
59 trace_var 0 r53 r53 $4 = r5
60 trace_var 0 r53 r53 $5 = r6
61 trace_var 0 r53 r53 $6 = r7
62 trace_var 0 r53 r53 $7 = r8
63 trace_var 0 r53 r53 $8 = r9
64 trace_var 0 r53 r53 $9 = r10
65 trace_var 0 r53 r53 $10 = r11
66 trace_var 0 r53 r53 $11 = r12
67 trace_var 0 r53 r53 $12 = r13
68 trace_var 0 r53 r53 $13 = r14
69 trace_var 0 r53 r53 $14 = r15
70 trace_var 0 r53 r53 $15 = r16
71 trace_var 0 r53 r53 $16 = r17
72 trace_var 0 r53 r53 $17 = r18
73 trace_var 0 r53 r53 $18 = r19
74 trace_var 0 r53 r53 $19 = r20
75 trace_var 0 r53 r53 $20 = r21
76 trace_var 0 r53 r53 $21 = r22
77 trace_var 0 r53 r53 $22 = r23
78 trace_var 0 r53 r53 $23 = r24
79 trace_var 0 r53 r53 $24 = r25
80 trace_var 0 r53 r53 $25 = r26
81 trace_var 0 r53 r53 $26 = r27
82 trace_var 0 r53 r53 $27 = r28
83 trace_enter 0 r53 r53 F0
84 trace_var 0 r53 r53 $32 = r52
85 trace_var 0 r53 r53 $33 = r0
86 trace_line 0 r53 r53 L38
87 trace_enter 0 r53 r53 F1
88 trace_line 0 r53 r53 L5
89 trace_exit 0 r53 r53 F1
90 trace_var 0 r53 r53 $34 = r1
91 trace_enter 0 r53 r53 F2
92 trace_line 0 r53 r53 L10
93 trace_var 0 r53 r53 $36 = r29
94 trace_line 0 r53 r53 L11
95 trace_var 0 r53 r53 $37 = r32
96 trace_line 0 r53 r53 L12
97 trace_var 0 r53 r53 $36 = r8
98 trace_line 0 r53 r53 L11
99 trace_var 0 r53 r53 $37 = r33
100 trace_line 0 r53 r53 L12
101 trace_var 0 r53 r53 $36 = r34
102 trace_line 0 r53 r53 L11
103 trace_var 0 r53 r53 $37 = r35
104 trace_line 0 r53 r53 L12
105 trace_var 0 r53 r53 $36 = r36
106 trace_line 0 r53 r53 L11
107 trace_var 0 r53 r53 $37 = r29
108 trace_line 0 r53 r53 L12
109 trace_var 0 r53 r53 $36 = r37
110 trace_line 0 r53 r53 L11
111 trace_line 0 r53 r53 L14
112 trace_exit 0 r53 r53 F2
113 trace_var 0 r53 r53 $35 = r37
114 trace_enter 0 r53 r53 F3
115 trace_line 0 r53 r53 L19
116 trace_var 0 r53 r53 $39 = r38
117 trace_line 0 r53 r53 L20
118 trace_var 0 r53 r53 $40 = r29
119 trace_line 0 r53 r53 L21
120 trace_var 0 r53 r53 $39 = r9
121 trace_line 0 r53 r53 L20
122 trace_var 0 r53 r53 $40 = r35
123 trace_line 0 r53 r53 L21
124 trace_var 0 r53 r53 $39 = r39
125 trace_line 0 r53 r53 L20
126 trace_var 0 r53 r53 $40 = r33
127 trace_line 0 r53 r53 L21
128 trace_var 0 r53 r53 $39 = r40
129 trace_line 0 r53 r53 L20
130 trace_var 0 r53 r53 $40 = r32
131 trace_line 0 r53 r53 L21
132 trace_var 0 r53 r53 $39 = r41
133 trace_line 0 r53 r53 L20
134 trace_line 0 r53 r53 L23
135 trace_exit 0 r53 r53 F3
136 trace_var 0 r53 r53 $38 = r41
137 trace_enter 0 r53 r53 F4
138 trace_line 0 r53 r53 L28
139 trace_var 0 r53 r53 $42 = r29
140 trace_line 0 r53 r53 L29
141 trace_var 0 r53 r53 $43 = r42
142 trace_line 0 r53 r53 L30
143 trace_line 0 r53 r53 L29
144 trace_var 0 r53 r53 $43 = r43
145 trace_line 0 r53 r53 L30
146 trace_line 0 r53 r53 L31
147 trace_var 0 r53 r53 $42 = r44
148 trace_line 0 r53 r53 L29
149 trace_var 0 r53 r53 $43 = r45
150 trace_line 0 r53 r53 L30
151 trace_line 0 r53 r53 L31
152 trace_var 0 r53 r53 $42 = r46
153 trace_line 0 r53 r53 L29
154 trace_var 0 r53 r53 $43 = r47
155 trace_line 0 r53 r53 L30
156 trace_line 0 r53 r53 L31
157 trace_var 0 r53 r53 $42 = r48
158 trace_line 0 r53 r53 L29
159 trace_var 0 r53 r53 $43 = r49
160 trace_line 0 r53 r53 L30
161 trace_line 0 r53 r53 L31
162 trace_var 0 r53 r53 $42 = r50
163 trace_line 0 r53 r53 L29
164 trace_var 0 r53 r53 $43 = r51
165 trace_line 0 r53 r53 L30
166 trace_line 0 r53 r53 L29
167 trace_line 0 r53 r53 L34
168 trace_exit 0 r53 r53 F4
169 trace_var 0 r53 r53 $41 = r50
170 trace_exit 0 r53 r53 F0
171 trace_var 0 r53 r53 $28 = r1
172 trace_var 0 r53 r53 $29 = r37
173 trace_var 0 r53 r53 $30 = r41
174 trace_var 0 r53 r53 $31 = r50
175 store32 ptr1 r1
176 store32 ptr2 r37
177 store32 ptr3 r41
178 store32 ptr4 r50