skia2/tests/sksl/runtime/ConstPreservation.skvm
Brian Osman 86e85537fe Test that we propagate 'const' to the GPU backend of runtime effects
Currently, only one of three uses (local variables) does this correctly.

Bug: skia:11716
Change-Id: Iad11e8e5998fcc7caee4d438e0558c5d4e2b1821
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/382277
Reviewed-by: John Stiles <johnstiles@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
2021-03-09 23:26:00 +00:00

9 lines
168 B
Plaintext

2 registers, 6 instructions:
0 r0 = splat 0 (0)
1 r1 = splat 3F800000 (1)
loop:
2 store32 ptr1 r0
3 store32 ptr2 r1
4 store32 ptr3 r0
5 store32 ptr4 r1