mirror of
https://github.com/games-on-whales/gst-wayland-display.git
synced 2026-10-15 21:02:00 +00:00
[PR #55] [MERGED] fix(egl): drop the vestigial wl_display bind and its misleading log #56
Labels
No labels
enhancement
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
games-on-whales/gst-wayland-display#56
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/games-on-whales/gst-wayland-display/pull/55
Author: @JBailes
Created: 8/16/2026
Status: ✅ Merged
Merged: 8/16/2026
Merged by: @JBailes
Base:
feat/vulkan-encode← Head:fix/drop-vestigial-egl-bind📝 Commits (1)
c9001bdfix(egl): drop the vestigial wl_display bind and its misleading log📊 Changes
1 file changed (+13 additions, -6 deletions)
View changed files
📝
wayland-display-core/src/comp/mod.rs(+13 -6)📄 Description
bind_wl_display's only product is theEGLBufferReaderbehindBufferType::Egl, and nothing reads it.EGLBufferReaderandimport_egl_bufferappear nowhere in the crate; the only client-buffer import routes areimport_dmabufathandlers/dmabuf.rs:20andhandlers/wl_drm.rs:18.No client can reach that path either. smithay's
buffer_type()resolvesDma,ShmandSinglePixelbeforeEgl, and every buffer-carrying global this compositor advertises lands in one of the first three. Its ownwl_drminitialises theWlBufferwith aDmabufas user data, so mesa's wl_drm buffers resolve asDma, which is why the comment below already notes wl_drm does not need the bind. That is a reading of the dispatch order rather than an observation of a client:tests/fixture.rs:38runsRenderTarget::Software, so no test reaches this branch at all.The bind therefore enabled an import path with no possible client, and its only observable effect was the log. On render nodes lacking
EGL_WL_bind_wayland_displayit printed "Failed to initialize EGL hardware-acceleration" on every start, reading as a fallback to software rendering that never happened. The success arm claimed acceleration had been enabled by a call that enables nothing used. Removing both removes the confusion at its source instead of rewording it.Dropping the call also makes the
mutonrendererredundant, since nothing else in that scope takes it mutably before it moves intoState.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.