Changeset 262091 in webkit


Ignore:
Timestamp:
May 22, 2020 7:26:29 PM (4 years ago)
Author:
commit-queue@webkit.org
Message:

[ANGLE - iOS] webgl/1.0.3/conformance/extensions/ext-sRGB.html is failing
https://bugs.webkit.org/show_bug.cgi?id=212277

Patch by Kenneth Russell <kbr@chromium.org> on 2020-05-22
Reviewed by Dean Jackson.

Source/ThirdParty/ANGLE:

Properly translate GL_EXT_sRGB enums to ES 3.0 enums when
GL_EXT_sRGB is not supported.

  • src/libANGLE/renderer/gl/formatutilsgl.cpp:

(rx::nativegl::GetNativeInternalFormat):
(rx::nativegl::GetNativeFormat):

LayoutTests:

Remove failure expectation for the layout test on iOS.

  • platform/ios/TestExpectations:
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r262086 r262091  
     12020-05-22  Kenneth Russell  <kbr@chromium.org>
     2
     3        [ANGLE - iOS] webgl/1.0.3/conformance/extensions/ext-sRGB.html is failing
     4        https://bugs.webkit.org/show_bug.cgi?id=212277
     5
     6        Reviewed by Dean Jackson.
     7
     8        Remove failure expectation for the layout test on iOS.
     9
     10        * platform/ios/TestExpectations:
     11
    1122020-05-22  Kenneth Russell  <kbr@chromium.org>
    213
  • trunk/LayoutTests/platform/ios/TestExpectations

    r262060 r262091  
    34763476webkit.org/b/207858 fast/canvas/webgl/tex-image-and-sub-image-2d-with-video.html [ Pass Failure ]
    34773477webkit.org/b/207858 webgl/1.0.3/conformance/context/context-lost-restored.html [ Pass Failure ]
    3478 webkit.org/b/207858 webgl/1.0.3/conformance/extensions/ext-sRGB.html [ Pass Failure ]
    34793478webkit.org/b/207858 webgl/1.0.3/conformance/glsl/misc/shader-struct-scope.html [ Pass Failure ]
    34803479webkit.org/b/207858 webgl/1.0.3/conformance/misc/uninitialized-test.html [ Pass Failure ]
  • trunk/Source/ThirdParty/ANGLE/ChangeLog

    r262074 r262091  
     12020-05-22  Kenneth Russell  <kbr@chromium.org>
     2
     3        [ANGLE - iOS] webgl/1.0.3/conformance/extensions/ext-sRGB.html is failing
     4        https://bugs.webkit.org/show_bug.cgi?id=212277
     5
     6        Reviewed by Dean Jackson.
     7
     8        Properly translate GL_EXT_sRGB enums to ES 3.0 enums when
     9        GL_EXT_sRGB is not supported.
     10
     11        * src/libANGLE/renderer/gl/formatutilsgl.cpp:
     12        (rx::nativegl::GetNativeInternalFormat):
     13        (rx::nativegl::GetNativeFormat):
     14
    1152020-05-22  Kenneth Russell  <kbr@chromium.org>
    216
  • trunk/Source/ThirdParty/ANGLE/src/libANGLE/renderer/gl/formatutilsgl.cpp

    r262074 r262091  
    541541            result = internalFormat.sizedInternalFormat;
    542542        }
    543         else if (features.unsizedsRGBReadPixelsDoesntTransform.enabled &&
    544                  internalFormat.colorEncoding == GL_SRGB)
    545         {
    546             // Work around some Adreno driver bugs that don't read back SRGB data correctly when
    547             // it's in unsized SRGB texture formats.
    548             result = internalFormat.sizedInternalFormat;
     543        else if (internalFormat.colorEncoding == GL_SRGB)
     544        {
     545            if (features.unsizedsRGBReadPixelsDoesntTransform.enabled)
     546            {
     547                // Work around some Adreno driver bugs that don't read back SRGB data correctly when
     548                // it's in unsized SRGB texture formats.
     549                result = internalFormat.sizedInternalFormat;
     550            }
     551            else if (!functions->hasGLESExtension("GL_EXT_sRGB"))
     552            {
     553                // Unsized sRGB internal formats are unlikely to be supported by the
     554                // driver. Transform them to sized internal formats.
     555                if (internalFormat.internalFormat == GL_SRGB ||
     556                    internalFormat.internalFormat == GL_SRGB_ALPHA_EXT)
     557                {
     558                    result = internalFormat.sizedInternalFormat;
     559                }
     560            }
    549561        }
    550562        else if ((internalFormat.internalFormat == GL_DEPTH_COMPONENT ||
     
    633645    else if (functions->isAtLeastGLES(gl::Version(3, 0)))
    634646    {
    635         if (features.unsizedsRGBReadPixelsDoesntTransform.enabled)
     647        if (features.unsizedsRGBReadPixelsDoesntTransform.enabled ||
     648            !functions->hasGLESExtension("GL_EXT_sRGB"))
    636649        {
    637650            if (format == GL_SRGB)
     
    640653            }
    641654
    642             if (format == GL_SRGB_ALPHA)
     655            if (format == GL_SRGB_ALPHA_EXT)
    643656            {
    644657                result = GL_RGBA;
Note: See TracChangeset for help on using the changeset viewer.