On Thu, Jan 2, 2020 at 10:45 AM Richard Henwood Richard.Henwood@arm.com wrote:
Hi All,
I'm looking at WebGL 2 on Firefox on my Lenovo C630. It seems that 'WebGL 1 Driver Renderer' is happy reporting 'freedreno -- FD630' and WebGL 1 Driver Version '3.1 Messa 19.2.1'.
However, for WebGL 2, Firefox reports:
WebGL creation failed:
- tryNativeGL
- Exhausted GL driver options.
... and marking driver version as '-'.
I've played with forcing WebGL and disabling the Firefox sandbox so it can see various bits of the system, but it hasn't helped. Any suggestions?
It seems, that despite webgl 2.0 only requiring gles 3.0, when the browser is built for desktop gl, it seems to require a somewhat higher gl version... firefox *appears* to be looking for gl3.2. (Even though we expose GL_ARB_ES3_compatibility, which seems like it should be a sufficient check).
Force overriding the exposed GL version seems to do the trick:
MESA_GL_VERSION_OVERRIDE=3.2 firefox http://webglsamples.org/WebGL2Samples/
(that said, I think we should be pretty close to gl3.2 or possibly gl3.3.. so a reasonably chance we have that by mesa 20.0)
BR, -R