runtime: installed compute translations lose the sampler heap span, so directly indexed sampler reads run without a sampler heap #3627
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#3627
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?
@lukaslw-lab on GitHub · 2026-11-30 16:22 UTC · original
Summary
install_compute_translation(from #3508,1f866f50) copies every field of a loaded candidate into the liveComputeTranslationexceptsampler_heap_bytes, which #3542 added forsmpidxprograms. The root is still built withD3D12_ROOT_SIGNATURE_FLAG_SAMPLER_HEAP_DIRECTLY_INDEXED. The dispatch, however, sees a span of 0, binds only the view heap (dropping the sampler heap the title set) and then sets that root. Each change is correct on its own; the gap appeared when both were onmain.Evidence
maincf43986d, tree configured with-DOFFSCREEN_AGILITY_620_DIR(Agility 1.620.2) and-DOFFSCREEN_WARP_DIR(WARP 1.0.22), Windows 10 22H2, RTX 3080 Ti driver 32.0.16.1047:startup_compute_dispatch_sampler_heap_hardwaresev=1 id=1419 ID3D12CommandList::SetComputeRootSignature: SetDescriptorHeaps must be called to bind a sampler descriptor before setting a root signature with D3D12_ROOT_SIGNATURE_FLAG_SAMPLER_HEAP_DIRECTLY_INDEXEDstartup_compute_dispatch_sampler_heap_warp1.7636e+25(0x69696969, the untouched output), expected(11, 22, 109, 1000)Temporary logging at the bind showed
tr->sampler_heap_bytes=0,samplers=nullptrfor a translation whose root carries the flag.Some setups do not show it: the
_warptest passed in a full Windows 11 run at35a3f6d(#3623), and CI does not run_hardwaretests.Fix
Copy the field in
install_compute_translation. With that one line, both tests pass on the same tree (PR #3628).