Repository navigation
Fix XeLL initialization with ReShade-wrapped devices - #1325
Closed
williamstosh wants to merge 1 commit into
Closed
williamstosh wants to merge 1 commit into
williamstosh wants to merge 1 commit into
Conversation
Collaborator
|
Hi, Maybe better check for reshade module, like these? OptiScaler/OptiScaler/proxies/Streamline_Proxy.h Lines 314 to 329 in ff23c5e OptiScaler/OptiScaler/hooks/DxgiFactory_Hooks.cpp Lines 28 to 45 in ff23c5e |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose / Background
Fix a save-load crash in The Witcher 3 Remastered's DX12
DLSSG via Streamline -> XeFGpath with ReShade enabled.On nightly baseline
4a8d55a9, XeLL initialized its context with a ReShade-wrapped device while XeFG supplied a native application queue. DbgEng unwinding, object vtables, and call-site disassembly showed XeLL submitting a ReShade-wrapped command list through the native queue'sExecuteCommandListsduringRenderSubmitStart. D3D12Core interpreted the wrapper using its native object layout and faulted with0xC0000005. This establishes the invalid submission boundary; Intel's internal queue-assignment sequence was not traced.The observed setup used Streamline 2.14.1, ReShade 6.8.0.2155, XeFG 1.3.1.78, and XeLL 1.3.2.10 on an RTX 5090 D.
Changes / Impact
Change only
OptiScaler/low_latency/low_latency_tech/ll_xell.cpp:Util::GetReShadeOriginalhelper before queryingID3D12Deviceand creating the XeLL context.ComPtr<IUnknown>::Attach; retain the existing independent member QI reference and cleanup paths.Both the normal XeLL output and the dedicated context created through
acquire_xefg_xelluse this initialization. Output selection, context reuse, SDK dependencies, and configuration remain unchanged.Validation
Build and runtime validation used the patched
4a8d55a9nightly baseline. The same patch applies to currentmaster(ca7df362); its XeLL file and helper are unchanged. The current-master integration was checked for patch applicability, not separately rebuilt or run.ReleaseDebug|x64build completed with exit code 0.Runtime coverage is one save/configuration in a stationary scene. Extended gameplay, other versions, and other games were not tested.
Related: #1324 reports a separate descriptor-decoding failure in ReShade's ClearUAV path. This PR addresses the native-queue/wrapped-command-list boundary and does not claim to resolve that issue.