Tests: fail xg_oracle resource tiling test on creation mismatches or zero cases #1872
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1882"
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 microwave805 on 2026-11-24T22:33:33Z.
In
crates/xcl/tests/xg_oracle.rs,resource_tiling_matches_the_console_library()skipped any test case where either the consolexg_xs.dllorxcl::hle::xgreturnedNone(let (Some(a), Some(b)) = (...) else { continue }), and never assertedcases > 0. A regression causing XCL to reject descriptions that the console library accepts (or vice versa, or even failing 100% of descriptions) silently passed with0 differ.What is in it
crates/xcl/tests/xg_oracle.rs: replace thelet ... else { continue }with an exhaustivematchon(run(theirs, ...), run(ours, ...))so(Some(_), None)and(None, Some(_))record a creation mismatch inbad(and incrementcases), and assertcases > 0onceconsole()is loaded.Tested
32.0.16.1742), AMD Ryzen 5 5600X, Windows 11 Pro build 22631, Rust1.100.0(stable-x86_64-pc-windows-msvc), DXC1.9.2602.17, debug build.cargo test -p xcl --test xg_oracle: 6 passed, 0 failed, 12 ignored (XCL_SAMPLE_XGunset)..\scripts\test.ps1on exact headc4e2710: 975 passed, 0 failed, 45 ignored (23GPU testsSKIPPEDon this adapter: 18 wave64 skips — 7 standaloneno wave64+ 11 wave64 subcases — 3 pre-existing per-lane#1426diffs, 1no heap windows, 1 driver-cache disable requiring Windows Developer Mode;XCL_SAMPLE_*env vars unset).Regression run
Not needed: this PR changes only
crates/xcl/tests/xg_oracle.rs(no runtime code undercrates/xcl/src).Not tested
xg_oraclewithXCL_SAMPLE_XGset (no consolexg_xs.dllavailable on this machine).AI use
(Some, None)/ zero-case skip, wrote the exhaustive match and assertion, ran.\scripts\test.ps1onc4e2710, and drafted this description.Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-24T23:31:43Z.
Full-suite run, since this PR has no test report yet. Tested exact head
c4e2710(on its base689f2db).Tested
cargo build --workspace, thenXCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu --skip gpu::dxil::fuzz_tests: 965 passed, 0 failed, 43 ignored. SKIPPED (no wave64):a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu,a_per_lane_2d_or_3d_group_runs_on_the_gpu,coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu,cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu,gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware,the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu.#[test]functions in the diff.XCL_ADAPTER=radeon),cargo test --workspace -- --test-threads=4: 925 passed, 1 failed, 25 ignored. SKIPPED:f16_programs_on_the_gpu(f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))),f16_programs_on_the_gpu(f16 arithmetic, wave64, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))),f16_programs_on_the_gpu(f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))),f16_programs_on_the_gpu(f16 packed, wave64, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))),f32_programs_on_the_gpu(f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))),f32_programs_on_the_gpu(f32 conversions, wave64, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))).--skipleaves out tests that fail on main689f2dbtoo, not because of this PR.heap_window_out_of_memory_falls_back_to_the_switch_form(#1651) and the fourgpu::recomp::lower_dxil::tests::*_programs_on_the_gputests (follow-up on #1651) fail becauserunner::skip_testturns their skips into failures underXCL_REQUIRE_GPU=mesh. Ingpu::dxil::fuzz_tests, seeds 70, 545, 1019 and 1507 failCreateComputePipelineStatewithE_OUTOFMEMORYon this card on main as well, with drivers 616.64 and 621.40. With fuzz_tests included, this PR showed the same 4 failures and no others (driver 616.64).XCL_REQUIRE_GPU. Its one failure,gpu::dxil::fuzz_testsseed 540 (res[833]0x7 vs CPU 0x6), happens on main689f2dbtoo.Not tested
AI use
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T01:56:48Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T03:00:47Z.
PR #1882 verification on STOR-WINLAB
Tested
c4e27105499823a9dbfd2261f98baf9e3a46a9b1in a clean detached checkout. The PR changes onlycrates/xcl/tests/xg_oracle.rs, where the resource-tiling test now rejects one-sided texture-computer creation failures and zero comparable cases.Tested
DoublePrecisionFloatShaderOps=0, wave range 8–32,d3d12SDKLayers.dllabsent. DXC/DXIL 1.9.2609.5, rustc 1.100.0 (0ef1bc386, 2026-11-09). Unoptimized Cargo profiles with debug info and incremental compilation disabled.cargo build --workspaceandcargo test --workspace --no-runboth succeeded outside the GPU lock.cargo test -p xcl --test xg_oracle -- --nocapturereported 6 passed, 0 failed, 12 ignored. The 12 diagnostic tests carry#[ignore]. All six enabled tests returned before comparing results becauseXCL_SAMPLE_XGwas unset. The PR adds no SDK-independent unit tests.cargo test --workspace --no-fail-fast -- --test-threads=4ran once under the shared Arc lock and exited 101.pr1882-suite.loghas 20 summaries (19 test binaries and one doc-test run) totaling 950 passed, 25 failed, 45 ignored.Failures and skips
CreateComputePipelineStateerror0x80070057. Four reported result mismatches in fused FMA, implicit-LOD sampling, f16 high-half preservation, and pixel-shader wave reductions.RSSetDepthBiasXcheck. The top-right pixel was blue and the test expected green.SKIPPEDlines recorded unexercised paths. 17 lacked wave64, three were refused per-lane DXIL forms, one could not disable the driver cache, and one lacked heap windows.Not tested
Console
xg_xs.dllcomparisons, including the new mismatch and zero-case assertions. No retail-title smoke run, other GPU, or baseline comparison 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 againstpr1882-suite.logand published this report.Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-28T20:18:33Z.
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-01T07:03:04Z.
Triage (#1607) – head
c4e2710No open or merged PR makes the same change to
crates/xcl/tests/xg_oracle.rs.The test only runs with
XCL_SAMPLE_XGset, and the description shows runs without it only. So it is not known whetherXGCreateTextureComputeralready disagrees with the console library on creation for any of the swept descriptions (for example 1x1 with mips 2/3). If it does, this PR turns the test red on main. A run with the console library would settle that.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.