Tests: report texture_states skips on stderr and honor XCL_REQUIRE_GPU #2154
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!2154
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2154/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?
@HumanlyDev on GitHub · 2026-11-25 06:24 UTC · original
HumanlyDev:tests/texture-states-skip-reporting→main· +4 −3 · 1 files · 1 commits · merged 2026-11-25 10:57 UTCReport
crates/xcl/tests/texture_states.rsskips directly onstderrsoscripts/test.ps1counts them, and route the missing-GPU branch throughrunner::skip_test("no GPU")soXCL_REQUIRE_GPUenforces GPU presence. Test-only change undercrates/xcl/tests/.What is in it
crates/xcl/tests/texture_states.rs:println!("SKIPPED ...")on the missing-GPU branch withxcl::gpu::recomp::runner::skip_test("no GPU").println!("SKIPPED ...")on the two missing-debug-layer branches withwriteln!(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 whenXCL_REQUIRE_GPUis set.Tested
32.0.16.1088), AMD Ryzen 5 7600, Windows 11 Pro10.0.26200(build26200),rustc 1.100.0 (0ef1bc386 2026-11-09), DXC1.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: 20no wave64, 3per-lane form#1426refusals, 1no heap windows, 1cannot disable the driver cache (Windows Developer Mode is required)).Regression run
crates/xcl/tests/(no runtime files undercrates/xcl/src/modified).Not tested
d3d12SDKLayers.dll), retail titles /XCL_SAMPLE_*, AMD RDNA3/4, Linux / Wine.AI use
crates/xcl/tests/texture_states.rs, updated the skip reporting paths, ran the tests, and drafted this PR description.Use xcl::gpu::recomp:🏃: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)@DavidM1911 on GitHub · 2026-11-25 07:04 UTC · original
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!
@JJAutoCompare on GitHub · 2026-11-25 07:05 UTC · original
Independent Windows x64 + Intel Arc A770 test report on commit
04e9cee8442c74c78f5c2e22d4207ecb00413d09.Environment
d3d12SDKLayers.dll)32.0.101.9175, Tiled Resources Tier 4, Resource Heap Tier 1,DoublePrecisionFloatShaderOps=0)rustc 1.100.0 (0ef1bc386 2026-11-09)(debug build), DXC1.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 withoutXCL_REQUIRE_GPUand withXCL_REQUIRE_GPU=1:Results
XCL_REQUIRE_GPU=1): Exercised passed: 0, Failed: 0, Ignored: 0, Skipped: 1 (libtest reported1 passed, exit code 0, 0.00s)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)).XCL_REQUIRE_GPU=1also exited 0 without failing on this host.Not tested
AI use
gemini-4-neon).@futurepro62 on GitHub · 2026-11-25 07:03 UTC · original · edited 2026-11-25 07:09 UTC
Full-suite run, since this PR has no test report yet. Tested exact head
04e9cee(on its base6ea813a).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::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.#[test]functions in the diff.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 #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))),heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows).--skipleaves out tests that fail on main568e7dbtoo, not because of this PR. On NVIDIA:heap_window_out_of_memory_falls_back_to_the_switch_form(#1651), the fourgpu::recomp::lower_dxil::tests::*_programs_on_the_gputests,const_and_null_mask_operands_agree_with_hlsl_on_the_gpuandmask_ff0_and_flbit_agree_with_hlsl_on_the_gpu(follow-up on #1651) fail becauserunner::skip_testturns their skips into failures underXCL_REQUIRE_GPU=mesh, andgpu::dxil::fuzz_testsseeds 70, 545, 1019 and 1507 failCreateComputePipelineStatewithE_OUTOFMEMORYon this card (drivers 616.64 and 621.40). On AMD:fuzz_validate_and_gpu_1fails on seed 540 (res[833]0x7 vs CPU 0x6). The AMD run does not setXCL_REQUIRE_GPU.Not tested
AI use