d3d12_xs: skip compute pipelines quietly in the rect-list path #324
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
library
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/omonkeyz--xbox-emulator!324
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/324/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?
@GDAgent on GitHub · 2026-11-23 19:02 UTC · original
GDAgent:fix/d3d12-rectlist-skip-compute-pso→main· +401 −26 · 7 files · 3 commits · closed without mergingBuilds on #280 (rect-list pipelines from PSO streams). This branch carries #280's two commits (
5441680,025cc11); only the third commit (09ecfe5) belongs to this PR. Once #280 lands I will rebase ontomain; until then please review the last commit only (git diff 025cc11..).What
d3d12_xs:cl2_state.rs(apply_rect), with two small lookups indevice_x.rsandpso_async.rs. No exports change.A title can bind a compute pipeline on a graphics command list while the primitive topology is still 17 (rect list).
apply_rectthen treated the PSO as a graphics pipeline, found neither a recorded PC description nor a pipeline stream, and logged an "unknown pipeline" refusal. A compute pipeline draws nothing, so there is nothing to expand and nothing to warn about.apply_rectreturns without a refusal when the PSO is a known compute pipeline: one registered throughdevice_x::register_compute(CreateComputePSO_X, the PC compute entry point that forwards to it, deserialised and derived compute PSOs) or apso_asynccompute placeholder handle.device_x::is_computeandpso_async::is_compute_placeholderare the two lookups;rectlist::was_refusedis#[cfg(test)]only.Why
Evidence from DRED-marked runs of The Matrix Awakens (Xbox Series X build), native Windows 11 on an RDNA2 GPU (gfx1032): two runs logged 26 and 35 unknown-pipeline refusals. With
TOMBOX_DRED=2each refusal line was extended locally with the PSO's shader hashes, and every one of them wasvs 0, ps 0, cs <non-zero>: all compute pipelines. The refusals were only logged; nothing was drawn wrongly because of them.Tests
warp_rectlist_compute_pso_bound_under_topology_17_is_skipped_quietly(ignored by default like the other rect-list tests): binds a registered compute PSO and an unregistered one under topology 17, checks that only the unregistered one is refused, then draws a graphics rect on the same list and checks all four corners. With the new match arm removed it fails with "registered compute PSO ... was reported as an unknown rect-list pipeline".cargo test -p d3d12_xs --lib warp_rectlist -- --ignored: 3 passed, 0 failed.cargo test -p d3d12_xs --lib -- --test-threads=1(TOMBOX_REMOVED_EXIT_MS=off): 661 passed, 4 failed, 73 ignored. The four failures are not touched by this PR and also fail onmainon this GPU (placement tests: see the separate PR; fixture test: no console DLL):alias::tests::msaa_depth_with_a_larger_pc_layout_never_overlaps_the_next_title_placement,placed_offset::tests::uneven_views_get_exact_helpers_and_msaa_shares_the_alias_heap,title_shadow::tests::buffer_then_texture_migrates_to_one_local_heap_and_keeps_bytes(placement tests that fail on an RDNA2 GPU; separate PR), andxs_exports::console_fixed_tests::fixed_result_dxgix_exports_match_every_console_d3d12_xs(needs a consoled3d12_xs.dllfixture).dred::tests::report_is_one_shot_and_needs_an_armed_devicepasses when run on its own withoutTOMBOX_REMOVED_EXIT_MS.pr_gate.py --base 025cc11(the head of #280): 0 problems (5 files checked).Not verified
pso_asyncplaceholder lookup has no dedicated test (it needs the async PSO machinery); it reads thekindof the existing placeholder map.main: the branch stays on the base of #280 so that the stack is exactly #280 plus one commit.A title can bind a compute pipeline on a graphics command list while the primitive topology is still 17 (rect list). The rect-list path then looked the PSO up as a graphics pipeline, found neither a recorded PC description nor a pipeline stream, and logged it as an "unknown pipeline" refusal. Compute pipelines draw nothing, so there is nothing to expand. apply_rect now returns without a refusal when the PSO is a compute pipeline: either one registered by CreateComputePSO_X (and the other paths that call device_x::register_compute) or a pso_async compute placeholder. A PSO that is neither graphics nor known compute is still refused and logged as before. Seen in The Matrix Awakens (native Windows 11, RDNA2): two runs with DRED markers logged 26 and 35 unknown-pipeline refusals, and every one of them carried only a compute shader hash (vs 0, ps 0, cs non-zero). Test: warp_rectlist_compute_pso_bound_under_topology_17_is_skipped_quietly (WARP, ignored by default) binds a registered compute PSO and an unregistered one under topology 17, checks that only the unregistered one is refused, then checks that a graphics rect drawn afterwards on the same list still covers all four corners. With the new match arm removed the test fails ("registered compute PSO ... was reported as an unknown rect-list pipeline").@omonkeyz on GitHub · 2026-11-25 13:49 UTC · original
Applied on main in
56944cf(cherry-picked onto the current history with your authorship kept; comment lines stripped per CONTRIBUTING). Thank you.Pull request closed