[Webkit-unassigned] [Bug 238111] New: ANGLE Metal: error during glLinkProgram (Internal error compiling shader with Metal backend)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Mar 19 06:03:47 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=238111

            Bug ID: 238111
           Summary: ANGLE Metal: error during glLinkProgram (Internal
                    error compiling shader with Metal backend)
           Product: WebKit
           Version: WebKit Local Build
          Hardware: Mac (Intel)
                OS: macOS 11
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: ANGLE
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: noblemaster at live.com
                CC: dino at apple.com, kbr at google.com, kkinnunen at apple.com

I am receiving the following error when calling "glLinkProgram" (so here I am):

> Internal error compiling shader with Metal backend.
> Please submit this shader, or website as a bug to https://bugs.webkit.org

I am trying compile and link an OpenGL ES 2.0 shader via ANGLE to Metal 
on Mac OS X. The same shader works fine via OpenGL ES directly (Mac OS X 
without ANGLE to Metal). Also, the same shader works fine for ANGLE to 
DirectX (Windows 10).

Something goes wrong when trying to link the shader via ANGLE to Metal!? 

**** VERTEX SHADER PART: 

#ifdef GL_ES                                         
  precision mediump float;                           
  #define TEXP mediump                               
  #define COLP lowp                                  
#else                                                
  #define TEXP                                       
  #define COLP                                       
#endif                                               
attribute vec4 a_pos;                                
attribute TEXP vec2 a_tex_uv;                        
attribute COLP vec4 a_col;                           
varying TEXP vec2 v_tex_uv;                          
varying COLP vec4 v_col;                             
void main()                                          
{                                                    
   gl_Position = a_pos;                              
   v_tex_uv = a_tex_uv;                              
   v_col = a_col;                                    
}                                                    

**** FRAGMENT SHADER PART:

#ifdef GL_ES                                         
  precision mediump float;                           
  #define TEXP mediump                               
  #define COLP lowp                                  
#else                                                
  #define TEXP                                       
  #define COLP                                       
#endif                                               
uniform sampler2D s_tex;                             
uniform float u_val;                                 
varying TEXP vec2 v_tex_uv;                          
varying COLP vec4 v_col;                             
void main()                                           
{                                                     
  gl_FragColor = texture2D(s_tex, v_tex_uv);          
  gl_FragColor *= v_col;                              
}                                                     
\

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220319/b0a20299/attachment.htm>


More information about the webkit-unassigned mailing list