Forums - Adreno 420 WebGL compiler crashes

1 post / 0 new
Adreno 420 WebGL compiler crashes
dave_e
Join Date: 3 Aug 15
Posts: 1
Posted: Mon, 2015-08-03 02:31

We're having consistent problems with our (playcanvas) shaders crashing Chrome and other browsers on Android devices using the Adreno 420 (in particular Note 4 and Nexus 6).

There is a bug with the Chrome team: https://code.google.com/p/chromium/issues/detail?id=498947 which states the problem has been fixed in driver updates for devices but have yet to be rolled out.

My question is, how can we work around this bug until the drivers are updated? We have clients for whom browser crashes on flagship devices such as Note 4/Nexus 6 is not acceptable. 

Can someone from Qualcomm give us some more information about what is causing the crashes so we can attempt to work around them?

From the bug above, this is the simplest shader that causes a crash:

precision highp float;
uniform int renderType;
uniform sampler2D texMap;
void main() {
  vec2 uv = vec2(0.0, 0.0);
  if( renderType == 0 ) {
    gl_FragColor = texture2D( texMap, uv );
  } else {
    vec4 texture = texture2D( texMap, uv );
    gl_FragColor = texture;
  }
}

 

  • Up0
  • Down0

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.