mirror of
https://github.com/games-on-whales/gst-wayland-display.git
synced 2026-10-15 21:02:00 +00:00
[PR #39] [CLOSED] feat(cuda): dmabuftocuda for Nvidia NV12 encode #40
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#40
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/39
Author: @JBailes
Created: 6/22/2026
Status: ❌ Closed
Base:
feat/vulkan-encode← Head:feat/nv12-dmabuftocuda📝 Commits (1)
8f77fdffeat(cuda): dmabuftocuda element for NV12 dmabuf to CUDA upload📊 Changes
10 files changed (+715 additions, -18 deletions)
View changed files
📝
README.md(+15 -0)📝
gst-plugin-wayland-display/Cargo.toml(+1 -1)➕
gst-plugin-wayland-display/src/dmabuftocuda/imp.rs(+375 -0)➕
gst-plugin-wayland-display/src/dmabuftocuda/mod.rs(+17 -0)📝
gst-plugin-wayland-display/src/lib.rs(+4 -0)📝
gst-plugin-wayland-display/src/waylandsrc/imp.rs(+28 -13)📝
gst-plugin-wayland-display/tests/encode.rs(+21 -0)📝
wayland-display-core/src/utils/allocator/cuda/mod.rs(+158 -1)📝
wayland-display-core/src/utils/allocator/mod.rs(+86 -0)📝
wayland-display-core/src/utils/renderer/mod.rs(+10 -3)📄 Description
Nvidia path. Stacks on #37.
waylanddisplaysrc ! dmabuftocuda ! nvh265enc. Behind the cuda feature.
dmabuftocuda does the late NV12 dmabuf to CUDA upload for nvenc. EGLImage and CUDA registration cached per ring fd, so per frame is just the copy. Sink negotiates NV12 only, so the source can't fixate RGBA and panic. Also fixes the cuda feature wiring (broken on stable) and a context teardown double-unref. The new code is behind the cuda feature.
Tested to EOS, 20 frames:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.