shader: diagnose unsupported gfx1030 MUBUF cache invalidations #1379
No reviewers
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!1379
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1379/head"
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?
@stan495 on GitHub · 2026-11-24 09:53 UTC · original
stan495:codex/gfx1030-mubuf-cache-diagnostics→main· +55 −2 · 3 files · 1 commits · merged 2026-11-24 10:32 UTCBehavior
Reject
buffer_gl0_invandbuffer_gl1_invwith the opcode in the diagnostic. The desktop compute profile has no mapping for the native GL0 writeback and GL1 invalidate scopes or their acknowledgments. An assembled container fixture checks both rejections and verifies that neither emits HLSL. A control replaces the invalidation withs_nop 0and compares the emitted HLSL with the original indexed-store program.Verification
Tested clean head
a819b80c2cdb8d9f6e7d1b840c14ea7c8b5d6cce.python3 -B tests/compute_store_check.py binary llvm-mc-15 llvm-objcopy-15 libLLVM-15.so.1passed with LLVM 15.0.7. Each cache instruction disassembled by name and exited with code 1 andUnsupported MUBUF cache invalidation: <opcode>.buffer_gl0_invcase exited with code 0 and emitted the same HLSL as the NOP control. The fixture requires code 1 and no output file, so it detected the mutant.cmake --preset dev -DINTAKE_PYTHON=<absolute-path-to-Python>andcmake --build --preset dev --target offscreen_checkpassed. WithCTEST_PARALLEL_LEVEL=2,ctest --preset dev --no-tests=error -R '^compute_store_aot_' -V --output-junit out/cache-diagnostics-junit.xmlpassed 50 tests with zero failures and zero capability skips. These tests execute translated DXIL on Windows build 26300.9974 with WARP (Microsoft Basic Render Driver 10.0.26100.9818) and Intel Arc B390 (32.0.101.8509). The debug layer was unavailable on both adapters.python -B tools/form_coverage.py out/cache-diagnostics-junit.xml --records out/build/dev/form_coverage --gaps gfx1030 --json out/cache-diagnostics-coverage.jsonconfirmed 45/73 gfx1030 MUBUF forms in this test run. Neither cache invalidation contributes semantic coverage.python -B tests/form_coverage_check.pyandpython -B tests/docs_links_check.pypassed.python -B tests/rdna2_tools_check.pyran 139 cases with 121 passes, zero failures and 18 skips.git merge-tree --write-tree ea5884d3ef9be8ff3f571d90a5578fe5060dd419 HEADand the combined simulation with the queued MUBUF batches both completed without conflicts.@tedin7 on GitHub · 2026-11-24 10:06 UTC · original · reviewed
Technical peer-review of commit
a819b80c2cdb8d9f6e7d1b840c14ea7c8b5d6cce:Verification
git diff --check origin/main...HEAD: clean.tests/docs_links_check.py: passed (16 Markdown files, 308 links).tests/bidi_controls_check.py: passed (1,153 files).tests/compute_store_check.py binary llvm-mc-19 llvm-objcopy-19 /usr/lib/llvm-19/lib/libLLVM-19.so: passed (includingUnsupported MUBUF cache invalidation: buffer_gl0_invandbuffer_gl1_inv).tests/rdna2_tools_check.py: passed (139 tests, 18 skipped).tests/form_coverage_check.py: passed.--preset dev):offscreen_checkbuilt (3.82s, configure1.58s);ctest -R '^compute_store_aot_(warp|mubuf_reduction_warp|mubuf_format_warp|mubuf_subword_warp|mubuf_vector_warp)$'5/5 passed (6.95s:compute_store_aot_mubuf_format_warp3.56s,compute_store_aot_mubuf_subword_warp3.61s,compute_store_aot_mubuf_reduction_warp4.64s,compute_store_aot_warp6.24s,compute_store_aot_mubuf_vector_warp3.30s)./O2(--preset release):offscreen_checkbuilt (0.88s, configure1.64s);ctest5/5 passed (6.98s).Findings
tools/compute_store_aot.pyrejectsbuffer_gl0_invandbuffer_gl1_invundercpu == "gfx1030"withValueError(f"Unsupported MUBUF cache invalidation: {line}").tests/compute_store_check.py(mubuf_cache_invalidate_binary) assembles each instruction withllvm-mc(-mcpu=gfx1030), verifies exact disassembly, checks CLI exit code 1, exactValueErrordiagnostic, and absence of emitted HLSL, and usess_nop 0as a positive control producing identical HLSL toINDEXED.