From 33ebc3761f76509277fe39ca7f7117ffe7c8ada5 Mon Sep 17 00:00:00 2001 From: Wujian Sun Date: Fri, 20 Dec 2024 15:26:18 +0800 Subject: [PATCH] Increase the error tolerance for RGB5_A1 format Mali GPU need slightly extra tolerance. Fixes #3705. Signed-off-by: Wujian Sun --- .../2.0.0/conformance2/reading/read-pixels-from-fbo-test.html | 2 +- sdk/tests/conformance2/reading/read-pixels-from-fbo-test.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/conformance-suites/2.0.0/conformance2/reading/read-pixels-from-fbo-test.html b/conformance-suites/2.0.0/conformance2/reading/read-pixels-from-fbo-test.html index 0bbc966708..ad5ec526eb 100644 --- a/conformance-suites/2.0.0/conformance2/reading/read-pixels-from-fbo-test.html +++ b/conformance-suites/2.0.0/conformance2/reading/read-pixels-from-fbo-test.html @@ -140,12 +140,12 @@ case gl.RG8: case gl.RGB8: case gl.RGBA8: - case gl.RGB5_A1: case gl.SRGB8_ALPHA8: case gl.RGB10_A2: srcIsNormalized = true; tol = 6; break; + case gl.RGB5_A1: case gl.RGB565: // RGB565 needs slightly extra tolerance, at least on Google Pixel. crbug.com/682753 srcIsNormalized = true; diff --git a/sdk/tests/conformance2/reading/read-pixels-from-fbo-test.html b/sdk/tests/conformance2/reading/read-pixels-from-fbo-test.html index c06e9988ed..5d0b240bcf 100644 --- a/sdk/tests/conformance2/reading/read-pixels-from-fbo-test.html +++ b/sdk/tests/conformance2/reading/read-pixels-from-fbo-test.html @@ -119,12 +119,12 @@ case gl.RG8: case gl.RGB8: case gl.RGBA8: - case gl.RGB5_A1: case gl.SRGB8_ALPHA8: case gl.RGB10_A2: srcIsNormalized = true; tol = 6; break; + case gl.RGB5_A1: case gl.RGB565: // RGB565 needs slightly extra tolerance, at least on Google Pixel. crbug.com/682753 srcIsNormalized = true;