Changeset 268992 in webkit


Ignore:
Timestamp:
Oct 26, 2020 12:57:35 PM (3 years ago)
Author:
Fujii Hironori
Message:

[TextureMapper] min(genIType) isn't supported for GLSL ES < 3.0
https://bugs.webkit.org/show_bug.cgi?id=218164

Reviewed by Don Olmstead.

Nothing is drawn in AC mode of WinCairo port since r268923.
r268923 added a shader code of using min of int type which is
supported since GLSL ES 3.0.

  • platform/graphics/texmap/TextureMapperShaderProgram.cpp: Added fragmentTemplateES to define int type of min.

(WebCore::TextureMapperShaderProgram::create):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r268990 r268992  
     12020-10-26  Fujii Hironori  <Hironori.Fujii@sony.com>
     2
     3        [TextureMapper] min(genIType) isn't supported for GLSL ES < 3.0
     4        https://bugs.webkit.org/show_bug.cgi?id=218164
     5
     6        Reviewed by Don Olmstead.
     7
     8        Nothing is drawn in AC mode of WinCairo port since r268923.
     9        r268923 added a shader code of using min of int type which is
     10        supported since GLSL ES 3.0.
     11
     12        * platform/graphics/texmap/TextureMapperShaderProgram.cpp: Added fragmentTemplateES to define int type of min.
     13        (WebCore::TextureMapperShaderProgram::create):
     14
    1152020-10-26  Sam Weinig  <weinig@apple.com>
    216
  • trunk/Source/WebCore/platform/graphics/texmap/TextureMapperShaderProgram.cpp

    r268923 r268992  
    225225        in vec2 v_transformedTexCoord;
    226226        in vec4 v_nonProjectedPosition;
     227    );
     228#else
     229// min(genIType) isn't supported for GLSL ES < 3.0.
     230static const char* fragmentTemplateES =
     231    STRINGIFY(
     232        int min(int x, int y)
     233        {
     234            if (x < y)
     235                return x;
     236            return y;
     237        }
    227238    );
    228239#endif
     
    577588#if USE(OPENGL_ES)
    578589    fragmentShaderBuilder.append(fragmentTemplateLT320Vars);
     590    fragmentShaderBuilder.append(fragmentTemplateES);
    579591#else
    580592    if (glVersion >= 320)
Note: See TracChangeset for help on using the changeset viewer.