startup-d3d12: run compute pipelines that are already desktop DXIL #3768

Open
Leyukaka wants to merge 5 commits from upstream-pr/3768 into main
Leyukaka commented 2026-12-01 17:41:48 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-12-01T17:41:48Z.


Refs #1412

Takes over #1441 by @triggered02, which had no activity for 48 h. Their commits are kept unchanged; I will hand back if they resume. Supersedes #1441.

Changes

Rebased the slot 62 cache-loading changes onto main 959306d4; everything stays behind X2W_COMPUTE_DISPATCH=1, off by default. The loader now uses the existing desktop compute container checks before creating a PSO. The fixture checks that a malformed cache entry records zero compute invocations. The positive case then uses a PSO from a valid entry to write a UAV and reads it after a fence; it calls Dispatch on the desktop list directly rather than through slot 14, because slot 14 still refuses a root that carries a UAV. So it shows that the cached PSO is valid, not that slot 14 forwards it.

Verification

Commit a0fd8d2e7, dev preset, targets startup_list_dispatch_native startup_compute_binding_trace startup_compute_builder_gate_runtime startup_builder_module startup_stream_consumer:

ctest --preset dev --no-tests=error -R '^(startup_slot62_cache_(warp|hardware)|startup_compute_(cache|binding_trace_warp|builder_gate_runtime|builder_gate_request_warp)|startup_list_dispatch_native_((warp|hardware)|skip_srv_warp_control))$' -V

9/9 passed.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:5591137703 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3768). Originally posted by [Leyukaka](https://github.com/Leyukaka) on 2026-12-01T17:41:48Z. --- Refs #1412 Takes over #1441 by @triggered02, which had no activity for 48 h. Their commits are kept unchanged; I will hand back if they resume. Supersedes #1441. ## Changes Rebased the slot 62 cache-loading changes onto `main` `959306d4`; everything stays behind `X2W_COMPUTE_DISPATCH=1`, off by default. The loader now uses the existing desktop compute container checks before creating a PSO. The fixture checks that a malformed cache entry records zero compute invocations. The positive case then uses a PSO from a valid entry to write a UAV and reads it after a fence; it calls Dispatch on the desktop list directly rather than through slot 14, because slot 14 still refuses a root that carries a UAV. So it shows that the cached PSO is valid, not that slot 14 forwards it. ## Verification Commit `a0fd8d2e7`, `dev` preset, targets `startup_list_dispatch_native startup_compute_binding_trace startup_compute_builder_gate_runtime startup_builder_module startup_stream_consumer`: ``` ctest --preset dev --no-tests=error -R '^(startup_slot62_cache_(warp|hardware)|startup_compute_(cache|binding_trace_warp|builder_gate_runtime|builder_gate_request_warp)|startup_list_dispatch_native_((warp|hardware)|skip_srv_warp_control))$' -V ``` 9/9 passed.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/3768:upstream-pr/3768'
git switch 'upstream-pr/3768'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/3768'
git switch 'upstream-pr/3768'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/3768'
git switch 'upstream-pr/3768'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/3768'
git switch 'main'
git merge --squash 'upstream-pr/3768'
git switch 'main'
git merge --ff-only 'upstream-pr/3768'
git switch 'main'
git merge 'upstream-pr/3768'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows!3768
No description provided.