Repository navigation
Tests: report texture_states skips on stderr and honor XCL_REQUIRE_GPU - #2154
Open
HumanlyDev wants to merge 1 commit into
Open
HumanlyDev wants to merge 1 commit into
HumanlyDev wants to merge 1 commit into
Conversation
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)
|
Full-suite run, since this PR has no test report yet. Tested exact head Tested
Not tested
AI use
|
Contributor
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
Independent Windows x64 + Intel Arc A770 test report on commit Environment
Command texture_states-de17443670004e00.exe --nocapture --test-threads=1Results
Not tested
AI use
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Report
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.