D3D12.X: route stream graphics PSO creation through create_graphics_pso_tracked #1516
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1516
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1516/head"
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?
@hajduzsolt on GitHub · 2026-11-24 17:10 UTC · original
hajduzsolt:fix/stream-pso-tracked→main· +100 −12 · 2 files · 2 commits · closed without mergingRuntime 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.github-bot referenced this pull request2026-11-26 04:59:09 +00:00
@DavidM1911 on GitHub · 2026-11-24 18:53 UTC · original
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!
@hajduzsolt on GitHub · 2026-11-24 19:13 UTC · original
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.@hajduzsolt on GitHub · 2026-11-24 19:25 UTC · original
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.
@throny on GitHub · 2026-11-24 20:29 UTC · original
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.
@ivall on GitHub · 2026-11-24 20:44 UTC · original
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.
@DavidM1911 on GitHub · 2026-11-26 05:40 UTC · original
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