Commit graph

1664 commits

Author SHA1 Message Date
Joshua Ashton
5af08640a7 steamcompmgr: Fix HDR feedback only updating on mode change 2023-04-20 23:03:17 +01:00
Jeremy Selan
359817db3a steamcompmgr: Minor ITM changes 2023-04-20 23:03:17 +01:00
Jeremy Selan
977e06f721 steamcompmgr: Delete GAMESCOPE_DISPLAY_HDR_FORCE_WIDE_GAMMUT_FOR_SDR 2023-04-20 23:03:17 +01:00
Jeremy Selan
5815dc3fb4 steamcompmgr: GAMESCOPE_SDR_ON_HDR_CONTENT_BRIGHTNESS atom should be float, not int 2023-04-20 23:03:17 +01:00
Jeremy Selan
482cc2c874 steamcompmgr: Renamed GAMESCOPE_HDR_SDR_CONTENT_BRIGHTNESS -> GAMESCOPE_SDR_ON_HDR_CONTENT_BRIGHTNESS 2023-04-20 23:03:17 +01:00
Joshua Ashton
b529bba53a steamcompmgr: Add GAMESCOPE_COLOR_APP_WANTS_HDR_FEEDBACK
Tell Steam whether this app is wanting HDR or not.

(Whether it's submitting  HDR buffers)
2023-04-20 23:03:17 +01:00
Jeremy Selan
77095cb553 color_helpers: Refined sdr gamut generation on wide gamut displays 2023-04-20 23:03:17 +01:00
Jeremy Selan
4b4f85f4d1 drm: Added envvar to override internal display colorimetry
GAMESCOPE_INTERNAL_COLORIMETRY_OVERRIDE
2023-04-20 23:03:17 +01:00
Jeremy Selan
60fb2711e1 drm: Additional edid logging 2023-04-20 23:03:17 +01:00
Jeremy Selan
a8a660f7d0 color_helpers, drm: separated eotf from the colorimetry definition 2023-04-20 23:03:17 +01:00
Jeremy Selan
48bd08be88 color_helpers: fix brightness mapping for sdr -> sdr 2023-04-20 23:03:17 +01:00
Joshua Ashton
54486ac5de drm: Fix disabling HDR on an external HDR display since new color toys 2023-04-20 23:03:17 +01:00
Jeremy Selan
c6ce0599f3 color_helpers: Alternate (preferred) check for c++ 2020 2023-04-20 23:03:17 +01:00
Jeremy Selan
039c3228aa steamcompmgr: Use proper EOTF enums for the 3dlut overrides 2023-04-20 23:03:17 +01:00
Joshua Ashton
005bec4495 steamcompmgr: Use index 0 for lut overrides
No more linear now.
2023-04-20 23:03:17 +01:00
Joshua Ashton
38d2f04ba9 steamcompmgr: Fix lut3d output override check 2023-04-20 23:03:17 +01:00
Joshua Ashton
e810317e95 steamcompmgr, drm: Add support for disjoint content and output encoding colorspaces 2023-04-20 23:03:17 +01:00
Joshua Ashton
88f91ab68f color_helpers: Fix undefined EOTF for result 2023-04-20 23:03:17 +01:00
Joshua Ashton
c3feda285b color_helpers: Don't lerp EOTF 2023-04-20 23:03:17 +01:00
Joshua Ashton
be27c87627 color_helpers: Fix EOTF of displaycolorimetry_widegamutgeneric_gamma22 2023-04-20 23:03:17 +01:00
Joshua Ashton
ef7642faae drm: Don't use DEGAMMA_TF + SHAPER_TF when we don't need scaling
Introduces weird banding artifacts rn, ugh.
2023-04-20 23:03:17 +01:00
Joshua Ashton
8a39621d3a drm: Hook up BLEND_TF and stuff for proper space for degamma 2023-04-20 23:03:17 +01:00
Jeremy Selan
2e42bbfa08 color_helpers: WIP on making calcColorTransform PQ aware 2023-04-20 23:03:17 +01:00
Joshua Ashton
90de845cfc steamcompmgr: Fix setting lut override multiple times 2023-04-20 23:03:17 +01:00
Joshua Ashton
15014f401e drm: Fix override LUTs 2023-04-20 23:03:17 +01:00
Joshua Ashton
fc1c9900e1 color_helpers: Fix scaling SDR content, bodge for PQ + 3D LUT for now 2023-04-20 23:03:17 +01:00
Joshua Ashton
a5d00f436c drm, steamcompmgr: Move color mgmt state out of DRM
Want to use this in composite too
2023-04-20 23:03:17 +01:00
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