Commit graph

1537 commits

Author SHA1 Message Date
Joshua Ashton
a980d912aa drm, color_helpers: Initial support for mixed HDR + SDR planes on both external HDR and fallback SDR when undocked 2023-04-20 23:03:17 +01:00
Joshua Ashton
0f323d63d7 color_helpers: Add pq EOTF math 2023-04-20 23:03:17 +01:00
Joshua Ashton
faee3be9de drm: Move to per-plane 3D LUT + Shaper
Need to do some cleanup here and version checks before merging.
2023-04-20 23:03:17 +01:00
Jeremy Selan
ef41d9f672 color_helpers: Update color math 2023-04-20 23:03:17 +01:00
Jeremy Selan
5ce316fa57 subprojects: Added glm dependency 2023-04-20 23:03:17 +01:00
Joshua Ashton
dc60eba246 color, drm: Initial work on new color mgmt system
Deprecates all other color properties for new color mgmt system using 3D LUTs
2023-04-20 23:03:17 +01:00
Benjamin Cheng
1310315c95 sdlwindow: set icon_surface to nullptr after free
Prevents a double free that might occur if icon_surface is not allocated
in the conditional following the free.
2023-04-07 09:41:00 +02:00
Benjamin Cheng
7d255f1dba sdlwindow: fix HiDPI handling
SDL_GetWindowSize() gives width and height in screen coordinates which
should be used for scaling mouse movements. The output size we should be
rendering should be in pixels which is given by
SDL_GetWindowSizeInPixels().

Fixes #796.
2023-04-07 06:03:50 +02:00
Joshua Ashton
5d9ecd462e drm: Fix issue on kernels without VALVE1_ HDR extensions 2023-03-22 01:21:23 +00:00
Joshua Ashton
f891e3dc4c drm: Add g_bForceDisableTransferFunctions debug switch
Can quickly toggle in GDB for debugging AMDGPU display out
2023-03-19 00:20:41 +00:00
Joshua Ashton
9b5f5f907c shaders: Make blur conditional more obvious 2023-03-18 15:12:29 +00:00
Joshua Ashton
30937177fa rendervulkan: Fix blur with HDR content 2023-03-18 15:11:45 +00:00
Joshua Ashton
b3649f4afa steamcompmgr: Don't treat LAYERED windows as dropdowns if they have WS_EX_APPWINDOW 2023-03-18 14:35:20 +00:00
Joshua Ashton
f541527253 wlserver: Remove accidental debug logging 2023-03-16 23:40:17 +00:00
Joshua Ashton
6e2c06eed8 wlserver: Clean up content overrides on surface destroy + support multiple servers for it 2023-03-16 23:36:51 +00:00
Joshua Ashton
f0fd4e6301 wlserver: Be more robust when changing override windows 2023-03-16 23:23:00 +00:00
Joshua Ashton
5015271ba0 steamcompmgr: Fix crash with nested HDR 2023-03-16 22:44:00 +00:00
Joshua Ashton
251ae8ede3 drm: Cleanup HDR TF + MULT state 2023-03-16 22:18:59 +00:00
Joshua Ashton
06e78f5ed6 drm: Support HDR_MULT for SDR surfaces 2023-03-16 22:18:59 +00:00
Joshua Ashton
2548f3375c drm: Support for HDR with planes with VALVE1_ extension 2023-03-16 22:18:59 +00:00
Joshua Ashton
6f9759ab49 rendervulkan: Add logging to vulkan_acquire_screenshot_texture 2023-03-13 05:28:46 +00:00
Joshua Ashton
7d5a01d9ac sdlwindow: Fix crash on some icon-less windows 2023-03-13 05:28:46 +00:00
Sefa Eyeoglu
5a672f09aa build: update libdisplay-info pkgconfig filename
Fixes Plagman/gamescope#823

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2023-03-12 12:28:35 +01:00
Joaquín Ignacio Aramendía
f5edba5853
Add support for DSI internally rotated displays (e.g. GPD)
Co-authored-by: Matthew Anderson <ruinairas1992@gmail.com>
2023-03-10 17:02:51 +01:00
Joshua Ashton
6395e9f3ff sdlwindow: Fix icon loading 2023-03-10 04:03:24 +00:00
Joshua Ashton
66ee6458bb vr_session: fix icon loading 2023-03-10 03:52:30 +00:00
Joshua Ashton
521e294327 vr_session, vblankmanager: Sleep vr vblank manager thread if invisible
Don't framesync or anything when invisible. Put the vblank thread to sleep until visible again with a condition variable.
2023-03-10 03:39:58 +00:00
Joshua Ashton
6e96514c7a vr_session: Add g_bOpenVRForceInvisible debug switch 2023-03-08 03:48:47 +00:00
Joshua Ashton
659e55011f steamcompmgr: Default SDR content brightness to 203 2023-03-06 21:31:11 +00:00
Simon Ser
9a0b7f7341 drm: add support for headless setup
Use a fallback mode size and refresh rate, to avoid surprising
our clients too much and allow screen recording to continue
working.
2023-03-06 20:09:31 +01:00
Simon Ser
95aa255e29 drm: fix return values in drm_prepare() 2023-03-06 19:54:11 +01:00
Sefa Eyeoglu
1331b9f81e vr_session: fix openvr include
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2023-03-05 11:05:08 +01:00
Sefa Eyeoglu
b430c5b9a0 build: bump libdisplay-info maximum version
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2023-03-05 10:52:56 +01:00
Sefa Eyeoglu
557e56bade build: fix openvr dependency name
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2023-03-04 18:10:29 +00:00
Joshua Ashton
3df0a99cca drm: Only use SDR metadata blob for HDR enabled screens 2023-03-04 18:08:38 +00:00
Joshua Ashton
297245cd7e steamcompmgr: FSR bodges for HDR 2023-03-02 17:55:15 +00:00
Joshua Ashton
280588f1e3 steamcompmgr: Allow scanout for some HDR cases 2023-03-02 17:32:06 +00:00
Joshua Ashton
8480280aad drm,wlserver: Fix lifetime of hdr metadata blobs 2023-03-02 17:18:10 +00:00
Joshua Ashton
06586a6d12 steamcompmgr: Disable tearing if Mangoapp, etc is up (hack)
Avoids bad stutter for now.
2023-03-02 16:32:23 +00:00
Joshua Ashton
140df9a81d HACK: drm: Always send HDR metadata
Can't just set to 0 due to kernel bugs where it will not reset back to SDR.
2023-03-02 16:09:40 +00:00
Newbyte
26831017e9 steamcompmgr: Fix typo in comment
Fixes a3dc37f262
2023-03-02 11:19:46 +01:00
Joshua Ashton
a3dc37f262 steamcompmgr: Add workaround for Disgaea PC (405900)
This app doesn't like using the controller unless its clicked on first.
2023-02-23 05:07:37 +00:00
Simon Ser
9600bbaadf build: bump libliftoff to 0.4.0 2023-02-20 22:07:30 +01:00
Joshua Ashton
2a09fbcb69 steamcompmgr: Replicate EDID path to all servers 2023-02-14 00:57:47 +00:00
Joshua Ashton
b7f5ce94ec steamcompmgr: return server ID in xwayland server feedback 2023-02-11 19:59:09 +00:00
Joshua Ashton
1afea5eb86 steamcompmgr: Add support for growing/destroying xwaylands on the fly 2023-02-11 19:57:32 +00:00
Lilium
57f005716b itm: avoid division by zero for BT.2446 Method A 2023-02-11 18:17:50 +00:00
msxmine
b1254d5340 Check for nullptr connector in drm_prepare
Fixes gamescope sometimes segfaulting for me.
2023-02-11 16:11:56 +00:00
Joshua Ashton
8a3fa88c7d wlserver: Treat XKB_KEY_XF86PowerOff as a forbidden key 2023-02-04 06:21:00 +00:00
Joshua Ashton
b4aff264e4 steamcompmgr: xdg-shell fixes 2023-02-04 06:16:24 +00:00