Having issues trying to use VAAPI on Firefox

Before v.80 hit the stable FF release I tried Webrender + VAAPI on Firefox Dev Edition and it worked like a charm, but I just used it to test for a couple of days. When it finally got to the official release, I installed it and got Compositing back to “Basic”, but VAAPI worked perfectly. Now the browser started chugging a couple of times and I decided to properly check about:support and try to fix it.

  • Without the environmental flag MOZ_X11_EGL=1 everything seems perfect, Webrender is shown as the compositing method, WebGL drivers are all there, but the browser feels really sluggish, and looking better at the about:support page shows:

WEBRENDER
opt-in by default: WebRender is an opt-in feature
available by user: Force enabled by pref
WEBRENDER_QUALIFIED
available by default
blocklisted by env: No qualified hardware

Focus on the “blocklisted by env: No qualified hardware”, I’m running the latest NVIDIA proprietary optimus drivers (maybe Optimus has something to do with it???) on a setup with an Intel HD 630 and a GTX 1050Ti, where most of the time it’s running on the NVIDIA card due to me using an external monitor with it.

  • Using MOZ_X11_EGL=1, as stated in the beginning, everything starts being kinda smooth again, but as I check about:support, compositing is back to “Basic”, I get no WebGL drivers, and the following errors:

(#0) Error Failed to create EGLContext!: 0x3000
(#1) Error Failed to create EGLContext!: 0x3000
(#2) Error Failed GL context creation for WebRender: 0
(#3) Error Failed to connect WebRenderBridgeChild.
(#4) Error Failed to create EGLContext!: 0x3000
(#5) Error Failed to create EGLContext!: 0x3000
(#6) Error [OPENGL] Failed to init compositor with reason: FEATURE_FAILURE_OPENGL_CREATE_CONTEXT
(#7) Error Failed to create EGLContext!: 0x3000
(#8) Error Failed to create EGLContext!: 0x3000
(#9) Error [OPENGL] Failed to init compositor with reason: FEATURE_FAILURE_OPENGL_CREATE_CONTEXT
(#10) Error Failed to create EGLContext!: 0x3000
(#11) Error Failed to create EGLContext!: 0x3000
(#12) Error [OPENGL] Failed to init compositor with reason: FEATURE_FAILURE_OPENGL_CREATE_CONTEXT
(#13) Error Failed to create EGLContext!: 0x3000
(#14) Error Failed to create EGLContext!: 0x3000
(#15) Error [OPENGL] Failed to init compositor with reason: FEATURE_FAILURE_OPENGL_CREATE_CONTEXT

At this point, I don’t know what I can do to make everything work together 100%.

I would rather say, you should better write a bug report on the Bugzilla of Mozilla since it is the developer version.

It’s with both the main release and with the developer edition, but I will keep looking for a solution, the Bugzilla report is a nice idea.

1 Like

Unless you start Firefox with PRIME, Firefox will be running on your integrated GPU (likely Intel) and thus might not be qualified.

1 Like

Forgot to mention on the description of the post, my setup runs 100% of the time with an external monitor alongside the laptop integrated one, so I’m running optimus basically 100% of the time on the NVIDIA card.

1 Like