Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6048e94e authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Fix shader calculation equations that causes SDR grayscale mess-up."...

Merge "Fix shader calculation equations that causes SDR grayscale mess-up." into tm-dev am: df2e6cb2

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/18236885



Change-Id: I361332ab74cd18c9a241899c484170ca2f447605
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents ffa3bebc df2e6cb2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -78,7 +78,7 @@ void generateEOTF(ui::Dataspace dataspace, std::string& shader) {
            shader.append(R"(

                float EOTF_sRGB(float srgb) {
                    return srgb <= 0.08125 ? srgb / 4.50 : pow((srgb + 0.099) / 1.099, 0.45);
                    return srgb <= 0.08125 ? srgb / 4.50 : pow((srgb + 0.099) / 1.099, 1 / 0.45);
                }

                float3 EOTF_sRGB(float3 srgb) {