[avif] Normalize uploaded R16 values correctly.
We need to expand values to fill the R16 range despite the texture type being labeled as "unorm". This copies the same method we use for R16 video uploads. Tests show the compiler does a reasonable job of optimizing this loop with SIMD; it's still faster than the F16 path, but a few hundred microseconds slower than the previous CopyPlay_16 path. R=pkasting, wtc Fixed: 1112436 Change-Id: Ie049297937be9c9f8f934e35581e2e4575f4b1a5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2341666 Commit-Queue: Dale Curtis <dalecurtis@chromium.org> Auto-Submit: Dale Curtis <dalecurtis@chromium.org> Reviewed-by:Peter Kasting <pkasting@chromium.org> Reviewed-by:
Wan-Teh Chang <wtc@google.com> Cr-Commit-Position: refs/heads/master@{#795763}
Showing
Please register or sign in to comment