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?
best regards, Richard -- Richard.Henwood@arm.com Server Software Eco-System Tel: +1 512 410 9612 IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
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
On Thu, 2020-01-02 at 11:16 -0800, Rob Clark wrote:
On Thu, Jan 2, 2020 at 10:45 AM Richard Henwood < Richard.Henwood@arm.com> wrote:
<snip>
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)
Brilliant! I haven't tested it extensively, but it seems to do the trick :)
Thanks for the background and this work around Rob!
best regards, Richard -- Richard.Henwood@arm.com Server Software Eco-System IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
aarch64-laptops@lists.linaro.org