Closed Bug 1728473 Opened 3 years ago Closed 3 years ago

Hardware vsync for EGL/X11/Nvidia

Categories

(Core :: Graphics: WebRender, enhancement)

enhancement

Tracking

()

RESOLVED DUPLICATE of bug 1640779

People

(Reporter: rmader, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

As we still don't have an EGL equivalent for the GLX vsync source, in bug 1669275 we allowed Mesa drivers to continue using it. The limitation Mesa was because the prop. Nvidia driver would crash when doing so.

Recent Nvidia drivers (470 series) seem to have fixed that issue - at least for visual selection. Lets try to also enable GLX vsync for them again.

As we still don't have an EGL equivalent for the GLX vsync source, in
bug 1669275 / D92466 we allowed Mesa drivers to continue using it.
The limitation Mesa was because the prop. Nvidia driver would crash when doing so.

Recent Nvidia drivers (470 series) seem to have fixed that issue -
at least for visual selection. Lets try to also enable GLX vsync for
them again.

Here's a try build: https://treeherder.mozilla.org/jobs?repo=try&revision=bc30755bae0a39e541104114ff0e8cfeb5aaec38

walmartguy: could you try it once it's finished and you have time? You'll find a direct download link there at "B" -> "Artifacts" -> "target.tar.bz2"

Flags: needinfo?(tempel.julian)

It unfortunately falls back to software WR:

[GFX1-]: Failed to create EGLContext!: 0x3000
[GFX1-]: Failed to create EGLContext!: 0x3000
[GFX1-]: Failed GL context creation for hardware WebRender: true
[GFX1-]: Failed to create EGLContext!: 0x3000
[GFX1-]: Failed to create EGLContext!: 0x3000
[GFX1-]: Failed GL context creation for hardware WebRender: true
[GFX1-]: Failed to create EGLContext!: 0x3000
[GFX1-]: Failed to create EGLContext!: 0x3000
[GFX1-]: Failed GL context creation for hardware WebRender: true
[GFX1-]: Failed to get shared GL context
[GFX1-]: Failed to create EGLContext!: 0x3000
[GFX1-]: Failed to create EGLContext!: 0x3000
[GFX1-]: Failed GL context creation for hardware WebRender: true
[GFX1-]: Failed to create EGLContext!: 0x3000
[GFX1-]: Failed to create EGLContext!: 0x3000
[GFX1-]: Failed GL context creation for WebRender: 0
[GFX1-]: FEATURE_FAILURE_WEBRENDER_INITIALIZE_UNSPECIFIED
[GFX1-]: Failed to connect WebRenderBridgeChild.
[GFX1-]: Fallback WR to SW-WR

Flags: needinfo?(tempel.julian)

https://www.khronos.org/registry/OpenGL/extensions/SGI/GLX_SGI_video_sync.txt
Naive non-programmer question: Could these EGL extensions help?

Severity: -- → S3

Just wanted to drop a note that the EGL backend also works with version 465.31 of the Nvidia driver.

Summary: [EGL] Allow GLX vsync on non-mesa drivers as well → Hardware vsync for EGL/X11/Nvidia

For the record, unfortunately what I wrote in comment 0 was wrong:

Recent Nvidia drivers (470 series) seem to have fixed that issue - at least for visual selection. Lets try to also enable GLX vsync for them again.

In fact it was me who just made us use the right FindVisual() on nvidia in bug 1717816. So mixed GLX/EGL still seems broken on nvidia and we need a clean EGL only solution (bug 1640779).

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: