Commit Graph
196 Commits
Author SHA1 Message Date
Geoffrey McRae 1ec92a943d [idd] implement config reload 2026-07-23 09:43:59 +10:00
Geoffrey McRae 1da457affe [idd] never add the extraMode to the EDID
Doing so causes windows to treat a new EDID as a new monitor
2026-07-23 09:43:59 +10:00
Geoffrey McRae 4d3636dba5 [idd] avoid release frame timeouts during replug
Drop frames when the LGMP queue is full instead of blocking
while holding an IddCx surface. Always finish every
acquired frame, including duplicate frame numbers, so
replug teardown cannot trigger the release-frame watchdog.
2026-07-23 09:43:59 +10:00
Geoffrey McRae 2e616ddf79 [idd] fix failure to initialize variables 2026-07-23 09:43:59 +10:00
Geoffrey McRae e6ac8a2b75 [idd] keep the generated EDID immutable
Generate the EDID once during adapter initialization and update only the
live mode list when resolutions change.

Changing the EDID during a monitor replug causes Windows to identify it
as a different monitor, losing the existing display configuration.
Reusing the original EDID preserves the monitor identity while still
allowing dynamic modes to be advertised through IddCx.
2026-07-23 09:43:59 +10:00
Geoffrey McRae 041ae0e9f4 [idd] publish frames after copy submission
Submit the D3D12 copy before exposing the frame through LGMP, preventing
clients from waiting on work that has not yet been queued. Track the
last published buffer separately for safe subscriber resends and handle
submission failures.
2026-07-23 09:43:59 +10:00
Geoffrey McRae 845c612d0f [idd/client/obs] hdr: wire up the SdrWhiteLevel from the capture 2026-07-23 09:43:59 +10:00
Geoffrey McRae f2b45646d7 [idd] hdr: correct the BT.709 to BT.2020 conversion 2026-07-23 09:43:59 +10:00
Geoffrey McRae f9a77048ab [obs] fix HDR support to properly convert from PQ 2026-07-23 09:43:59 +10:00
Geoffrey McRae 4dd9d11cca [idd] use the actual surface colorspace instead of guessing 2026-07-23 09:43:59 +10:00
Geoffrey McRae e245256860 [idd] collapse duplicate messages to the latest event only 2026-07-23 09:43:59 +10:00
Geoffrey McRae 67d29242ba [idd] debounce resolution changes 2026-07-23 09:43:59 +10:00
Geoffrey McRae f702576820 [idd] stop using IddCxMonitorUpdateModes(2)
While it would make much more sense to use these then a full replug to
change modes, Microsoft have not properly implemented the API to clear
the cached monitor mode states internally, making these calls useless.

Revert to just replugging the device on mode change
2026-07-23 09:40:49 +10:00
Geoffrey McRae b97a0b79f1 [idd] don't rebuild the monitor from inside the old monitor's context 2026-07-16 16:13:24 +10:00
Geoffrey McRae fbf564f2e1 [idd] prevent races from corrupting the mode list and edid 2026-07-16 15:26:21 +10:00
Geoffrey McRae 0140a3f6fb [client/idd] hdr: fix incorrect tone mapping knee bug 2026-07-16 10:48:10 +10:00
Geoffrey McRae e502af7d9d Revert "[idd/client] correct HDR luminance when PQ conversion is in use"
This reverts commit 05d8bc5311.
2026-07-16 09:58:44 +10:00
Geoffrey McRae 05d8bc5311 [idd/client] correct HDR luminance when PQ conversion is in use 2026-07-16 09:34:02 +10:00
Geoffrey McRae ff1631da67 [idd] hdr: dont advertise non hdr formats as hdr 2026-07-16 05:34:09 +10:00
Geoffrey McRae 82d36a858f [idd] fix the HDR16 to HDR10 post processor
`linear` is a HLSL keyword
2026-07-16 05:34:09 +10:00
Geoffrey McRae 9047c26694 [idd] hdr: fix incorrect struct usage 2026-07-16 05:34:09 +10:00
Geoffrey McRae 8301ec5ae5 [idd] cleanup IDD version guards for HDR support 2026-07-16 05:34:09 +10:00
Geoffrey McRae 9721fc8c7e [idd] whitespace fixes 2026-07-16 05:34:09 +10:00
Geoffrey McRae 0c653c1fb2 [idd] add support to return HDR metadata to clients 2026-07-16 05:34:09 +10:00
Quantum bc96319b94 [idd] driver: report Windows 11 OS name correctly
Also refactored the versioning code to be more modular.

The old registry code was turned into a fallback and simplified, since
C++11 and newer guarantees the byte past the end of the std::string is
valid for null-terminator writes.
2026-07-15 17:22:58 +10:00
Quantum 66d8a9691e [idd] helper: update notification icon to reflect GPU availability 2026-06-07 07:04:00 +10:00
Quantum 89ddab9d57 [idd] helper: use Resources.h for icon IDs 2026-06-07 07:04:00 +10:00
Quantum 3aa6492760 [idd] driver: implement reading in pipe server
Following the example of CPipeClient in the helper, this switches to using
overlapped I/O for easy interruption and cancellation that doesn't quite
work with CancelSynchronousIO.
2026-06-06 02:30:43 +10:00
Quantum 0664e510a2 [idd] helper: send message over pipe when settings changed 2026-06-06 02:30:43 +10:00
Quantum bff890f635 [idd] helper: use per-monitor DPI awareness v2
This avoids weird issues when scaling menus and non-client areas
dynamically.
2026-06-06 02:29:33 +10:00
Quantum 2317801411 [idd] helper: update icon tip to reflect GPU state 2026-06-06 02:29:14 +10:00
Quantum 140de3199b [idd] helper: defer no GPU notification when needed
No GPU notifications are not possible before the notification icon is
created. Since the helper could start before explorer.exe (and often does
on reboot), the notification would fail.

This commit adds logic to refer the notification and we send it immediately
when successfully creating the notification icon.
2026-06-06 02:29:14 +10:00
Quantum c8f4898815 [idd] helper: allow changing preferred mode 2026-06-06 02:28:26 +10:00
Geoffrey McRae 462f638c12 [idd] project: cleanup vcxproj.filters mess 2026-06-04 01:45:35 +10:00
Geoffrey McRae 37bb89f490 [idd] ipc/helper: notify the helper if a software renderer is in use 2026-06-04 01:45:35 +10:00
Geoffrey McRae 7b2c60b267 Merge branch 'master' into idd-no-gpu-warn 2026-06-03 21:35:08 +10:00
Quantum 708ed2cbae [idd] helper: add mode list reset button 2026-06-03 21:32:35 +10:00
Quantum 415a946e56 [idd] helper: avoid potential empty option deference 2026-06-03 21:32:35 +10:00
Geoffrey McRae 803aea0d21 [idd] ipc: implement reporting of GPU software status 2026-06-03 21:31:08 +10:00
Quantum cb70643fa4 [idd] helper: load default mode list with default refresh rate
After 882d531792, the existing code in the
helper reads past the end of the array for refresh rate, which is broken.

This PR also refactors the default modes into a getDefaultModes method so
that it can be used for a reset feature later.
2026-06-03 17:03:50 +10:00
Quantum e74f58afb4 [idd] helper: allow no GPU warning to be configured 2026-06-03 03:02:07 -04:00
Quantum 29d02ddbb9 [idd] helper: add checkbox widget 2026-06-03 03:01:47 -04:00
Quantum fec805fbe2 [idd] helper: show notification when no GPU is detected 2026-06-03 03:01:47 -04:00
Quantum ebeb9d028e [idd] helper/registry: load and store no GPU preference 2026-06-03 03:01:47 -04:00
Quantum 1a137f3c08 [idd] helper: detect if system has GPU 2026-06-03 03:01:47 -04:00
Quantum 3ef8344e9f [idd] helper: set config window minimum size
This improves aesthetics and prevents widgets from getting clipped when
the window is too small.
2026-06-03 17:00:31 +10:00
Quantum 976be95177 [idd] driver: add BOM to CEdid.* for non-English systems
It wouldn't compile otherwise.
2026-06-03 16:59:58 +10:00
Geoffrey McRae 1b7c00dc82 [idd] driver: implement postprocess filters 2026-06-03 08:59:48 +10:00
Geoffrey McRae a59040f0be [idd] driver: add/expose CSettings read string/bool methods 2026-06-03 08:59:48 +10:00
Geoffrey McRae 929428c273 [idd] driver: implement dirty rect tracking 2026-06-03 08:59:48 +10:00