feat(xgameruntime): add the XDisplay HLE (HDR mode and timeout deferral) #41
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Freminet--ScarlettX!41
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-41"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@wildheathen on GitHub · 2026-11-21 19:28 UTC · original
wildheathen:feat/xdisplay→main· +124 −0 · 4 files · 1 commits · openSummary
Adds the public
XDisplayfunctions (XDisplay.h) toxgameruntimeas an offline HLE:XDisplayTryEnableHdrMode(XDisplayHdrModePreference, XDisplayHdrModeInfo*): the emulated output is SDR, so it returnsDisabledand zeroes the info structure when one is passed.XDisplayAcquireTimeoutDeferral(XDisplayTimeoutDeferralHandle*)/XDisplayCloseTimeoutDeferralHandle(...): each acquire hands out its own handle (nothing ever times out); a null output pointer isE_INVALIDARG; closing null is a no-op.Enums are exposed as
uint32_tplus constants, like the rest ofxgameruntime_abi.h. Signatures and values from the public XDisplay reference pages (learn.microsoft.com,gdk-2610).Layout
New files, so the change does not overlap the open XUser / XGameSave / XMem work:
src/shims/xgr_display.cpp(registered inCMakeLists.txt) andtests/test_xdisplay.cpp(newtest_xdisplaytarget). The header gets one hunk, a new// XDisplay.hsection;xgameruntime_shim.cppandtest_xgameruntime_abi.cppare untouched.Verification
test_xdisplaypasses and everything else passes except the three tests that already fail on an unmodifiedorigin/main(test_boot_hello_scarlett,test_boot_rt_showcase,test_d3d12_guest_texture; see #1 and #2).View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.