Repository navigation
Conversation
heap_window_tests::device() opened any D3D_FEATURE_LEVEL_12_0 adapter without checking D3D_SHADER_MODEL_6_6, causing CreateComputePipelineState on its cs_6_6 shader to panic with E_INVALIDARG (0x80070057) on pre-SM 6.6 D3D12 GPUs such as Radeon RX 580. Check D3D12_FEATURE_SHADER_MODEL and return None with format_no_sm66_message so skip_test runs. Assisted-by: Antigravity (Gemini 4 Carbon)
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.
gpu_raw_window_view_reaches_its_topcompiles acs_6_6shader usingResourceDescriptorHeap, but its localdevice()helper opened anyD3D_FEATURE_LEVEL_12_0hardware adapter without checkingD3D_SHADER_MODEL_6_6. On pre-SM 6.6 D3D12 GPUs (such as AMD Radeon RX 580 / Polaris),CreateComputePipelineStatepanicked withE_INVALIDARG(0x80070057) instead of skipping.Check
D3D12_FEATURE_SHADER_MODEL >= D3D_SHADER_MODEL_6_6inheap_window_tests::device()and printagility::format_no_sm66_message(matchingrunner::init) before returningNonesoskip_test("no GPU")runs cleanly.What is in it
crates/xcl/src/gpu/recomp/heap_window_tests.rs: checkD3D12_FEATURE_SHADER_MODELforD3D_SHADER_MODEL_6_6indevice(), loggingformat_no_sm66_messageand returningNoneon pre-SM 6.6 adapters.Tested
rustc 1.100.0 (0ef1bc386 2026-11-09), DXCdxcompiler 1.8.2502.11(dxil 1.8.2502.11), debug build.origin/main(9039900):cargo test -p xcl --lib gpu_raw_window_view_reaches_its_toppanicked atheap_window_tests.rs:100withHRESULT(0x80070057).4e8d019):cargo test -p xcl --lib gpu_raw_window_view_reaches_its_top -- --nocapturelogsAMD Radeon RX 580 2048SP: no SM 6.6, printsSKIPPED ...: no GPU, and passes (1 passed, 0 failed).cargo test --workspace -- --test-threads=4on4e8d019: 858 passed, 0 failed, 42 ignored (243 SKIPPED GPU tests on RX 580).Regression run
crates/xcl/src/gpu/recomp/heap_window_tests.rs.Not tested
gpu_raw_window_view_reaches_its_top(host GPU is RX 580, pre-SM 6.6).AI use
Mirror of xcl-dev#1736 (auto-synced, do not edit).