Repository navigation
runtime: keep the sampler heap span when installing a compute translation - #3626
Merged
R0Y00 merged 1 commit intoNov 30, 2026
Merged
Conversation
…tion install_compute_translation copied every field of a loaded candidate except sampler_heap_bytes (R0Y00#3540's `smpidx`). The root keeps its SAMPLER_HEAP_DIRECTLY_INDEXED flag, but the dispatch then sees a zero span, binds only the view heap and sets that root without a sampler heap: a debug-layer error, and the program reads no samplers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
R0Y00
approved these changes
Nov 30, 2026
R0Y00
left a comment
Owner
There was a problem hiding this comment.
Verified that the installed span is used both for dispatch validation and selecting the bound heap. Exact revision, Windows 11 build 26300.9974, Debug, ctest --preset dev --no-tests=error --output-on-failure -j 1 -R '^startup_compute_dispatch_sampler_heap_(warp|hardware)$': RTX 4060 Laptop GPU driver 32.0.16.1656 passed slot 67 on all 32 lanes and all refusal/decoy controls with the debug layer enabled and no error message. In-box WARP driver 10.0.26100.9818 checked the manifest and reader refusals, then skipped dispatch (77, no 32-lane waves).
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.
Change
install_compute_translationnow copiessampler_heap_bytesfrom the loaded candidate. Without it, a native compute program that reads the directly indexed sampler heap (#3540,smpidx) is dispatched with a root that hasSAMPLER_HEAP_DIRECTLY_INDEXEDbut no sampler heap bound: the debug layer reports error 1419 and the program reads no samplers. The field was added by #3540 after #3506 introduced the install function, so neither change alone shows the gap. Fixes #3625.Verification
Commit
3d17bd3a(onmaincf43986d) on Windows 10 22H2 (build 19045), Visual Studio 2026 (MSVC 19.52.37029), Windows SDK 10.0.26100, CMake 4.3.1, Python 3.13.7. Release tree configured with-DOFFSCREEN_AGILITY_620_DIR=<Agility 1.620.2>and-DOFFSCREEN_WARP_DIR=<WARP 1.0.22>. GPU: NVIDIA GeForce RTX 3080 Ti, driver 32.0.16.1047, debug layer enabled by the fixture._warp_hardwaremaincf43986d1.7636e+25(0x69696969), expected(11, 22, 109, 1000)sev=1 id=1419 … SetDescriptorHeaps must be called to bind a sampler descriptor before setting a root signature with D3D12_ROOT_SIGNATURE_FLAG_SAMPLER_HEAP_DIRECTLY_INDEXEDOn the Windows 10 in-box runtime both tests stop earlier (
root signature creation failed), with and without this change.Evidence and follow-up
The existing fixture already covers the behaviour;
mainis the negative control. CI'sprpreset does not run these tests, and_hardwaretests do not run on CI at all.Checklist
AI-assisted: prepared with Claude Code; the commands and results above were run on the author's PC.
🤖 Generated with Claude Code