Repository navigation
Tests: bind both descriptor heaps before the arena root signature - #2978
luckyteagirl wants to merge 1 commit into
Conversation
The shared compute ABI root signature requests direct indexing for both descriptor heap types. The arena harness bound only the resource heap, violating the root-signature binding contract and reproducing a driver access violation on RX 6800M. Assisted-by: OpenAI Codex (GPT-6.2 Sol)
|
Could a maintainer review this one-file diff for the AI use: OpenAI Codex (GPT-6, exact serving variant unavailable) checked the current call sites and drafted this request. |
|
RX 9070 / RADV / Wine verification of exact head Tested
On both main and head, all eight isolated invocations report 1 passed, 0 failed. Each source also runs both filters together with The baseline already works on this Wine/RADV stack. These runs do not reproduce the Windows RX 6800M Additional owned filter
All scalar/vector readbacks and CPU-visible stores match independent references. The complete before/after memory images contain only the expected active-lane stores; unchanged regions and inactive destinations agree. Shader containers and targeted data repeat across sources and fresh processes. Across the original and owned tests: 464 arena GPU dispatches, 232 per source, plus 12 separate physical-width probes: 476 captured GPU dispatches, including 166 physical native-wave64 dispatches. Actual heap-argument arrays and phase order were checked on every arena call. Independently recomputed 514 MiB of complete CPU-visible before/after snapshots, plus register, guard and width readbacks. The owned RDNA2 program was independently re-encoded from the public ISA tables. 0 ignored, 0 skipped, no device-removal markers. Inherited Not tested The native-Windows RX 6800M crash, actual texture/sampler reads, all other arena callers, full suite, graphics/guest execution, other GPUs, retail workload, AI use OpenAI Codex (GPT-6; exact serving variant not exposed) reviewed the diff, wrote the owned test-only matrix and passive captures, ran comparisons, independently verified heap arguments, memory/register results, guards, wave widths and source/executable provenance, and drafted this report. Publication authorized by the account owner. |
…dev#3001, 0 ports, 6 keepers archived
|
No open or merged PR makes this change. Main's AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
The GPU arena test runner bound only its resource descriptor heap before setting a root signature with direct indexing enabled for both resource and sampler heaps. An earlier RX 6800M debugger run stopped in
SetComputeRootSignature, before dispatch. Binding a shader-visible sampler heap alongside the resource heap makes the existing one-window and four-window regression tests pass when run in isolation.The binding order follows the Shader Model 6.6 dynamic resource specification. This follows up on the RX 6800M report in #42.
What is in it
crates/xcl/src/gpu/recomp/runner.rscreates and binds a one-entry sampler heap in the arena test runner and retains it through GPU completion.Tested
XCL_ADAPTER=6800M,XCL_REQUIRE_GPU=1,XCL_NETWORK=0,CARGO_INCREMENTAL=0, and a separate DXIL cache path per run, testedgpu::dxil::core_tests::raw_loads_in_root_windows_respect_exec_and_boundsusingcargo test --offline --locked -p xcl --lib -j 1 <test> -- --exact --nocapture --test-threads=1. Testedgpu::recomp::tests::gpu_unified_memory_arenaby running the built libtest executable with the same test flags.c2ee10e4aborted both invocations with0xc0000005before libtest produced counts. Clean candidate833ebaecpassed both, 2 passed, 0 failed, 0 ignored, 0 capability skips across the two invocations.git diff --checkpassed.833ebaec,cargo +stable build --workspace --locked -j2passed.cargo +stable test --workspace --locked -j2 --no-fail-fast -- --test-threads=4completed all 38 targets with 1,259 passed, 197 failed, 47 ignored, and 12 explicit skips. The 12 skip reports comprised six no-GPU or device-unavailable reports, three unavailable debug-layer reports, and one each for native 16-bit operations, 64-bit heap atomics, and heap windows.0x887A0005fromCreateComputePipelineState, and later tests reported the same suspended-device failure. A fresh process running onlygpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1with--exact --nocapture --test-threads=1returned the same device-removal error, with 0 passed, 1 failed, 0 ignored, and 0 skips.Not tested
AI use