startup: -NativeShaders stops ordinary direct graphics pipelines from translating (PSI1 key suffix, .ps57in not read by fallback) #3387
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows#3387
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@SimSalabimse on GitHub · 2026-11-28 17:31 UTC · original
Summary. With
-NativeShaders(X2W_NATIVE_SHADERSset), ordinary direct graphics pipelines stop translating at all in a real start-up run. The Python watcher and the native graphics path both refuse them, so the screen stays black.Observed on the Windows test PC,
mainaec2e08, RTX 4070 Ti, Windows 11, a retail title. The run used the same flags as a run without-NativeShaders, plus-SuspendOthers 0 -InputScript, on the same warmed shader cache.-NativeShaders, after 900 s: pipelines translated 90 / missing 574.-NativeShaders, after about 10 min:pipelines translated 3 / missing 11,translated draws 17868 (not drawn 309312),textures uploaded 2. Compute showedtranslated 0, refused 10255.translate.txtstayed empty.Cause (from reading the source; please correct me).
X2W_NATIVE_SHADERSset,d3d12_draw.inl(around line 1163) appends aPSI1suffix plus 8 bytes to the key of every ordinary direct graphics request, and writes a.ps57insidecar.gfx2hlsl.pynever reads.ps57in, so each request fails withshader request source key mismatch.fixed graphics entry requires matching stage interfaces..ps57insidecar and exactly that.fail.Side notes.
run.ps1leavesX2W_NATIVE_SHADERSset in the PowerShell session, so the next run without the flag is still affected until you clear it.dxil.dll, some native compute programs fail withValidator version 1.8 is not supported; maximum 1.6. The 10.0.26100.0 SDK avoids this.Expected. Either keep the ordinary graphics key unchanged when
X2W_NATIVE_SHADERSis set (only add the suffix where the native path will accept the request), or teach the fallback to read the sidecar. In both cases the cached Python translations should still be used.AI-Assisted
@Leyukaka on GitHub · 2026-11-28 20:43 UTC · original
I'll measure this on
main8ecd30fe: two 600 s start-up runs with the same flags and inputs, each from its own copy of the same warmed shader cache, with and without-NativeShaders, each in a new PowerShell process (run.ps1:83leavesX2W_NATIVE_SHADERSset). I'll post counts only: draws translated and not drawn, pipelines translated and missing,.failfiles by first line, and how many.ps57inbase keys already have a translation in the cache. This is a measurement only; the fix is unclaimed.@Leyukaka on GitHub · 2026-11-29 01:08 UTC · original
Releasing my measurement claim from 2026-11-28 20:43: the comparison was not run. #3412 targets this issue.