skia2/tests/sksl/runtime/GlobalVariables.skvm
John Stiles b1a97caf71 Revert "Trace function return values after function-exit."
This reverts commit 85cc1bece7.

Reason for revert: ends up not being useful after all

Original change's description:
> Trace function return values after function-exit.
>
> This will allow function return values to be easily seen when stepping
> "over." This has the unexpected side benefit of generating slightly
> fewer ops when a function has unoptimizable conditional returns.
>
> Change-Id: I48d23de635d3caaddff91aa595593d0371dfcdcb
> Bug: skia:12708
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/481076
> Reviewed-by: Brian Osman <brianosman@google.com>
> Commit-Queue: John Stiles <johnstiles@google.com>
> Auto-Submit: John Stiles <johnstiles@google.com>

Bug: skia:12708
Change-Id: I61ebb175b60d2060f6ad21b170238b37557b80be
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/482458
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
2021-12-10 18:06:04 +00:00

44 lines
1.2 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, 29 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_line 0 r7 r7 L12
15 trace_enter 0 r7 r7 F1
16 trace_line 0 r7 r7 L8
17 trace_var 0 r7 r7 $2 = r5
18 trace_exit 0 r7 r7 F1
19 trace_line 0 r7 r7 L13
20 trace_var 0 r7 r7 $3 = r1
21 trace_var 0 r7 r7 $4 = r5
22 trace_var 0 r7 r7 $5 = r1
23 trace_var 0 r7 r7 $6 = r5
24 trace_exit 0 r7 r7 F0
25 store32 ptr1 r1
26 store32 ptr2 r5
27 store32 ptr3 r1
28 store32 ptr4 r5