Skip to content

Commit

Permalink
Increase the error tolerance for RGB5_A1 format
Browse files Browse the repository at this point in the history
Mali GPU need slightly extra tolerance.

Fixes KhronosGroup#3705.

Signed-off-by: Wujian Sun <wujian.sun_1@nxp.com>
  • Loading branch information
WujianSun committed Dec 20, 2024
1 parent 2010c61 commit 33ebc37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 33ebc37

Please sign in to comment.