skia2/tests/sksl/runtime/GlobalVariables.skvm
John Stiles 71f7880bb6 Emit trace_scope ops from SkVM code generation.
These will give the debugger enough information to discard variables as
they fall out of scope.

Change-Id: Ia400e82a3ca9cf0a51a72d819f897d346979226c
Bug: skia:12741
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/484556
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
2021-12-15 01:05:34 +00:00

48 lines
1.3 KiB
Plaintext

$0 = gInitialized (float, L3)
$1 = gInitializedFromOther (float, L4)
$2 = gUninitialized (float, L5)
$3 = [main].result (float4 : slot 1/4, L11)
$4 = [main].result (float4 : slot 2/4, L11)
$5 = [main].result (float4 : slot 3/4, L11)
$6 = [main].result (float4 : slot 4/4, L11)
$7 = xy (float2 : slot 1/2, L11)
$8 = xy (float2 : slot 2/2, L11)
F0 = float4 main(float2 xy)
F1 = void init_globals()
8 registers, 33 instructions:
0 r0 = uniform32 ptr0 0
1 r1 = splat 0 (0)
2 r2 = splat 3F000000 (0.5)
3 r3 = eq_f32 r0 r2
4 r4 = splat BF800000 (-1)
5 r5 = splat 3F800000 (1)
loop:
6 r6 = index
7 r7 = eq_f32 r6 r2
8 r7 = bit_and r7 r3
9 trace_var 0 r7 r7 $0 = r4
10 trace_var 0 r7 r7 $1 = r5
11 trace_enter 0 r7 r7 F0
12 trace_var 0 r7 r7 $7 = r6
13 trace_var 0 r7 r7 $8 = r0
14 trace_scope 0 r7 r7 1
15 trace_line 0 r7 r7 L12
16 trace_enter 0 r7 r7 F1
17 trace_scope 0 r7 r7 1
18 trace_line 0 r7 r7 L8
19 trace_var 0 r7 r7 $2 = r5
20 trace_scope 0 r7 r7 -1
21 trace_exit 0 r7 r7 F1
22 trace_line 0 r7 r7 L13
23 trace_var 0 r7 r7 $3 = r1
24 trace_var 0 r7 r7 $4 = r5
25 trace_var 0 r7 r7 $5 = r1
26 trace_var 0 r7 r7 $6 = r5
27 trace_scope 0 r7 r7 -1
28 trace_exit 0 r7 r7 F0
29 store32 ptr1 r1
30 store32 ptr2 r5
31 store32 ptr3 r1
32 store32 ptr4 r5