xref: /aosp_15_r20/external/skia/tests/sksl/runtime/ChildEffectSpecialization.skrp (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
190 instructions, 15 invocations
2
3store_src_rg                   xy = src.rg
4init_lane_masks                CondMask = LoopMask = RetMask = true
5splat_4_constants              result = 0
6copy_4_slots_unmasked          $0..3 = result
7copy_2_uniforms                pt = position
8copy_2_slots_unmasked          $4..5 = pt
9exchange_src                   swap(src.rgba, $4..7)
10invoke_shader                  invoke_shader 0
11exchange_src                   swap(src.rgba, $4..7)
12label                          label 0
13add_4_floats                   $0..3 += $4..7
14copy_4_slots_unmasked          result = $0..3
15copy_2_uniforms                pt = position
16copy_2_slots_unmasked          $4..5 = pt
17exchange_src                   swap(src.rgba, $4..7)
18invoke_shader                  invoke_shader 0x00000001
19exchange_src                   swap(src.rgba, $4..7)
20label                          label 0x00000001
21add_4_floats                   $0..3 += $4..7
22copy_4_slots_unmasked          result = $0..3
23copy_4_uniforms                color = color1
24copy_4_slots_unmasked          $4..7 = color
25exchange_src                   swap(src.rgba, $4..7)
26invoke_color_filter            invoke_color_filter 0x00000002
27exchange_src                   swap(src.rgba, $4..7)
28label                          label 0x00000002
29add_4_floats                   $0..3 += $4..7
30copy_4_slots_unmasked          result = $0..3
31copy_4_uniforms                src = color1
32copy_4_uniforms                dst = color2
33copy_4_slots_unmasked          $4..7 = src
34copy_4_slots_unmasked          $8..11 = dst
35load_dst                       dst.rgba = $8..11
36exchange_src                   swap(src.rgba, $4..7)
37invoke_blender                 invoke_blender 0x00000004
38exchange_src                   swap(src.rgba, $4..7)
39label                          label 0x00000003
40add_4_floats                   $0..3 += $4..7
41copy_4_slots_unmasked          result = $0..3
42copy_4_uniforms                color = color2
43copy_4_slots_unmasked          $4..7 = color
44exchange_src                   swap(src.rgba, $4..7)
45invoke_color_filter            invoke_color_filter 0x00000002
46exchange_src                   swap(src.rgba, $4..7)
47label                          label 0x00000004
48copy_4_uniforms                color = color1
49copy_4_slots_unmasked          $8..11 = color
50exchange_src                   swap(src.rgba, $8..11)
51invoke_color_filter            invoke_color_filter 0x00000003
52exchange_src                   swap(src.rgba, $8..11)
53label                          label 0x00000005
54mul_4_floats                   $4..7 *= $8..11
55add_4_floats                   $0..3 += $4..7
56copy_4_slots_unmasked          result = $0..3
57splat_2_constants              pt = 0
58copy_2_slots_unmasked          $0..1 = pt
59exchange_src                   swap(src.rgba, $0..3)
60invoke_shader                  invoke_shader 0
61exchange_src                   swap(src.rgba, $0..3)
62label                          label 0x00000007
63label                          label 0x00000006
64copy_4_slots_unmasked          result = $0..3
65copy_2_uniforms                pt₁ = position
66copy_2_slots_unmasked          $4..5 = pt₁
67exchange_src                   swap(src.rgba, $4..7)
68invoke_shader                  invoke_shader 0
69exchange_src                   swap(src.rgba, $4..7)
70copy_2_slots_unmasked          $8..9 = pt₁
71exchange_src                   swap(src.rgba, $8..11)
72invoke_shader                  invoke_shader 0x00000001
73exchange_src                   swap(src.rgba, $8..11)
74label                          label 0x00000009
75mul_4_floats                   $4..7 *= $8..11
76label                          label 0x00000008
77add_4_floats                   $0..3 += $4..7
78copy_4_slots_unmasked          result = $0..3
79splat_2_constants              pt = 0
80copy_2_slots_unmasked          $4..5 = pt
81exchange_src                   swap(src.rgba, $4..7)
82invoke_shader                  invoke_shader 0x00000001
83exchange_src                   swap(src.rgba, $4..7)
84label                          label 0x0000000C
85label                          label 0x0000000B
86copy_4_slots_unmasked          src = $4..7
87copy_4_uniforms                color = color2
88copy_4_slots_unmasked          $4..7 = color
89exchange_src                   swap(src.rgba, $4..7)
90invoke_color_filter            invoke_color_filter 0x00000003
91exchange_src                   swap(src.rgba, $4..7)
92label                          label 0x0000000D
93copy_4_slots_unmasked          dst = $4..7
94copy_4_slots_unmasked          $4..7 = src
95copy_4_slots_unmasked          $8..11 = dst
96load_dst                       dst.rgba = $8..11
97exchange_src                   swap(src.rgba, $4..7)
98invoke_blender                 invoke_blender 0x00000004
99exchange_src                   swap(src.rgba, $4..7)
100label                          label 0x0000000A
101add_4_floats                   $0..3 += $4..7
102copy_4_slots_unmasked          result = $0..3
103copy_2_uniforms                $4..5 = position
104exchange_src                   swap(src.rgba, $4..7)
105invoke_shader                  invoke_shader 0
106exchange_src                   swap(src.rgba, $4..7)
107copy_4_uniforms                $8..11 = color1
108exchange_src                   swap(src.rgba, $8..11)
109invoke_color_filter            invoke_color_filter 0x00000002
110exchange_src                   swap(src.rgba, $8..11)
111add_4_floats                   $4..7 += $8..11
112copy_4_uniforms                $8..11 = color2
113copy_4_uniforms                $12..15 = color1
114load_dst                       dst.rgba = $12..15
115exchange_src                   swap(src.rgba, $8..11)
116invoke_blender                 invoke_blender 0x00000004
117exchange_src                   swap(src.rgba, $8..11)
118sub_4_floats                   $4..7 -= $8..11
119add_4_floats                   $0..3 += $4..7
120copy_4_slots_unmasked          result = $0..3
121load_src                       src.rgba = $0..3
122