Repository navigation
Conversation
|
Full-suite run, since this PR has no test report yet. Tested exact head Tested
Not tested
AI use
|
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
XCL PR #1619 focused Windows verificationTested head Tested
Not tested Coverage was limited to full-workspace compilation and the focused PR test. The full GPU workspace suite, real D3D12 pipeline creation and retail-title smoke runs were omitted. 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 against |
|
Independent Windows run on 8cc8b6c. Windows 11 build 26300, Ryzen 7 9800X3D, RTX 3080 Ti (621.35), Rust 1.99.1 MSVC, DXC 1.8.2502.11.
With the D3D12 debug layer enabled and asynchronous PSO creation off, the scratch fixture verified that XCL kept its own root-signature reference. After dropping the caller's reference, both
AI use: Codex (GPT-6, exact variant unspecified) wrote the scratch fixture, ran the tests and drafted this report. |
8cc8b6c to
3aa4690
Compare
device_x::note_base copied the raw D3D12_GRAPHICS_PIPELINE_STATE_DESC bytes into BASES without retaining pRootSignature. In D3D12 a title may release a root signature right after CreateGraphicsPipelineState; later calls to CreateDerivedPipelineStateX or the RSSetDepthBiasX patched-PSO fallback would then pass a dangling pointer into CreateGraphicsPipelineState. Retain a non-null pRootSignature via ID3D12RootSignature::from_raw_borrowed().cloned() inside Base and drop replaced or removed Base entries outside the BASES mutex lock. Part of xcl-dev#1488 (XCL-BT-005). Assisted-by: Antigravity (Gemini 4 Neon) Rebased onto main and re-verified with Claude Code (Claude Sonnet 5.5). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
3aa4690 to
717b198
Compare
|
Rebased onto
Tested (CPU only, no GPU touched; debug build, Windows 11)
Not tested
AI use: Claude Code (Claude Sonnet 5.5): resolved the rebase conflict and ran the build and test above. |
|
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
Thanks! — Devin |
device_x::note_basecopied rawD3D12_GRAPHICS_PIPELINE_STATE_DESCbytes intoBASESwithout retainingpRootSignature. In D3D12 a title may release itsID3D12RootSignatureimmediately afterCreateGraphicsPipelineState; later calls toCreateDerivedPipelineStateXor theRSSetDepthBiasXpatched-PSO fallback would then pass a dangling pointer intoCreateGraphicsPipelineState. Retain non-nullpRootSignatureinBaseviaID3D12RootSignature::from_raw_borrowed().cloned()and release replaced or removedBaseentries outside theBASESmutex lock. Part of #1488 (XCL-BT-005).What is in it
crates/xcl/src/hle/d3d12x/device_x.rs: retainpRootSignatureinBaseonnote_base, drop oldBaseentries outside theBASESlock innote_base/forget_base/register_test_base, and add unit testbase_retains_root_signature_until_forgotten. Rebased ontomain379725a; the only conflict was the end of thetestsmodule, where both tests were kept.Tested
3aa4690173e1651d4d51a5681e927f88b01edb88, no uncommitted changes.cargo test -p xcl --lib hle::d3d12x::device_x::tests::base_retains_root_signature_until_forgotten -- --exact: 1 passed / 0 failed.cargo build --workspaceandcargo build --release -p xcl: passed.cargo test --workspace --no-fail-fast -- --test-threads=4: 1254 passed / 1 failed / 46 ignored. The one failure isgpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1(seed 722,res[30] = 0x1, CPU 0x7fffffff). It fails the same way on cleanmain379725aon this GPU (run separately: 0 passed / 1 failed), so it is not caused by this PR.SKIPPED(7 lines, not coverage):f16_programs_on_the_gpux4 andf32_programs_on_the_gpux2 (unsupported V_MUL_F16 / V_PK_MUL_F16 / V_CVT_F16_F32, gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #1426), andheap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows).Regression run
same title, 60 s, release, same GPU; first
main, then this PR's headNot tested
CreateDerivedPipelineStateXor the patched-PSORSSetDepthBiasXfallback. No claim of title performance improvement.maintoo (see above).AI use
main, resolved the conflict, reran the build, test suite and both smoke runs, and rewrote this description.mainand this PR head, and updated the Regression run blocks.🤖 Generated with Claude Code