51 lines
2.9 KiB
Plaintext
51 lines
2.9 KiB
Plaintext
1. store_src_rg coords = src.rg
|
|
2. init_lane_masks CondMask = LoopMask = RetMask = true
|
|
3. store_condition_mask $19 = CondMask
|
|
4. branch_if_no_active_lanes branch_if_no_active_lanes +6 (label 2 at #10)
|
|
5. copy_4_constants $20..23 = testMatrix3x3(0..3)
|
|
6. copy_4_constants $24..27 = testMatrix3x3(4..7)
|
|
7. copy_constant $28 = testMatrix3x3(8)
|
|
8. shuffle $22..23 = ($22..23)[1 2]
|
|
9. copy_4_slots_masked [resizeMatrix].result = Mask($20..23)
|
|
10. label label 0x00000002
|
|
11. copy_constant $24 = 0x3F800000 (1.0)
|
|
12. copy_constant $25 = 0x40000000 (2.0)
|
|
13. copy_constant $26 = 0x40800000 (4.0)
|
|
14. copy_constant $27 = 0x40A00000 (5.0)
|
|
15. cmpeq_4_floats $20..23 = equal($20..23, $24..27)
|
|
16. bitwise_and_2_ints $20..21 &= $22..23
|
|
17. bitwise_and_int $20 &= $21
|
|
18. zero_slot_unmasked $0 = 0
|
|
19. merge_condition_mask CondMask = $19 & $20
|
|
20. branch_if_no_active_lanes branch_if_no_active_lanes +23 (label 1 at #43)
|
|
21. copy_4_constants $1..4 = testMatrix3x3(0..3)
|
|
22. copy_4_constants $5..8 = testMatrix3x3(4..7)
|
|
23. copy_constant $9 = testMatrix3x3(8)
|
|
24. shuffle $3..4 = ($3..4)[1 2]
|
|
25. copy_4_slots_masked [resizeMatrix].result = Mask($1..4)
|
|
26. label label 0x00000003
|
|
27. zero_slot_unmasked $5 = 0
|
|
28. copy_constant $6 = 0x3F800000 (1.0)
|
|
29. shuffle $3..9 = ($3..9)[2 0 1 2 2 2 3]
|
|
30. copy_constant $10 = 0x3F800000 (1.0)
|
|
31. copy_constant $11 = 0x40000000 (2.0)
|
|
32. zero_slot_unmasked $12 = 0
|
|
33. copy_constant $13 = 0x40800000 (4.0)
|
|
34. copy_constant $14 = 0x40A00000 (5.0)
|
|
35. zero_3_slots_unmasked $15..17 = 0
|
|
36. copy_constant $18 = 0x3F800000 (1.0)
|
|
37. cmpeq_n_floats $1..9 = equal($1..9, $10..18)
|
|
38. bitwise_and_4_ints $2..5 &= $6..9
|
|
39. bitwise_and_2_ints $2..3 &= $4..5
|
|
40. bitwise_and_int $2 &= $3
|
|
41. bitwise_and_int $1 &= $2
|
|
42. copy_slot_masked $0 = Mask($1)
|
|
43. label label 0x00000001
|
|
44. load_condition_mask CondMask = $19
|
|
45. swizzle_4 $0..3 = ($0..3).xxxx
|
|
46. copy_4_constants $4..7 = colorRed
|
|
47. copy_4_constants $8..11 = colorGreen
|
|
48. mix_4_ints $0..3 = mix($4..7, $8..11, $0..3)
|
|
49. copy_4_slots_unmasked [main].result = $0..3
|
|
50. load_src src.rgba = [main].result
|