Tests: console descriptor heap slot/copy/unregister contract #1687
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1687
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1687/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?
@amazedturnip on GitHub · 2026-11-24 19:16 UTC · original
amazedturnip:xcl/tests-console-heap-descriptor-contract-185825→main· +201 −0 · 1 files · 1 commits · merged 2026-11-25 19:22 UTCPins the public contract of the console descriptor heaps from a new non-runtime test file: window-0 placement, per-slot index arithmetic (index 2k, pc_srv base+2k*inc, pc_uav base+(2k+1)*inc, gpu UAV +1 slot), sampler slot arithmetic, T# image copy renumbering (word 0 = destination index), buffer V# verbatim copy, S# index-in-word-3[11:0] renumbering, end-of-heap bounds, start stability across slot calls, unregister release, and non-shader-visible heaps reporting no GPU UAV. Runs on sparse VRAM, no GPU required.
What is in it
Tested
AMD Radeon(TM) Graphics (driver 32.0.21043.19003, DXC 1.9.2609, native wave64),XCL_ADAPTER=radeon):cargo test --workspace -- --test-threads=2— 867 passed, 0 failed, 42 ignored (SKIPPED GPU tests: 1 (no heap windows))Not tested
AI use
@MiharaxD on GitHub · 2026-11-24 21:44 UTC · original
Test report on an NVIDIA card, head
fe29829(onmainc160d86), which covers the "NVIDIA" line.Tested
cargo build --workspace, thencargo test --workspace --no-fail-fast -- --test-threads=4(debug) onfe29829: 867 passed, 0 failed, 42 ignored (lib tests 809 / 0 / 22).gpu_geometry_wave32_prefix_count_over_a_mask(no wave64),gpu_wave32_program_in_wave64_hardware(no wave64).crates/xcl/tests/console_heap_contract.rspass.Regression run
scripts/smoke.ps1 -Game <game folder> -Seconds 60(release builds, start screen, no input).mainisc160d86:main:
this PR's head:
Not tested
AI use: Claude Code (Claude Opus 5.5) built the PR, ran the tests and both smoke runs, read the logs and wrote this report; I checked it before posting.
@JJAutoCompare on GitHub · 2026-11-25 04:02 UTC · original
XCL PR #1687 — console descriptor heap contract
Verified clean detached head
fe298296acc956286144bec89b4adbd05a4ebe0bon STOR-WINLAB. The diff adds onlycrates/xcl/tests/console_heap_contract.rs.Windows 11 Enterprise Evaluation x64 build 26200, AMD Ryzen 7 3800X, Intel Arc A770 driver 32.0.101.9175. DXC
--versionand the suite log both show 1.9.2609.5. Rust 1.100.0 (0ef1bc386, x86_64-pc-windows-msvc), unoptimized dev/test profiles with debug info and incremental compilation disabled.Tested
cargo build --workspaceandcargo test --workspace --no-runboth exited 0 outside the Arc lock.cargo test -p xcl --test console_heap_contract -- --test-threads=4withXCL_ADAPTER=NONE_CPU_ONLYoutside the lock: 9 passed, 0 failed, 0 ignored, 0 skipped. The log shows all nine non-shared heaps registered, confirming the tests got past the UMA guard. Assertions cover window-0 placement, stable starts, SRV/UAV and sampler slot arithmetic, heap bounds, console-address reads, and lookup after unregister. They also check image and sampler index rewrites, buffer address and stride preservation, a four-word write into a view slot, and zero GPU UAV handles for CPU-only heaps.cargo test --workspace --no-fail-fast -- --test-threads=4ran once insideInvoke-ArcTest.ps1withXCL_ADAPTER=A770andRUST_TEST_NOCAPTURE=1. Exit 101. Summed all 21 result lines (20 test binaries plus doc-tests): 849 passed, 18 failed, 42 ignored. The heap target passed all 9 again.Workspace failures and skips
Of 17 library failures, 13 reported
CreateComputePipelineStateerror0x80070057. Four asserted on FMA overflow, implicit-LOD pixel sampling, halfword preservation, and wave64 pixel reductions. The e2e title failed itsRSSetDepthBiasXpixel check (blue instead of green).Six
SKIPPEDlines: two for wave64, one for tiled resources tier < 2, one for unavailable heap windows, and two for missing debug-layer support. These provide no coverage. Sample tests also reported unset inputs.Not tested
Matched
mainbaseline, retail-title smoke, other GPU vendors. The workspace failures remain unclassified againstmain.AI use
T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high) ran the build and verification. Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against
pr1687-suite.logand published.@ivall on GitHub · 2026-11-25 19:22 UTC · original
Merging: the console descriptor heap's slot, copy and unregister contract.
Tested on AMD RDNA4 (native wave64), Windows, DXC 1.8.2502.11, debug,
main2898511with 27 test PRs merged locally, this one included: the whole suite 3 times, 1419 passed, 2 failed, 46 ignored each time (fuzz_validate_and_gpu_1and_3, which fail the same way onmain);hle::d3d12xon 16 threads 5 times, no failure. This file alone 8 times: no failure.AI use: Claude Code (Claude Opus 5.5) reviewed and tested this and wrote the comment on the maintainer's behalf.