Repository navigation
Conversation
Adds host-driver parity and contract tests (without console game files) covering ID3D12Device::CheckFeatureSupport (#13), CreateReservedResource (#30), CreateReservedResource1 (#55), and GetResourceTiling (#42). Verifies D3D12 feature queries, oversized/undersized buffer fallbacks, console-only formats (116..=120), reserved resource creation and unknown IID fallback, note_reserved Map(E_INVALIDARG), vram::place tiling parity, and vendor-independent 64 KiB tiling invariants. Part of xcl-dev#480 Assisted-by: Antigravity (model name not provided to agent)
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.
Adds host-driver parity and contract tests for
ID3D12Device::CheckFeatureSupport(#13),CreateReservedResource(#30),CreateReservedResource1(#55), andGetResourceTiling(#42) without requiring console game files. Part of xcl-dev#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.Mirror of xcl-dev#1786 (auto-synced, do not edit).