Cameron Gutman
fad197fdce
Move heavy SystemProperties initialization operations off the main thread
...
This dramatically improves startup performance on slow devices.
2026-01-08 19:09:54 -06:00
Cameron Gutman
cda65ab58d
Use a D3D11Fence to wait to start the next frame until the previous frame is finished
2026-01-07 19:04:15 -06:00
Cameron Gutman
9ffe5218d5
Hoist the logic to keep an AVFrame reference up to Pacer
2026-01-07 17:50:43 -06:00
Cameron Gutman
ed98f256e8
Fix typo
2026-01-06 02:14:45 -06:00
Cameron Gutman
8aec35a650
Allow primary planes to be overlays for video underlays
2026-01-06 02:12:32 -06:00
Cameron Gutman
a3237b741c
Support underlay planes by turning off unused active planes
2026-01-06 01:59:34 -06:00
Cameron Gutman
377409f313
Fix oversized DRM dumb buffer for 4:2:0 uploads
2026-01-06 00:49:49 -06:00
Cameron Gutman
80ddd5ba13
Fix software upload for DRM renderer with non-720p resolutions
...
The buffer allocated for the 720p test frame was left around
and we would attempt to reuse it even if the stream had frames
of a different size.
2026-01-06 00:35:36 -06:00
Cameron Gutman
4a547eb05e
Add fourcc_mod_is_vendor() definition for older headers
2026-01-05 23:00:31 -06:00
Cameron Gutman
1c6ed8f390
Remove atomic test-only commit
...
This is currently race-prone because nothing is synchronizing
between other Qt and SDL uses of DRM master, so it can cause
false negatives if we can't retake master ourselves.
2026-01-05 21:50:31 -06:00
Cameron Gutman
0a58af4fa1
Allow plane selection overrides using environment variables
2026-01-05 21:27:52 -06:00
Cameron Gutman
50a094c917
Fix percentage math
2026-01-05 21:01:23 -06:00
Cameron Gutman
d14cf984f4
Print flip stats after the DrmRenderer is destroyed
2026-01-05 20:52:53 -06:00
Cameron Gutman
13d9d79fe3
Implement support for adjusting zpos to make planes visible
2026-01-05 20:39:12 -06:00
Cameron Gutman
70d4f24455
Fix pending frame leak on destruction
2026-01-05 19:15:58 -06:00
Cameron Gutman
705cd3ddc4
Allow rendering to a cursor plane via opt-in
...
This is required for some Rockchip devices running vendor kernels.
2026-01-05 19:08:22 -06:00
Cameron Gutman
ea5b062da3
Set VRR, BPC, and content type properties
2026-01-05 18:58:21 -06:00
Cameron Gutman
e6f41f5574
Improve DRM renderer plane compatibility testing
...
For atomic drivers, use a test-only commit to fully exercise the
path that we will be using when rendering.
For legacy drivers, mask the variable portion of Broadcom modifiers
before matching with IN_FORMATS.
2026-01-05 18:20:39 -06:00
Cameron Gutman
9af6222039
Update moonlight-common-c to fix leak
2026-01-05 00:24:16 -06:00
Cameron Gutman
476414ea71
Fix a rare race where an overlay surface can leak
2026-01-04 22:29:12 -06:00
Cameron Gutman
83d770cdba
Prefer BT2020_YCC to allow chroma subsampling
2026-01-04 22:16:52 -06:00
Cameron Gutman
25e2d39e26
Fix copy-paste mistake in 8726c1
2026-01-04 21:52:12 -06:00
Cameron Gutman
bd32370b6d
Fix libdrm return value vs errno confusion
...
libdrm is inconsistent between returning -1 with an errno set
and just returning -errno as the return value. Figuring out which
behavior a given libdrm function has require reading the source :/
2026-01-04 21:50:40 -06:00
Cameron Gutman
8726c1c7d0
Bring back atomic async page flip support
...
Now that we're referencing the AVFrame to keep the buffers from
being reused during scanout, this should hopefully work better.
2026-01-04 19:34:13 -06:00
Cameron Gutman
34881599f5
Reference the AVFrame while the backing DMA-BUFs are used for scanout
...
This prevents tearing and other artifacts caused by the decoder
writing to a DMA-BUF that is currently being displayed.
2026-01-04 18:47:00 -06:00
Cameron Gutman
de0fb72424
av_buffer_create() copies the pointer not the data
2026-01-04 18:24:20 -06:00
Cameron Gutman
46c76534bc
Use AVBufferRefs to keep EGLImages and DRM FDs around for the lifetime of the frame
2026-01-04 18:06:24 -06:00
Cameron Gutman
67cba9e397
Add branding colors to appstream metadata
2026-01-04 00:38:54 -06:00
Cameron Gutman
2ab72375c6
Fix additional appstream metadata linter warnings
2026-01-04 00:16:20 -06:00
Sabri Ünal
d3118bd677
metadata: Tidy up
...
- Drop categories that are already provided by the desktop file
- Group important information together
- Add vcs-browser URL to point to the source code repository
2026-01-03 23:56:03 -06:00
Cameron Gutman
b8c3658c42
Skip modifier check if the frame doesn't have any modifiers
2026-01-03 02:53:44 -06:00
Cameron Gutman
d3fb52c5a0
Check modifiers support in IN_FORMATS property
...
As it turns out, there *are* in fact hardware vendors dumb enough
to ship V4L2 decoders that output buffers which are unsupported by
any plane on their display hardware. By checking modifiers, we can
still fall back to GLES on GL_IS_SLOW=1 builds in this case.
2026-01-03 02:43:15 -06:00
Cameron Gutman
7924a5b6a7
Reduce mDNS log spam from hosts with many addresses
2026-01-03 01:14:50 -06:00
Cameron Gutman
2972022ced
Remove async and non-blocking page flip support
...
It doesn't work well in practice for a few major reasons:
- It can result in the decoder writing on DMA-BUFs being used by the display
- It can generate page flip events that collide with Qt/SDL
- It can stall the decoder if the DMA-BUF has a fence on it from the display driver
2026-01-03 00:41:14 -06:00
Cameron Gutman
c0846155c3
Fix page flipping bugs
2026-01-02 20:01:54 -06:00
Cameron Gutman
ac6dadffc6
Use page flip events to correctly synchronize with async flips
2026-01-02 19:47:43 -06:00
Cameron Gutman
745ac34b15
Improve page flipping and modifier handling in DrmRenderer
2026-01-02 18:44:18 -06:00
Cameron Gutman
5f89636ed7
Improve robustness of DRM property value handling
2026-01-02 02:06:11 -06:00
Cameron Gutman
46d58e55a3
Add macro for printing FourCC values
2026-01-02 01:46:20 -06:00
Cameron Gutman
be460970a8
Remove use of DMA_BUF_IOCTL_SYNC
...
It's only necessary on "real" DMA-BUFs, not dumb buffers.
2026-01-02 01:30:03 -06:00
Cameron Gutman
d50ba06321
Implement DRM atomic renderer with overlay support
...
Fixes #1733
2026-01-02 01:24:35 -06:00
Cameron Gutman
b108684edc
Handle missing bitstream restrictions element in H.264 SPS fixup
...
NVENC on the 591.59 driver seems to not include the bitstream
restrictions element, which renders our attempt to set the
max_dec_frame_buffering value ineffective. Handle this by
providing inserting default bitstream restrictions if one
is not present.
2025-12-30 17:12:37 -06:00
Cameron Gutman
b6d10a34c8
Update blocking swap buffer opt-out comment
2025-12-30 15:43:31 -06:00
Cameron Gutman
232ff0b3c6
Revert "Remove opt-out of blocking swap buffers logic for KMSDRM"
...
This significantly hurts performance on slower GPUs by preventing
the pipelining required when frametimes exceed the video frame
interval.
This reverts commit c26e437f40 .
2025-12-30 15:39:47 -06:00
Cameron Gutman
c5960c3e15
Always use display scaling with the KMSDRM video driver
2025-12-30 15:39:32 -06:00
Cameron Gutman
b48cbd76f5
Fix implicit fallthrough warning
2025-12-30 15:32:15 -06:00
Cameron Gutman
ceef792f04
Use display scaling to improve performance on slow GPUs
...
This dramatically improves performance for lower resolution
streams on slow GPUs when using the GL and Vulkan renderers.
2025-12-30 15:00:47 -06:00
Cameron Gutman
f3f1d56e8d
Fix EGLFS detection when a compositor is running on wayland-0 in another VT
2025-12-30 00:04:55 -06:00
Cameron Gutman
39e24e9c8c
Add qt6-wayland to list of required Debian packages
2025-12-29 22:57:35 -06:00
Cameron Gutman
c26e437f40
Remove opt-out of blocking swap buffers logic for KMSDRM
...
We don't set SDL_HINT_VIDEO_DOUBLE_BUFFER since b1c77ff .
2025-12-29 16:51:03 -06:00