Commit graph

1650 commits

Author SHA1 Message Date
Joshua Ashton
5e7006205f layer: Handle multiple swapchains in QueuePresentKHR 2023-08-17 20:16:20 +01:00
Joshua Ashton
4c788db880 steamcompmgr: Force composite when fading
Otherwise we end up with test commits failing which is a waste of time.
2023-08-16 23:44:51 +01:00
Jan Beich
9e34c3e104 layer: add missing header after 540323ac37
layer/VkLayer_FROG_gamescope_wsi.cpp:53:5: error: use of undeclared identifier 'pread'
    pread(fd, &overrideValue, sizeof(overrideValue), 0);
    ^
2023-08-16 10:20:13 +02:00
Jeremy Selan
6fb83bfc5d color: added atom to control chromatic adaptation mode
(default of bradford is unchanged)
2023-08-15 12:15:36 -07:00
Jeremy Selan
7470845fda [color]: removed errant printf 2023-08-15 09:45:45 -07:00
Jeremy Selan
da12ca6b76 [color]: Added support for overriding the apparent (virtual) white point
Also, updated the steamdeck colorimetry to measured values
2023-08-15 09:38:35 -07:00
Jeremy Selan
f2e925f5d6 fix clang build break (attempt #2) 2023-08-10 16:45:25 -07:00
Jeremy Selan
a2ad21c0b2 fix compilation on clang 2023-08-10 14:18:48 -07:00
Jeremy Selan
52caca952d mute format-truncation compile warning 2023-08-10 11:47:26 -07:00
FlightlessMango
1e180d7195 glslang: check for renamed bin
In version 12.3.0 glslangValidator was renamed to glslang.
This commit checks for both the old glslangValidator name and the new glslang
2023-08-09 18:11:46 +02:00
Joshua Ashton
540323ac37 layer: Support for frame limiter 2023-08-08 16:43:01 +01:00
Joshua Ashton
50eaf75317 Add info about gamescope packages 2023-07-27 08:18:12 +01:00
psykose
e0c9e75e7f fix null handle for nul surface
not every platform uses nullptr, some use 0LL or ((void*)0) directly.

closes #917
2023-07-26 10:29:39 +02:00
Joshua Ashton
318fd75952 steamcompmgr: When windows get remapped and were our focus, make sure to re-set them as input focus
Fixes keyboard input in an unreleased game.
2023-07-25 06:51:58 +01:00
Joshua Ashton
587c6a64b4 wlserver: Handle reassignment of wl_id for x11 windows 2023-07-25 06:14:24 +01:00
Joshua Ashton
ebf007b63b drm: Better fallbacks for external HDR metadata 2023-07-25 03:27:48 +01:00
Joshua Ashton
23446dd7f3 steamcompmgr: Don't fill in app frametime to mangoapp
Need to separate this out better later.
2023-07-24 21:46:17 +01:00
Stephan Lachnit
eb42671200 Fix compilation with GCC13
See also https://bugs.debian.org/1037668
2023-07-21 08:29:37 +02:00
Stephan Lachnit
946c75d14a steamcompmgr: fix typo 2023-07-21 08:22:38 +02:00
Joshua Ashton
2dd8236c22 rendervulkan: Use native gamut wideness by default 2023-07-10 01:23:57 +01:00
Joshua Ashton
feb4451a20 steamcompmgr: Disable force composite when we would partial 2023-07-09 20:03:35 +01:00
Joshua Ashton
3712ecdb3d steamcompmgr: Disable partial composition (for now until some critera are met) 2023-07-09 20:02:20 +01:00
Joshua Ashton
98335c8709 drm: Use 10-bit partial composite formats if possible 2023-07-09 20:02:20 +01:00
Joshua Ashton
1bc1e724dd main: Fix CI 2023-07-09 20:02:20 +01:00
Joshua Ashton
5e99ecb46b rendervulkan: Seamless full -> deferred composition switch 2023-07-09 20:02:20 +01:00
Joshua Ashton
31eefd41a0 rendervulkan: Move reset for commandbuffer to main thread for partial composition 2023-07-09 20:02:20 +01:00
Joshua Ashton
70626628f9 rendervulkan: Pick right first partial composite image 2023-07-09 20:02:20 +01:00
Joshua Ashton
6a6df4ea95 rendervulkan: Use same memory backing for partial and complete composition
Despite different formats, alias the memory backing to save space.
2023-07-09 20:02:20 +01:00
Joshua Ashton
bc3c4bc275 steamcompmgr, rendervulkan: Implement deferred partial composition
Use partial composition for overlays when we have too many layers.
2023-07-09 20:02:20 +01:00
Joshua Ashton
d5aec88630 drm: Fallback displayColorimetry for broken EDIDs
May fix: #864
2023-07-09 19:23:23 +01:00
Joshua Ashton
183792e2ec drm: Free blob in fail path 2023-07-09 19:02:25 +01:00
Michal Pawlowski
1b9b736257 steamcompmgr: Fix enabling VRR from commandline
The --adaptive-sync flag is not used during vrr atom update
so it's value get's overwritten with 0 thus disabling the VRR
in the process.
2023-06-29 14:45:30 +01:00
Joshua Ashton
9b70b3b9e3 drm: Handle not having CRTC 3D LUT/Shaper 2023-06-23 04:32:02 +01:00
Joshua Ashton
789cfc9057 main, steamcompmgr: Add support for --headless
No window system, vr, drm, etc required.

Can be used to stream headlessly with Pipewire or screenshots, etc.

Can also just be used as a utility to run applications that need a GUI
or window envrionment despite just being an installer or something.
2023-06-16 17:51:24 +01:00
Fabian Arndt
7a1fe2def3 Added option to set upscaler filter
- Removed options to set filters explicitly (-n, -U, -Y)
- Changed scaler option from -s to -S
- Reordered usage slightly
2023-06-14 11:37:10 +01:00
Fabian Arndt
a7c60be193 Added option to set upscale scaler
Removed option to explicitly force integer scaler
2023-06-14 11:37:10 +01:00
Joshua Ashton
8866c02dc7 vr_session: Add vrsession_set_dashboard_visible 2023-06-06 22:58:38 +01:00
Joshua Ashton
98a0aab039 steamcompmgr, rendervulkan: Only capture baseplanes in screenshots
Also avoid performing color mgmt on screenshots (outside of HDR screenshot fallbacks)
2023-06-06 03:12:18 +01:00
Joshua Ashton
20ee2b5468 rendervulkan: Fix half-texel offset for blits 2023-06-06 02:08:08 +01:00
Joshua Ashton
f2d11727be rendervulkan: Fix RGB blits using incorrect colorspace 2023-06-06 02:08:08 +01:00
Joshua Ashton
70c2e68d3d rendervulkan: Mark screenshot textures as storage compatible 2023-06-06 01:58:15 +01:00
FlightlessMango
33fb485e7a mangoapp: report output size to mangoapp
This way mangoapp knows what resolution gamescope is running and can
adjust accordingly. This should resolve issues on various handhelds
where `--force-orientation left` caused incorrect rendering of mangoapp
2023-05-29 10:59:36 +01:00
Joshua Ashton
f673ddffd1 pipewire: Only create up to 8 buffers
This is how many we have to allocate.

Thanks to @Starsam80 for catching this
2023-05-28 19:39:07 +01:00
Joshua Ashton
05361b1f39 drm: Don't update internal screen orientation if we don't have one
Fixes: #889
2023-05-28 17:40:41 +01:00
Joshua Ashton
9282a715a1 wlserver: Disable trackpad on external screen by default
This was just an experiment of mine.

This does fix the rotation thing though.
2023-05-27 17:35:17 +01:00
Joshua Ashton
e8b60578b5 wlserver, drm: Make touchscreen function as trackpad when using external screen 2023-05-27 17:31:53 +01:00
Joshua Ashton
56f4263b3a drm, wlserver: Always use internal screen rotation for touchscreen orientation
Lets you use Deck screen as touchpad type thing when docked.
2023-05-27 16:40:05 +01:00
Joshua Ashton
2f3029f5e0 rendervulkan: Fix screenshots since moving to 10-bit.
This dispatch was incorrect subgroup wise. IDK how this code ever worked.
2023-05-27 16:33:32 +01:00
Joshua Ashton
847da568df steamcompmgr: Remake output images on res change
This got lost in the format stuff.

Closes: #883
2023-05-27 16:06:43 +01:00
Joshua Ashton
29710fb2ec vr_session: Support for trackpad scrolling 2023-05-26 17:06:44 +01:00