Tests: verify CheckFeatureSupport, reserved resource, and tiling parity #1786
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!1786
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1786"
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?
@Vadson159 on GitHub · 2026-11-24 20:41 UTC · original
Vadson159:tests/d3d12-reserved-tiling-and-features→main· +749 −0 · 1 files · 1 commits · openAdds host-driver parity and contract tests for
ID3D12Device::CheckFeatureSupport(#13),CreateReservedResource(#30),CreateReservedResource1(#55), andGetResourceTiling(#42) without requiring console game files. Part of #480.What is in it
check_feature_support_matches_host_driver_and_console_extensions: checks payload/HRESULT parity across standardD3D12_FEATURE_*queries (D3D12_OPTIONS..OPTIONS7,ARCHITECTURE/1,GPU_VIRTUAL_ADDRESS_SUPPORT,SHADER_MODEL,ROOT_SIGNATURE,FEATURE_LEVELS,FORMAT_SUPPORT,FORMAT_INFO,MULTISAMPLE_QUALITY_LEVELS,PLACED_RESOURCE_SUPPORT_INFO),XCL_RAYTRACINGhandling inOPTIONS5, console oversized (+4bytes) and undersized (-4bytes) buffer fallbacks, console-only formats (116..=120) mapping + input format restoration, and null-pointer error parity.create_reserved_resource_and_v1_match_host_driver: checksCreateReservedResourceandID3D12Device5::CreateReservedResource1parity withreal::orig_fnacross buffers and reserved textures (GetDesc(), HRESULTs on valid and invalid descriptors, nullppv), verifiesnote_reservedkeepsMapreturningE_INVALIDARG, and exercises the unknown-IIDE_NOINTERFACEfallback (creator!) when the D3D12 debug layer is inactive.get_resource_tiling_matches_host_driver_and_d3d12_contract: checksGetResourceTilingparity withreal::orig_fnacross reserved buffers, non-reserved committed textures, multi-mip/array/BC1/depth/3D reserved textures, omitted optional out-pointers, partialFirstSubresourceTilingToGetslices, vendor-independent 64 KiB packed/standard tile accounting, andvram::placereserved textures.Tested
32.0.32029.2010), AMD Radeon(TM) Graphics (driver32.0.21045.29003), Microsoft Basic Render Driver (XCL_ADAPTER=warp), AMD Ryzen 7 9800X3D, Windows 11 Pro (10.0.26300),rustc 1.100.0 (0ef1bc386 2026-11-09).\scripts\test.ps1(cargo build --workspace && cargo test --workspace -- --test-threads=4, debug, default GPU RX 9070 XT): 892 passed, 0 failed, 42 ignored (SKIPPED GPU tests:heap_window_out_of_memory_falls_back_to_the_switch_form: no heap windows;tests\d3d12_reserved_tiling_and_features.rs: 3 passed, 0 failed, 0 ignored)cargo test -p xcl --test d3d12_reserved_tiling_and_features(--nocapture, debug):XCL_ADAPTER="Radeon(TM)"(iGPU): 3 passed, 0 failed, 0 ignoredXCL_ADAPTER=warp: 3 passed, 0 failed, 0 ignoredXCL_D3D12_DEBUG=1 -- --test-threads=1: 3 passed, 0 failed, 0 ignoredcargo test -p xcl --release --test d3d12_reserved_tiling_and_features -- --nocapture: 3 passed, 0 failed, 0 ignoredpython -B -m unittest discover -s scripts -p "test_*.py" -v: 16 passed, 0 failedpython scripts/pr_check.py --local: passed (description ok)Regression run
Not needed: test-only change outside
crates/xcl/src.Not tested
XCL_SAMPLE_*sample tests (XCL_SAMPLE_RPF, XCL_SAMPLE_DLLS, XCL_SAMPLE_TTPF, XCL_SAMPLE_BCPACK, XCL_SAMPLE_BK2, XCL_SAMPLE_BVH4, XCL_SAMPLE_AWC, XCL_SAMPLE_XG, XCL_SAMPLE_DXCare not set on this machine)scripts/smoke.ps1(no retail game folder available)E_NOINTERFACEfallback block whileXCL_D3D12_DEBUG=1is active (skipped whenID3D12DebugDeviceis present becauseD3D12SDKLayers.dllfast-fails with0xc0000409on unsupportedriidinsideCreateReservedResource; verified in all non-debug-layer runs)cargo clippy -p xcl --test d3d12_reserved_tiling_and_features --no-deps(did not complete test target due to 2 pre-existing clippy errors inxcllibrary)AI use
crates/xcl/tests/d3d12_reserved_tiling_and_features.rs, ran the test and verification commands, and drafted this PR description.@Ctrl-Alt-Haze on GitHub · 2026-11-24 21:20 UTC · original
Tested (head
50ce7f4a5afb6cf09552d255ad133da415a281c4, NVIDIA GeForce RTX 5070 Ti, driver 32.0.16.2135, Wave32, AMD Ryzen 9 5950X, Windows 11 Build 26340,rustc 1.99.1, DXC1.8.2502.11, debug, synthetic tests only):.\scripts\test.ps1(cargo build --workspace+cargo test --workspace -- --test-threads=4): 892 passed, 0 failed, 42 ignored (includestests\d3d12_reserved_tiling_and_features.rs:3 passed, 0 failed;SKIPPEDGPU tests:2 (no wave64)—gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware;1 (no heap windows)—heap_window_out_of_memory_falls_back_to_the_switch_form).AI use: Antigravity (Google DeepMind; exact model version not exposed to agent) ran the test suite and formatted the results.
@futurepro62 on GitHub · 2026-11-24 22:22 UTC · original
Adding an AMD GPU (RDNA2, native wave64) to the report above, which has none, with an NVIDIA run alongside. Tested exact head
50ce7f4(on its baseb9b6ea6).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 pso_measurement_compiles_an_exact_synthetic_record: 890 passed, 0 failed, 42 ignored. SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.check_feature_support_matches_host_driver_and_console_extensions,create_reserved_resource_and_v1_match_host_driver,get_resource_tiling_matches_host_driver_and_d3d12_contract.XCL_ADAPTER=radeon),cargo test --workspace -- --test-threads=4: 892 passed, 0 failed, 42 ignored. SKIPPED:heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows),pso_measurement_compiles_an_exact_synthetic_record(cannot disable the driver cache (Windows Developer Mode is required): The application requested an operation that depends on an SDK component that is missing or mismatched. (0x887A002D)).--skipon NVIDIA. Both fail on main7f7e768too, not because of this PR: underXCL_REQUIRE_GPU=mesh,runner::skip_testturns their skips into failures.heap_window_out_of_memory_falls_back_to_the_switch_formskips whenXCL_HEAP_WINDOWSis unset (#1651), andshaders::tests::pso_measurement_compiles_an_exact_synthetic_recordskipped because Developer Mode was off. The AMD run does not setXCL_REQUIRE_GPU, so there both just print SKIPPED.Not tested
AI use
@DavidM1911 on GitHub · 2026-11-24 23:36 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~23 ignored. (Intermittent single-test flake under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodifiedmain.)Thanks!
@JJAutoCompare on GitHub · 2026-11-25 03:32 UTC · original
PR #1786 compatibility verification
Verified commit
50ce7f4a5afb6cf09552d255ad133da415a281c4on STOR-WINLAB. All three new D3D12.X tests passed in both runs. The workspace suite exited 1 with 18 failures across two other targets.Environment
Windows 11 Enterprise Evaluation build 26200.9974, AMD Ryzen 7 3800X, Intel Arc A770 16 GiB (driver 32.0.101.9175). The adapter reports wave widths 8–32 and
DoublePrecisionFloatShaderOps=0. DXC/DXIL 1.9.2609.5, rustc 1.100.0 (0ef1bc386 2026-11-09). Unoptimized Cargo profiles with debug info disabled.Tested
cargo build --workspaceandcargo test --workspace --no-runsucceeded outside the GPU lock. Both execution runs used the shared Arc A770 lock.cargo test -p xcl --test d3d12_reserved_tiling_and_features -- --nocapturereturned 3 passed, 0 failed, 0 ignored, 0 skip markers.CheckFeatureSupportmatched the host responses and passed the console format and buffer-size fallback checks.CreateReservedResourceandCreateReservedResource1passed host parity and reserved-resource Map checks. The log confirmed the unknown-IID fallback for both methods.GetResourceTilingpassed host parity and tile contract checks on the exercised buffer and texture cases.cargo test --workspace --no-fail-fast -- --test-threads=4returned 874 passed, 18 failed, 42 ignored across 20 test binaries and one doc-test summary. The 4SKIPPEDlines were two wave64 cases, one heap-window case, and one driver-cache measurement that could not disable the cache. The harness includes those skip-marked cases in its pass count. They provide no coverage for the skipped paths.Of the 17 library failures, 13 reported
CreateComputePipelineStatereturning0x80070057, including the FP64 tests. The other four were assertion failures in FMA overflow, implicit-LOD sampling, FP16 high-half preservation, and wave64 pixel reductions. The test-title e2e failure was dynamic depth bias viaRSSetDepthBiasX(#94), which returned a blue pixel where green was expected.Not tested
Main-branch baseline, other GPUs or drivers, native wave64, D3D12 debug layer (
d3d12SDKLayers.dllabsent), retail titles, and optional sample data.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 againstpr1786-suite.logand published this report.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.