Skip to content

Tests: report texture_states skips on stderr and honor XCL_REQUIRE_GPU - #2154

Open
HumanlyDev wants to merge 1 commit into
xcl-dev:mainfrom
HumanlyDev:tests/texture-states-skip-reporting
Open

HumanlyDev wants to merge 1 commit into
xcl-dev:mainfrom
HumanlyDev:tests/texture-states-skip-reporting

Conversation

@HumanlyDev

Copy link
Copy Markdown

Report crates/xcl/tests/texture_states.rs skips directly on stderr so scripts/test.ps1 counts them, and route the missing-GPU branch through runner::skip_test("no GPU") so XCL_REQUIRE_GPU enforces GPU presence. Test-only change under crates/xcl/tests/.

What is in it

  • crates/xcl/tests/texture_states.rs:
    • Replace println!("SKIPPED ...") on the missing-GPU branch with xcl::gpu::recomp::runner::skip_test("no GPU").
    • Replace println!("SKIPPED ...") on the two missing-debug-layer branches with writeln!(std::io::stderr(), "SKIPPED uploads_start_from_each_subresources_state: ...") so libtest does not hide the skip lines while preserving behavior on GPUs without Graphics Tools when XCL_REQUIRE_GPU is set.

Tested

  • Hardware & toolchain: NVIDIA GeForce RTX 4060 (32.0.16.1088), AMD Ryzen 5 7600, Windows 11 Pro 10.0.26200 (build 26200), rustc 1.100.0 (0ef1bc386 2026-11-09), DXC 1.8.2502.11, debug build.
  • cargo test -p xcl --test texture_states -- --nocapture (RTX 4060): 1 passed, 0 failed, 0 ignored.
  • XCL_ADAPTER=warp cargo test -p xcl --test texture_states -- --nocapture: 1 passed, 0 failed, 0 ignored.
  • XCL_ADAPTER=warp XCL_REQUIRE_GPU=mesh cargo test -p xcl --test texture_states -- --nocapture: 1 passed, 0 failed, 0 ignored.
  • .\scripts\test.ps1 (cargo build --workspace + cargo test --workspace -- --test-threads=4, RTX 4060, debug): 1154 passed, 0 failed, 46 ignored across 21 targets (25 SKIPPED GPU checks: 20 no wave64, 3 per-lane form #1426 refusals, 1 no heap windows, 1 cannot disable the driver cache (Windows Developer Mode is required)).

Regression run

  • Not needed: test-only change under crates/xcl/tests/ (no runtime files under crates/xcl/src/ modified).

Not tested

  • Hosts lacking both a D3D12 GPU/WARP device or lacking the D3D12 debug layer (d3d12SDKLayers.dll), retail titles / XCL_SAMPLE_*, AMD RDNA3/4, Linux / Wine.

AI use

  • Antigravity (Google DeepMind; Gemini 4): audited crates/xcl/tests/texture_states.rs, updated the skip reporting paths, ran the tests, and drafted this PR description.

Use xcl::gpu::recomp::runner::skip_test on the missing-GPU branch so XCL_REQUIRE_GPU enforces GPU presence and scripts/test.ps1 counts the skip. Write the two missing-debug-layer skip notices directly to stderr so scripts/test.ps1 captures them without breaking XCL_REQUIRE_GPU on GPUs lacking Graphics Tools.

Assisted-by: Antigravity (Gemini 4)
@futurepro62

futurepro62 commented Nov 25, 2026 •

Copy link
Copy Markdown

Full-suite run, since this PR has no test report yet. Tested exact head 04e9cee (on its base 6ea813a).

Tested

  • NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 621.40, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, DXC + dxil.dll 1.9.2602.17 (Windows SDK 10.0.26100), debug, D3D12 debug layer installed.
  • cargo build --workspace, then XCL_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::recomp::lower_dxil::tests::const_and_null_mask_operands_agree_with_hlsl_on_the_gpu --skip gpu::recomp::lower_dxil::tests::mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu --skip gpu::dxil::fuzz_tests: 1142 passed, 0 failed, 44 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.
  • No new #[test] functions in the diff.
  • Same head on the AMD Radeon integrated GPU (iGPU) of the Ryzen 7 9800X3D (RDNA2, XCL_ADAPTER=radeon), cargo test --workspace -- --test-threads=4 --skip gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1: 1153 passed, 0 failed, 46 ignored. SKIPPED: f16_programs_on_the_gpu (f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #1426 semantics differ from the console's))), f16_programs_on_the_gpu (f16 arithmetic, wave64, per-lane form: refused (unsupported V_MUL_F16 (its gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #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 gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #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 gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #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 gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #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 gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #1426 semantics differ from the console's))), heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows).
  • --skip leaves out tests that fail on main 568e7db too, not because of this PR. On NVIDIA: heap_window_out_of_memory_falls_back_to_the_switch_form (Tests: heap_window_out_of_memory_falls_back_to_the_switch_form fails under XCL_REQUIRE_GPU=mesh (opt-in skip counted as missing coverage) #1651), the four gpu::recomp::lower_dxil::tests::*_programs_on_the_gpu tests, const_and_null_mask_operands_agree_with_hlsl_on_the_gpu and mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu (follow-up on #1651) fail because runner::skip_test turns their skips into failures under XCL_REQUIRE_GPU=mesh, and gpu::dxil::fuzz_tests seeds 70, 545, 1019 and 1507 fail CreateComputePipelineState with E_OUTOFMEMORY on this card (drivers 616.64 and 621.40). On AMD: fuzz_validate_and_gpu_1 fails on seed 540 (res[833] 0x7 vs CPU 0x6). The AMD run does not set XCL_REQUIRE_GPU.

Not tested

  • a release build, a game (test run only).

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.

@DavidM1911

Copy link
Copy Markdown
Contributor

Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

Thanks!

@JJAutoCompare

Copy link
Copy Markdown

Independent Windows x64 + Intel Arc A770 test report on commit 04e9cee8442c74c78f5c2e22d4207ecb00413d09.

Environment

  • OS: Windows 11 Enterprise Evaluation x64 (build 26200.9974, Session 0, no d3d12SDKLayers.dll)
  • CPU: AMD Ryzen 7 3800X
  • GPU: Intel Arc A770 16 GiB (driver 32.0.101.9175, Tiled Resources Tier 4, Resource Heap Tier 1, DoublePrecisionFloatShaderOps=0)
  • Toolchain: rustc 1.100.0 (0ef1bc386 2026-11-09) (debug build), DXC 1.9.2609.5 (01b62ad47)

Command
Executed under serialized Arc A770 GPU mutex (XCL_ADAPTER=A770) with pre/in/post-mutex executable SHA-256 verified (49DE41DA3A8F27C4FB1AE069FE91F6C7FC3352DEBC29849B18D52B4F1B725ACC), both without XCL_REQUIRE_GPU and with XCL_REQUIRE_GPU=1:

texture_states-de17443670004e00.exe --nocapture --test-threads=1

Results

  • Both runs (default and XCL_REQUIRE_GPU=1): Exercised passed: 0, Failed: 0, Ignored: 0, Skipped: 1 (libtest reported 1 passed, exit code 0, 0.00s)
  • Both runs emitted the skip line on stderr: SKIPPED uploads_start_from_each_subresources_state: no D3D12 debug layer (The application requested an operation that depends on an SDK component that is missing or mismatched. (0x887A002D)).
  • Confirms the skip line is written to stderr; XCL_REQUIRE_GPU=1 also exited 0 without failing on this host.

Not tested

  • Subresource-state upload assertions under an installed D3D12 debug layer, full workspace suite, and game smoke run.

AI use

  • Verified and published with T3 Code / Antigravity (gemini-4-neon).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants