Tests: cover optimal_mode swizzle priority rules and UAV size threshold #1310
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1320"
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?
Imported from ivall/xcl. Originally posted by Ayoub-devv on 2026-11-24T14:41:22Z.
What is in it
crates/xcl/src/hle/xg.rs: add#[cfg(test)]cases for the pureoptimal_modeswizzle-mode selector, covering every branch of its priority chain (depth → layout 2 → render target → non-UAV → UAV at/below threshold → fallback) and the exact0x8_0000size boundary (just under, exactly at, just over). No runtime code is changed.Tested
cargo test -p xcl --lib optimal_mode: 3 passed, 0 failed, 0 ignored; 731 filtered outRegression run
#[cfg(test)];optimal_modeitself is unmodified.Not tested
AI use
optimal_mode.Imported from ivall/xcl. Originally posted by copilot-pull-request-reviewer[bot] on 2026-11-24T14:41:38Z.
Review: COMMENTED
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-24T14:45:39Z.
Full-suite run, since this PR has no test report yet. Tested exact head
b523854(on its base930e8b4).Tested
cargo build --workspace, thenXCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4: 754 passed, 0 failed, 41 ignored. SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.optimal_mode_priority_rules,optimal_mode_uav_size_threshold,optimal_mode_default_fallback.XCL_ADAPTER=radeon),cargo test --workspace -- --test-threads=4: 754 passed, 0 failed, 41 ignored, no skips.Not tested
AI use
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T15:24:11Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: 709-710 passed, 0 failed, 21 ignored.Thanks!
Imported from ivall/xcl. Originally posted by Toons29 on 2026-11-25T03:24:03Z.
Regression run of
b5238543on the retail title, for this PR's Regression run section. Both blocks are fromscripts/smoke.ps1as printed, not edited:mainon4178e888, this PR on its head commit with no uncommitted changes, same title and time.Against the limits in CONTRIBUTING.md: 101 % of
main's frames, 100 % of its peak commit, no crash, no device removal.AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0,
cargo build --release -p xcl, 60 s,XCL_NETWORK=0. This is a regression check only: it does not show whether the run reaches the code this PR changes.AI use: Claude Code (Claude Opus 5.5) built both trees and ran
scripts/smoke.ps1; I checked the blocks before posting.upstream-sync referenced this pull request2026-11-25 06:04:27 +00:00
Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-29T07:40:53Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T05:26:03Z.
Triage (#1607) – head
b523854No open or merged PR adds these tests. #1480 changes
optimal_mode(saturating multiply) without changing these results.The assertions match
xg::optimal_modeon main: depth beforeLayout2, before render target, then the 0x8_0000-bit UAV threshold.Two assertions repeat others:
optimal_mode(0, 0, 32, 256, 256) == 5is already in the existing test, and the0x8_0000case appears in both new tests.Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.