startup: the async compute translation sets a sampler root signature before binding the sampler heap #3631
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#3631
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?
@KelboLive on GitHub · 2026-11-30 17:42 UTC · original
startup: the async compute translation sets a sampler root signature before binding the sampler heap
Summary
startup_compute_dispatch_sampler_heap_hardwarepasses at077bff3acand fails from35a3f6d6conward —the merge tip of #3453, translating native compute programs on a worker thread. It is still failing at
e61a16531.Failure
The fixture sets
X2W_D3D12_DEBUG=1andX2W_D3D12_LIST_NOOP=1, so the debug layer's messages are part ofwhat it asserts. Deterministic: it fails the same way in isolation, not only under a sweep.
Why no CI job sees it
warpvariant of the same fixture reports a capability skip (77), so the in-box WARP job cannotreach it.
hardwarevariant needs a physical device; neither Windows job runs_hardware.prpreset either.So #3453 merged green with this failing on real hardware.
Likely path
src/startup_stubs/d3d12_compute_dispatch.inlbinds heaps before the root signature, but only when it hasto:
Two ways that reaches 1419:
tr->sampler_heap_bytesis non-zero whilepass.sampler_heapis null, sosamplersis null and the heap set is bound without a sampler heap; or the pass state (heap_set,bound_sampler_heap) is now shared by a dispatch that ran earlier on the worker-thread route. #3453 changedwhen the published program and its pass state become visible, which is consistent with the bisect but I have
not isolated which of the two it is.
Either way the shim sets a root signature that declares a directly indexed sampler heap without that heap
bound. Refusing the dispatch when the program needs a sampler heap and none is bound would be consistent
with the rest of the path; binding one is the alternative.
Reproduction
In-box dev preset on a physical device (RTX 4070 Ti SUPER, driver 32.0.16.2101, Windows 10.0.26200):
Context
This is the only functional failure in a 988-test
_hardwaresweep ofcf43986(979 passed, 4 skipped).The other four are #3624's fixtures (three) and one load-related timeout that passes in 16 s in isolation.
The sweep is what found this; every other channel is blind to it.
Refs #3453, #3542.
@KelboLive on GitHub · 2026-11-30 17:46 UTC · original
Fixed at
bee9c64d9by #3628 (5be36341a, "keep the sampler heap span when installing a compute translation"), which is the area this pointed at.The three fixtures from #3624 also pass on hardware at this head (
startup_gfx2hlsl_cvt_off_f32_i4_hardware1.98 s,startup_image_sample_b_flow_hardware13.57 s,startup_image_get_lod_flow_hardware6.25 s).No debug-layer 1419 message remains. Closing as fixed; the bisect in the report (pass at
077bff3, fail at35a3f6d) is no longer needed for anything, so I am not adding it to #3453 separately.