Skip to content

Tests: verify D3D12.X null device, resource, fence, and PSO stream - #2374

Open
amazedturnip wants to merge 1 commit into
xcl-dev:mainfrom
amazedturnip:xcl/tests-d3d12x-null-device-and-pso-stream-contract-015603
Open

amazedturnip wants to merge 1 commit into
xcl-dev:mainfrom
amazedturnip:xcl/tests-d3d12x-null-device-and-pso-stream-contract-015603

Conversation

@amazedturnip

Copy link
Copy Markdown

Adds integration contract tests for the D3D12.X null backend (crates/xcl/src/hle/d3d12x/null.rs) in crates/xcl/tests/d3d12x_null_contract.rs. Covers subobject_payload layouts and capture_*_desc pointer/stream guards, exported device/blob/root-signature entry points, device queries and feature support, and ID3D12Resource, ID3D12Fence, ID3D12DeviceChild, and COM refcounting vtable contracts.

What is in it

  • crates/xcl/tests/d3d12x_null_contract.rs: add contract tests for subobject_payload (0..=28 and unknown types), capture_graphics_desc/capture_compute_desc/capture_stream_desc guards, D3D12XboxCreateDevice/D3D10CreateBlob/debug/root-sig entry points, device queries (GetNodeCount, GetAdapterLuid, GetCustomHeapProperties, GetResourceAllocationInfo, GetCopyableFootprints, CheckFeatureSupport OPTIONS5), resource Map/GPU VA/GetDesc/GetHeapProperties, Fence SetEventOnCompletion/Signal, DeviceChild::GetDevice, and COM refcounting.

Tested

Not tested

  • retail Xbox Series X|S title (not available on this host)
  • NVIDIA wave32 GPU (not run in this pass; verified on AMD Radeon native wave64)

AI use

  • Antigravity CLI (Gemini 4 Hydrogen (Medium)) assisted with diagnosis, implementation, tests, review, and description; all tests executed locally on AMD Radeon (native wave64).

Add integration contract tests for crates/xcl/src/hle/d3d12x/null.rs covering subobject_payload layouts (0..=28 and unknown types), capture_graphics_desc/capture_compute_desc/capture_stream_desc guards, D3D12XboxCreateDevice/D3D10CreateBlob/debug/root-sig entry points, device queries (GetNodeCount, GetAdapterLuid, GetCustomHeapProperties, GetResourceAllocationInfo, GetCopyableFootprints, CheckFeatureSupport OPTIONS5), resource Map/GPU VA/GetDesc/GetHeapProperties, Fence SetEventOnCompletion/Signal, DeviceChild GetDevice, and COM refcounting.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant