Skip to content

[GTK] Disable DMABuf renderer for NVIDIA proprietary drivers - #18614

Closed
carlosgcampos wants to merge 1 commit into
WebKit:mainfrom
carlosgcampos:gtk-nvidia-disable-dmabuf-renderer
Closed

carlosgcampos wants to merge 1 commit into
WebKit:mainfrom
carlosgcampos:gtk-nvidia-disable-dmabuf-renderer

Conversation

@carlosgcampos

@carlosgcampos carlosgcampos commented Oct 4, 2023 •

Copy link
Copy Markdown
Contributor

745633e

[GTK] Disable DMABuf renderer for NVIDIA proprietary drivers
https://bugs.webkit.org/show_bug.cgi?id=262607

Reviewed by NOBODY (OOPS!).

Some NVIDIA users are reporting nothing is rendered, so let's just
disable the DMA-BUF renderer until we figure out how to make it work.

* Source/WebKit/UIProcess/gtk/AcceleratedBackingStoreDMABuf.cpp:
(WebKit::isNVIDIA):
(WebKit::AcceleratedBackingStoreDMABuf::rendererBufferMode):

745633e

Misc iOS, tvOS & watchOS macOS Linux Windows
✅ 🧪 style ✅ 🛠 ios ✅ 🛠 mac ✅ 🛠 wpe ✅ 🛠 wincairo
✅ 🛠 ios-sim ✅ 🛠 mac-AS-debug ✅ 🧪 wpe-wk2
✅ 🧪 webkitperl ✅ 🧪 ios-wk2 ✅ 🧪 api-mac ✅ 🛠 gtk
✅ 🧪 ios-wk2-wpt ✅ 🧪 gtk-wk2
✅ 🧪 api-ios ✅ 🧪 mac-wk2 ✅ 🧪 api-gtk
✅ 🛠 tv ❌ 🧪 mac-AS-debug-wk2
✅ 🛠 tv-sim
✅ 🛠 watch
✅ 🛠 watch-sim

https://bugs.webkit.org/show_bug.cgi?id=262607

Reviewed by NOBODY (OOPS!).

Some NVIDIA users are reporting nothing is rendered, so let's just
disable the DMA-BUF renderer until we figure out how to make it work.

* Source/WebKit/UIProcess/gtk/AcceleratedBackingStoreDMABuf.cpp:
(WebKit::isNVIDIA):
(WebKit::AcceleratedBackingStoreDMABuf::rendererBufferMode):
@carlosgcampos
carlosgcampos requested a review from a team as a code owner October 4, 2023 08:19
@carlosgcampos carlosgcampos self-assigned this Oct 4, 2023
@carlosgcampos carlosgcampos added the WebKitGTK Bugs related to the Gtk API layer. label Oct 4, 2023
@webkit-early-warning-system

webkit-early-warning-system commented Oct 4, 2023 •

Copy link
Copy Markdown
Collaborator

if (!platformDisplay)
platformDisplay = WebCore::PlatformDisplaySurfaceless::create();

WebCore::GLContext::ScopedGLContext glContext(WebCore::GLContext::createOffscreen(platformDisplay ? *platformDisplay : WebCore::PlatformDisplay::sharedDisplay()));

@mcatanzaro mcatanzaro Oct 4, 2023 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like WebCore::PlatformDisplaySurfaceless::create never fails, so it should be impossible to ever use the shared display here, right?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right

@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label Oct 4, 2023
@mcatanzaro mcatanzaro removed the merging-blocked Applied to prevent a change from being merged label Oct 4, 2023
@bertogg

bertogg commented Oct 10, 2023

Copy link
Copy Markdown
Contributor

I cherry picked this in Debian (2.42.1-2) but the user says that this is still failing: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1052055#30

@bertogg

bertogg commented Oct 11, 2023

Copy link
Copy Markdown
Contributor

I cherry picked this in Debian (2.42.1-2) but the user says that this is still failing: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1052055#30

This seems to work when the libnvidia-egl-gbm1 package is installed.

raspbian-autopush pushed a commit to raspbian-packages/webkit2gtk that referenced this pull request Oct 18, 2023
raspbian-autopush pushed a commit to raspbian-packages/webkit2gtk that referenced this pull request Oct 18, 2023
raspbian-autopush pushed a commit to raspbian-packages/webkit2gtk that referenced this pull request Oct 18, 2023
raspbian-autopush pushed a commit to raspbian-packages/webkit2gtk that referenced this pull request Nov 16, 2023
raspbian-autopush pushed a commit to raspbian-packages/webkit2gtk that referenced this pull request Nov 21, 2023
raspbian-autopush pushed a commit to raspbian-packages/webkit2gtk that referenced this pull request Dec 14, 2023
raspbian-autopush pushed a commit to raspbian-packages/webkit2gtk that referenced this pull request Dec 14, 2023
raspbian-autopush pushed a commit to raspbian-packages/webkit2gtk that referenced this pull request Dec 19, 2023
raspbian-autopush pushed a commit to raspbian-packages/webkit2gtk that referenced this pull request Dec 19, 2023
@mcatanzaro

Copy link
Copy Markdown
Contributor

So, what do we want to do here?

raspbian-autopush pushed a commit to raspbian-packages/webkit2gtk that referenced this pull request Feb 15, 2024
raspbian-autopush pushed a commit to raspbian-packages/webkit2gtk that referenced this pull request Feb 15, 2024
@sergiomb2

sergiomb2 commented Apr 7, 2024 •

Copy link
Copy Markdown

So, what do we want to do here?

I think we should apply it on Fedora , since September I have this bug export WEBKIT_DISABLE_DMABUF_RENDERER=1 make work for me, markdown plugin of geany, web browsers of biglybt which use eclipse-swt and eclipse web browsers

@mcatanzaro

Copy link
Copy Markdown
Contributor

I think we should apply it on Fedora , since September I have this bug export WEBKIT_DISABLE_DMABUF_RENDERER=1 make work for me, markdown plugin of geany, web browsers of biglybt which use eclipse-swt and eclipse web browsers

Is there a bug report for the problem you're encountering?

This was intended as a workaround for this bug that is already fixed.

@sergiomb2

Copy link
Copy Markdown

I think we should apply it on Fedora , since September I have this bug export WEBKIT_DISABLE_DMABUF_RENDERER=1 make work for me, markdown plugin of geany, web browsers of biglybt which use eclipse-swt and eclipse web browsers

Is there a bug report for the problem you're encountering?

This was intended as a workaround for this bug that is already fixed.

in fedora bugzilla, no , but I can open one , I'm using Fedora 39 and this is not fixed .

I just found the solution after saw the message "AcceleratedSurfaceDMABuf was unable to construct a complete framebuffer" and read https://gitlab.archlinux.org/archlinux/packaging/packages/webkit2gtk/-/issues/1

@mcatanzaro

Copy link
Copy Markdown
Contributor

in fedora bugzilla, no , but I can open one , I'm using Fedora 39 and this is not fixed .

No, a bug report in Red Hat Bugzilla will not help.

The dmabuf feature was released over 6 months ago, in 2.42. We were considering disabling it due to users reporting that it was broken on NVIDIA graphics, but all bug reports have since been fixed, and it's been 6 months now since the feature rolled out, which is a pretty long time. I think you need to report a new bug on WebKit Bugzilla (not Red Hat Bugzilla), WebKitGTK component for the problem you are encountering, so it can be evaluated.

I'm going to close this for now.

@mcatanzaro mcatanzaro closed this Apr 8, 2024
@sergiomb2

Copy link
Copy Markdown

ah maybe is just Fedora 39 that haven't the latest releases , just after upgrade my box from f38 to f39 I found this problem but I had already the problem on F38 ...

raspbian-autopush pushed a commit to raspbian-packages/webkit2gtk that referenced this pull request Jun 5, 2025
raspbian-autopush pushed a commit to raspbian-packages/webkit2gtk that referenced this pull request Jun 19, 2025
raspbian-autopush pushed a commit to raspbian-packages/webkit2gtk that referenced this pull request Aug 19, 2025
raspbian-autopush pushed a commit to raspbian-packages/webkit2gtk that referenced this pull request Aug 19, 2025
raspbian-autopush pushed a commit to raspbian-packages/webkit2gtk that referenced this pull request Oct 1, 2026
raspbian-autopush pushed a commit to raspbian-packages/webkit2gtk that referenced this pull request Oct 8, 2026
raspbian-autopush pushed a commit to raspbian-packages/webkit2gtk that referenced this pull request Oct 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

WebKitGTK Bugs related to the Gtk API layer.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants