D3D12.X: route stream graphics PSO creation through create_graphics_pso_tracked #1506
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1516"
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?
Imported from ivall/xcl. Originally posted by hajduzsolt on 2026-11-24T17:10:11Z.
Runtime fix verified with unit tests and RX 9070 XT smoke run.
What is in it
crates/xcl/src/hle/d3d12x/real.rs: exportdev_create_graphics_pso_streamand routeStreamPipeline::Graphicsthroughdevice_x::create_graphics_pso_tracked(..., stream = true).crates/xcl/src/hle/d3d12x/device_x.rs: updatecreate_graphics_pso_trackedto acceptstream: booland invokedev_create_graphics_pso_streamfor streams, registering the resulting PSO vianote_base.crates/xcl/src/hle/d3d12x/device_x.rs: add unit teststream_graphics_pso_is_tracked_as_baseverifying base depth bias tracking and cleanup viaforget_base.Tested
cargo test)cargo test --workspace -- --test-threads=2: 744 passed, 0 failed, 12 ignoredcargo test -p xcl --lib hle::d3d12x::device_x::tests: 9 passed, 0 failedRegression run
main:
PR:
Not tested
AI use
device_x.rsandreal.rs, and unit test verification.Imported from ivall/xcl. Originally posted by GonZiin on 2026-11-24T17:32:01Z.
Review: COMMENTED
The new test passes with the stream dispatch change reverted. It calls
note_basedirectly, so it verifies the existing registration and cleanup helpers without exercisingdev_create_pipeline_state, where the regression occurs.Tested
d3fe509ae10c907510ad3fab94727ab31d2370dc,cargo test -p xcl --lib stream_graphics_pso_is_tracked_as_basereported 1 passed, 0 failed, 0 ignored.StreamPipeline::Graphicsarm back to callinggraphics_psodirectly. The same command still reported 1 passed, 0 failed, 0 ignored.Please add a regression test that submits a graphics stream through
dev_create_pipeline_stateand checks the resulting PSO's base entry, or exercise the dispatch with a mocked creation function and assert that the tracking path was reached.Not tested
GPU drawing and retail smoke runs for this revision.
AI use
Codex (
gpt-6.2-sol) reviewed the call path, ran the test before and after reverting the dispatch arm locally, and drafted this review.Imported from ivall/xcl. Originally posted by gut0to on 2026-11-24T18:52:31Z.
Review: COMMENTED
The full suite and paired smoke reports are useful. One CONTRIBUTING.md detail remains: it asks for the names of skipped GPU tests on the adapter, but this Tested section gives only the skip count/categories. Could you list the exact skipped test names to make the run reproducible? AI-assisted review; I checked the section against the guide.
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T18:53:54Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~21 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodifiedmain.)Thanks!
Imported from ivall/xcl. Originally posted by hajduzsolt on 2026-11-24T19:13:38Z.
Thanks for the regression-test review. The stream dispatch now has a synthetic test that sends a graphics descriptor through the dispatch into the real tracking logic with mocked PSO creation, then checks the resulting base entry.
cargo test --workspace -- --test-threads=2passed; the library run had 724 passed and 21 ignored. Retail smoke verification is pending.Imported from ivall/xcl. Originally posted by hajduzsolt on 2026-11-24T19:25:10Z.
Follow-up on the skipped GPU checks: on head
8c60813,cargo test --workspace -- --test-threads=2 --nocapturepassed with these two tests reporting skipped GPU work because the D3D12 debug layer was unavailable:test_title_draws_with_a_root_signature_under_the_debug_layeruploads_start_from_each_subresources_stateThe library run reported 724 passed and 21 ignored. The smoke blocks in the description are left to the automated verifier.
Imported from ivall/xcl. Originally posted by throny on 2026-11-24T20:29:54Z.
Two contributors checked independently and found that this PR makes the same change as #1661 (for #1489): #1607, group D34. They suggest keeping #1661. If you agree, closing this PR or joining the other one would save the maintainers a review. If the two differ in a way the checks missed, a note in #1607 helps.
This is a hint, not a request from the maintainers; nobody from the project has adopted #1607 so far.
AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table.
Imported from ivall/xcl. Originally posted by ivall on 2026-11-24T20:44:43Z.
Closing this as a duplicate: the contributors who checked group D34 in #1607 agree that #1661 makes the same change (a graphics pipeline made from a stream goes through
create_graphics_pso_tracked) and suggest keeping #1661, which also tests it with the test title. You were first with this one, so thank you in particular.This says nothing about the quality of the code here. If this PR covers a case #1661 does not, or #1661 is closed without being merged, say so and I'll reopen it.
Thank you for the work.
AI use: Claude Code (Claude Opus 5.5) wrote this comment; the decision is the maintainer's.
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-26T05:40:31Z.
Re-verification on RTX 3060 Ti (Windows 11): still a merge conflict with current
mainon the new head — needs another rebase before it can be tested.Pull request closed