Commit Graph
1499 Commits
Author SHA1 Message Date
Cameron Gutman dab3e23cc4 Avoid potential overflow in gamepad sensor report rate period 2026-11-15 01:02:12 -06:00
Cameron Gutman 136610d5fd Fix variable shadowing in BandwidthTracker constructor 2026-11-15 00:57:18 -06:00
Cameron Gutman dd795e35b6 Fix counting of old frames dropped during enqueue 2026-11-15 00:50:22 -06:00
Cameron Gutman ec59857a98 Fix V-Sync wait when frame period was less than 3 ms 2026-11-15 00:48:18 -06:00
Cameron Gutman f924722793 Restart the audio renderer if SDL_QueueAudio() fails 2026-11-15 00:46:56 -06:00
Cameron Gutman bcdd0a2c63 Flush after setting up the wl_surface_frame callback 2026-11-15 00:39:54 -06:00
Cameron Gutman 2d2872b4a3 Disallow separate plane export of YUV444 VAAPI frames
These are not handled properly in the export (or import) paths.
2026-11-15 00:35:36 -06:00
Cameron Gutman b004190a2a Use AV_CEIL_RSHIFT instead of dividing by 2 2026-11-15 00:34:55 -06:00
Cameron Gutman 4e8fc3aead Update AppModel, ComputerModel, and StreamUtil asserts to cover negative indices 2026-11-15 00:33:01 -06:00
Cameron Gutman 2d600c4e6b Fix invalid attributes passed to CVMetalTextureCache 2026-11-15 00:30:52 -06:00
Cameron Gutman bbfcf53f85 Fix missing pl_swapchain_submit_frame() when AVFrame mapping fails 2026-11-15 00:03:55 -06:00
Cameron Gutman 5ff51ead5e Limit the populated queue families to the maximum allowed by FFmpeg 2026-11-14 23:58:45 -06:00
Cameron Gutman 8ebffa5b5b Destroy the Vulkan hwcontext before the underlying objects 2026-11-14 23:57:36 -06:00
Cameron Gutman 3da99d62e5 Check for null return from CGDisplayCopyAllDisplayModes() 2026-11-14 23:18:48 -06:00
Cameron Gutman bae838eeb9 Clear haptic effect ID after destroying it 2026-11-14 23:00:32 -06:00
Cameron Gutman 9fa8b15642 Remove unused m_AudioDisabled member 2026-11-14 23:00:18 -06:00
Cameron Gutman fe5a0aea98 Prevent lost wakupes in Pacer and ComputerManager 2026-11-12 20:40:31 -06:00
Cameron Gutman aad0090d97 Invoke QCoreApplication::quit() on the main thread
This is required to safely synchronize with the main loop.
2026-11-12 20:22:02 -06:00
Cameron Gutman 3fead131a6 Dynamically enable VK_KHR_internally_synchronized_queues for libplacebo v7.387.0
This is now disabled by default in libplacebo and must be explicitly
enabled when the application knows that all other code sharing the
device has been enlightened about the new queue synchronization flags.

Since we know that Gamescope's WSI doesn't handle these new flags
correctly, we will disable internally synchronized queues when
that layer is present. See ValveSoftware/gamescope#2261
2026-11-05 01:55:29 -06:00
Cameron Gutman a6276aa846 Check for unbound texture before registering with CUDA 2026-11-04 23:17:28 -06:00
Cameron Gutman aa54ba2a05 Reject 10-bit and YUV 4:4:4 in the CUDA path
Vulkan Video supports these on all Nvidia GPUs.
2026-11-04 23:12:39 -06:00
Cameron Gutman 1ced9dd9b0 Synchronize several renderer callbacks
Many renderers do not properly synchronize these on their own, so let's do it for them.

HDR and window changes are infrequent enough not to really matter.
2026-10-29 23:55:57 -05:00
Cameron Gutman 10270ca0f6 Move ownership of the overlay callback registration to Pacer
This allows it to synchronize with the lifetime of the rendering context.
2026-10-29 22:54:19 -05:00
Cameron Gutman 017b603972 Add a lock to ensure no overlay callbacks are active during unregistration 2026-10-29 22:43:24 -05:00
Cameron Gutman ac296864ac Fix some error handling in the libplacebo renderer 2026-10-24 22:41:06 -05:00
Cameron Gutman 6fc7e81683 Handle H.264 SPS read/write failure in fixup path 2026-10-24 21:26:32 -05:00
Cameron Gutman 9fee675c91 Fix controller number check for adaptive triggers 2026-10-24 20:27:07 -05:00
Cameron Gutman d606709d83 Add some missing error handling 2026-10-24 19:54:47 -05:00
Cameron Gutman ba700d67ec Fix shadowed member variable with base class 2026-10-24 19:54:47 -05:00
Cameron Gutman 465c41b5c0 Fix uninitialized InitFailureReason field 2026-10-24 19:54:47 -05:00
Cameron Gutman 29a280eb38 Fix return type of EGLRenderer::loadAndBuildShader() 2026-10-24 19:46:14 -05:00
Cameron Gutman fb9daf85ab Keep the VBO alive while the VAO references it 2026-10-24 19:39:58 -05:00
Cameron Gutman df7db4018e Fix some EGL error handling paths 2026-10-24 19:39:58 -05:00
Cameron Gutman bfc6751f0f Fix fd leak in VAAPI KMSDRM codepath 2026-10-24 19:39:58 -05:00
Cameron Gutman 2b690d14ad Initialize VAAPIRenderer class members 2026-10-24 19:39:47 -05:00
Cameron Gutman 4158fa7823 Don't add EGL modifiers for VA images if they aren't set 2026-10-24 18:49:46 -05:00
Cameron Gutman 372887b8a2 Don't copy unpopulated EGLAttribs 2026-10-24 18:49:46 -05:00
Cameron Gutman 0c4f7aefb6 Handle unexpected appVersion/gfeVersion quads 2026-10-24 18:49:46 -05:00
Cameron Gutman 1826d4c232 Fix incorrect mmap() failure check 2026-10-24 18:49:46 -05:00
Cameron Gutman 40f83bd294 Avoid wedging VDPAU renderer if mixer creation fails 2026-10-24 18:49:46 -05:00
Cameron Gutman b709bf5402 Handle musl headers without __NR_riscv_hwprobe defined 2026-10-22 22:14:04 -05:00
Cameron Gutman d79536b56d Only accept usable bounds if they differ from the full bounds
Some platforms (Wayland) just report the full display area, so we
incorrectly assume the entire display is usable for a window.

Fixes #2056
2026-10-22 20:53:30 -05:00
Cameron Gutman 9af0e9f539 Improve robustness and error handling of DXVsyncSource 2026-10-20 00:29:25 -05:00
Cameron Gutman e4db5c2c18 Check for pacing queue emptiness before dequeuing
This shouldn't actually be reachable when the queue
is empty, but we can check anyway to be safe.

Ref: #2054
2026-10-19 00:25:00 -05:00
Brad Smith a2486eaf94 Check elf_aux_info() return value in hasFastAes()
Check the result of elf_aux_info() on FreeBSD and OpenBSD ARM and fall
back to no AES support if the call fails, rather than relying on the
output variable being left untouched.
2026-10-02 23:10:50 -05:00
Cameron Gutman 8369d1a0e1 Reduce gamepad CPU usage on Steam Link
- Gamepad sensors are now disabled by default
- Added a small deadzone to limit excess gamepad input reports
2026-09-27 17:39:10 -05:00
Cameron Gutman c0f62ad64e Distinguish between Enter and Numpad Enter
Fixes #2015
2026-09-26 15:21:11 -05:00
Cameron Gutman b75fe0d932 Reorganize a couple mouse and keyboard functions 2026-09-26 15:01:07 -05:00
Cameron Gutman f743c23663 Fix PixelShaderMinPrecision bitfield comparison 2026-09-07 00:07:10 -05:00
Cameron Gutman e9d77967a6 Replace Nvidia FL 11.1 check with driver version check
The bug is driver-specific rather than GPU-specific.
2026-09-06 22:53:24 -05:00