Roll skcms from 5d9221d28f9c to bc467ef5ef35 (1 revision) https://skia.googlesource.com/skcms.git/+log/5d9221d28f9c..bc467ef5ef35 2024-06-11 aaclarke@google.com Fixed BGRA10XR to have padding be 6 *least* significant bits. If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/skcms-skia-autoroll Please CC brianosman@google.com,bungeman@google.com on the revert to ensure that a human is aware of the problem. To file a bug in Skia: https://bugs.chromium.org/p/skia/issues/entry To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md Cq-Include-Trybots: skia/skia.primary:Canary-Chromium Tbr: brianosman@google.com,bungeman@google.com Change-Id: I21a795a22fd167012f3a9aa6196ca5eb5bfeeb04 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/864683 Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com> Bot-Commit: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
diff --git a/modules/skcms/src/Transform_inl.h b/modules/skcms/src/Transform_inl.h index b9c27ac..c2c10c7 100644 --- a/modules/skcms/src/Transform_inl.h +++ b/modules/skcms/src/Transform_inl.h
@@ -906,11 +906,11 @@ static constexpr float min = -0.752941f; static constexpr float max = 1.25098f; static constexpr float range = max - min; - U64 rgba = load<U64>(src + 8*i); - r = cast<F>((rgba >> 0) & 0x3ff) * (1/1023.0f) * range + min; - g = cast<F>((rgba >> 16) & 0x3ff) * (1/1023.0f) * range + min; - b = cast<F>((rgba >> 32) & 0x3ff) * (1/1023.0f) * range + min; - a = cast<F>((rgba >> 48) & 0x3ff) * (1/1023.0f) * range + min; + U64 rgba = load<U64>(src + 8 * i); + r = cast<F>((rgba >> (0+6)) & 0x3ff) * (1/1023.0f) * range + min; + g = cast<F>((rgba >> (16+6)) & 0x3ff) * (1/1023.0f) * range + min; + b = cast<F>((rgba >> (32+6)) & 0x3ff) * (1/1023.0f) * range + min; + a = cast<F>((rgba >> (48+6)) & 0x3ff) * (1/1023.0f) * range + min; } STAGE(load_161616LE, NoCtx) {
diff --git a/modules/skcms/version.sha1 b/modules/skcms/version.sha1 index aac43a8..f972e7a 100755 --- a/modules/skcms/version.sha1 +++ b/modules/skcms/version.sha1
@@ -1 +1 @@ -5d9221d28f9cbbe6db0b745b36d4e5efc09e168e +bc467ef5ef35f013ba76faadb15220ef5b26ea9f