Repository navigation
Conversation
|
|
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
…#2127, xcl-dev#2476, xcl-dev#2479, xcl-dev#2467, xcl-dev#2444, xcl-dev#2447, xcl-dev#2448 Integrates compositor RT tracking fix (xcl-dev#2480), split shader cache budget (xcl-dev#2475), foreign-thread deferred release (xcl-dev#2474), Wine 4-thread DXC cap (xcl-dev#2127), DXIL feature/reload fixes (xcl-dev#2476, xcl-dev#2479), DXC loader cleanup (xcl-dev#2467), console xcl-dev#14 null ppv guard (xcl-dev#2444), root-sig flag stripping (xcl-dev#2447), and two-pass stream canonicalization (xcl-dev#2448). Assisted-by: Antigravity (Gemini 4 Neon)
bmjask
left a comment
There was a problem hiding this comment.
No code-level blocker found. The shared helper preserves the caller descriptor, strips only console-only bits for both layouts, and current Windows CI is green. Nonblocking test gap: shared error-blob handling is covered only through the 1.0 serializer. A failing versioned-serializer case with NULL/non-NULL error output would validate ownership/reset in that path.
|
Test run on exact head Tested
Regression run (60 s, default settings, a retail title) main: this PR: No crash or device removal; frames 104 % of Not tested
AI use
|
|
Windows 10 data point for
So the stripping works on Windows 10 too. The last assertion depends on the runtime's error text, which the in-box runtime doesn't give. Checking only the failure code there would let the test pass on Windows 10 without Agility. |
…tSignature `D3D12SerializeVersionedRootSignature` already stripped Xbox console-only flag bits above `PC_FLAGS = 0xFFF` (e.g. `0x3000000`) and logged/cleaned up error blobs, whereas 1.0 `D3D12SerializeRootSignature` forwarded raw `D3D12_ROOT_SIGNATURE_DESC` straight to Windows `d3d12.dll`, which rejects unknown flag bits with `E_INVALIDARG`. - Share `PC_FLAGS = 0xFFF`, aligned stack-copy flag sanitization (`+32` in 40-byte `D3D12_ROOT_SIGNATURE_DESC`, `+40` in 48-byte `D3D12_VERSIONED_ROOT_SIGNATURE_DESC`), and error-blob logging/cleanup across both serializers via `serialize_root_sig`. - Zero caller-supplied `*err` before forwarding so failed calls never leave or dereference uninitialized pointers. - Add a WARP/CPU unit test verifying layout offsets, console-flag stripping with PC-flag preservation via `D3D12CreateRootSignatureDeserializer`, caller descriptor immutability, Windows 10 in-box / Agility error-blob handling, and runtime-independent error-blob forwarding and cleanup. Part of xcl-dev#1452 Part of xcl-dev#1333 Assisted-by: Google Antigravity (Gemini 4 Neon)
75c835d to
bd58663
Compare
|
Updated in |
|
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
Thanks! — Devin |
|
Re-run at
At AI-assisted (Claude Code): tests run on my machine, text drafted with Claude. |
What is in it
Strip Xbox console-only root-signature flags in
D3D12SerializeRootSignatureand share sanitization/error-blob handling withD3D12SerializeVersionedRootSignatureincrates/xcl/src/hle/d3d12x/mod.rs(+105/-34lines, single file):D3D12SerializeVersionedRootSignaturealready stripped console-only bits abovePC_FLAGS = 0xFFF(such as0x3000000) and logged/cleaned up error blobs, whereas 1.0D3D12SerializeRootSignatureforwarded rawD3D12_ROOT_SIGNATURE_DESCdirectly to Windowsd3d12.dll, which rejects unknown flag bits withE_INVALIDARG(0x80070057).serialize_root_sig<const QWORDS: usize>helper withPC_FLAGS = 0xFFF: copies the descriptor into an 8-byte-aligned stack buffer (40bytes / flags at+32forD3D12SerializeRootSignature;48bytes / flags at+40forD3D12SerializeVersionedRootSignature) only when!PC_FLAGSbits are set, drops unknown bits without mutating the caller's struct, zeroes caller-provided*errbefore forwarding, logs error-blob diagnostics on failure even whenerrisNULL, and releases temporary error blobs cleanly.hle::d3d12x::tests::serialize_root_signature_strips_console_flags_and_preserves_pc_flags) verifying descriptor layout offsets, console-flag stripping and PC-flag preservation viaD3D12CreateRootSignatureDeserializerfor both 1.0 and versioned serializers, caller-struct immutability, Windows 10 in-box / Agilityd3d12.dllfailure handling without assuming non-empty runtime error text on unknown versions (guardingblob_releasewhenerr_outis null), and runtime-independent error-blob forwarding andown_errcleanup via a mockID3DBlobvtable.Part of #1452
Part of #1333
Tested
origin/main(569f0fc5):XCL_ADAPTER=warp cargo test -p xcl --lib hle::d3d12x::tests -- --test-threads=1 --nocapturefailed1of1(D3D12SerializeRootSignature rejected console flags: 0x80070057).hle::d3d12x::tests(bd586636, rebased ontoorigin/maine1d84b7d):XCL_ADAPTER=warp cargo test --release -p xcl --lib hle::d3d12x::tests -- --test-threads=1 --nocapture):1 passed; 0 failed; 0 ignored(0.14 s).cargo test --release -p xcl --lib hle::d3d12x::tests -- --test-threads=1 --nocapture):1 passed; 0 failed; 0 ignored(0.37 s).cargo test --release --workspace --no-fail-fast -- --test-threads=4 --nocapture, RTX 4060):37test binaries,1424 passed; 0 failed; 46 ignored.29pre-existingSKIPPEDlines on this RTX 4060 host (21no wave64,3per-lane wave32 refused,3no D3D12 debug layer /d3d12SDKLayers.dll,1no heap windows,1cannot disable driver cache;0skipped inhle::d3d12x::tests).Regression run
Paired 60 s RTX 4060 smoke (
scripts/smoke.ps1 -Seconds 60) on baseorigin/mainvs PR head (1566vs1550frames =101.0%,60 60 60steady pace,0device removals,0crashes):Base (
origin/main):PR head:
Not tested
D3D12SerializeRootSignaturewith console-only flag bits (console-only flag stripping, PC-flag preservation viaD3D12CreateRootSignatureDeserializer, and error-blob cleanup are covered by the unit test against real Windowsd3d12.dlland mockID3DBlob).d3d12.dllwithout Agility SDK (this host runs Windows 11 26200; the updated test removes the assumption that unknown-version failures emit non-empty"version"text and guardsblob_releaseon null).d3d12SDKLayers.dllnot installed on this host).AI use
Written and verified with Google Antigravity (Gemini 4 Neon). All changes were validated locally with failing-first WARP tests, full release workspace tests, and paired 60 s RTX 4060 smoke runs.