1. store_src_rg coords = src.rg | |
2. init_lane_masks CondMask = LoopMask = RetMask = true | |
3. copy_constant $4 = inputVal(0) | |
4. log2_float $4 = log2($4) | |
5. copy_constant $5 = expected(0) | |
6. cmpeq_float $4 = equal($4, $5) | |
7. copy_2_constants $5..6 = inputVal(0..1) | |
8. log2_float $5 = log2($5) | |
9. log2_float $6 = log2($6) | |
10. copy_2_constants $7..8 = expected(0..1) | |
11. cmpeq_2_floats $5..6 = equal($5..6, $7..8) | |
12. bitwise_and_int $5 &= $6 | |
13. bitwise_and_int $4 &= $5 | |
14. copy_3_constants $5..7 = inputVal(0..2) | |
15. log2_float $5 = log2($5) | |
16. log2_float $6 = log2($6) | |
17. log2_float $7 = log2($7) | |
18. copy_3_constants $8..10 = expected(0..2) | |
19. cmpeq_3_floats $5..7 = equal($5..7, $8..10) | |
20. bitwise_and_int $6 &= $7 | |
21. bitwise_and_int $5 &= $6 | |
22. bitwise_and_int $4 &= $5 | |
23. copy_4_constants $5..8 = inputVal | |
24. log2_float $5 = log2($5) | |
25. log2_float $6 = log2($6) | |
26. log2_float $7 = log2($7) | |
27. log2_float $8 = log2($8) | |
28. copy_4_constants $9..12 = expected | |
29. cmpeq_4_floats $5..8 = equal($5..8, $9..12) | |
30. bitwise_and_2_ints $5..6 &= $7..8 | |
31. bitwise_and_int $5 &= $6 | |
32. bitwise_and_int $4 &= $5 | |
33. zero_slot_unmasked $5 = 0 | |
34. copy_constant $6 = expected(0) | |
35. cmpeq_float $5 = equal($5, $6) | |
36. bitwise_and_int $4 &= $5 | |
37. zero_slot_unmasked $5 = 0 | |
38. copy_constant $6 = 0x3F800000 (1.0) | |
39. copy_2_constants $7..8 = expected(0..1) | |
40. cmpeq_2_floats $5..6 = equal($5..6, $7..8) | |
41. bitwise_and_int $5 &= $6 | |
42. bitwise_and_int $4 &= $5 | |
43. zero_slot_unmasked $5 = 0 | |
44. copy_constant $6 = 0x3F800000 (1.0) | |
45. copy_constant $7 = 0x40000000 (2.0) | |
46. copy_3_constants $8..10 = expected(0..2) | |
47. cmpeq_3_floats $5..7 = equal($5..7, $8..10) | |
48. bitwise_and_int $6 &= $7 | |
49. bitwise_and_int $5 &= $6 | |
50. bitwise_and_int $4 &= $5 | |
51. zero_slot_unmasked $5 = 0 | |
52. copy_constant $6 = 0x3F800000 (1.0) | |
53. copy_constant $7 = 0x40000000 (2.0) | |
54. copy_constant $8 = 0x40400000 (3.0) | |
55. copy_4_constants $9..12 = expected | |
56. cmpeq_4_floats $5..8 = equal($5..8, $9..12) | |
57. bitwise_and_2_ints $5..6 &= $7..8 | |
58. bitwise_and_int $5 &= $6 | |
59. bitwise_and_int $4 &= $5 | |
60. branch_if_no_active_lanes_eq branch +3 (label 0 at #63) if no lanes of $4 == 0xFFFFFFFF | |
61. copy_4_constants $0..3 = colorGreen | |
62. jump jump +3 (label 1 at #65) | |
63. label label 0x00000000 | |
64. copy_4_constants $0..3 = colorRed | |
65. label label 0x00000001 | |
66. load_src src.rgba = $0..3 |