startup: invalidate slot 35 tables when the compute view heap changes #2628

Merged
chasegrindy merged 1 commit from upstream-pr/2636 into main 2026-11-26 00:01:53 +00:00
chasegrindy commented 2026-11-25 23:57:42 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by chasegrindy on 2026-11-25T23:57:42Z.


Slot 32 used the graphics heap selection to decide when to clear recorded compute tables. Graphics only tracks an oversized logical view heap there, so switching between two ordinary heaps left slot 35 pointing at the old table.

Track the compute heap separately, for ordinary and oversized shader-visible CBV/SRV/UAV heaps. Rebinding the same heap keeps the table. Selecting another heap or unsetting it clears the table without changing the compute root. Graphics lookup and sampler selection stay as they were.

startup_compute_root covers same and different ordinary and oversized heaps, switches between the two, unsetting, and the existing graphics selection rule. The old ordinary-heap filter fails those tests. The separate translated Dispatch checks are not part of this PR; they belong with #2470 as agreed in R0Y00’s reply.

Release at c461c847539e74244a59bd517cf9863a568ea0d4 on Windows 11 build 26300.9974, MSVC 19.44.35229 / SDK 10.0.26100.0: 4/4, no skips (two CPU checks plus native compute and graphics WARP controls).

cmake --build <build> --config Release --target d3d12_xs_shim startup_compute_root startup_logical_view_table_check d3d12x_compute_list_check d3d12x_graphics_list_check
ctest --test-dir <build> -C Release --no-tests=error -j 1 -R '^(startup_compute_root|startup_logical_view_table|d3d12x_(compute|graphics)_list_warp)$' -V

Refs #1803, #2470.

AI-assisted (GPT-6.2-sol). Tests ran locally with synthetic fixtures.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6616274259 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2636). Originally posted by [chasegrindy](https://github.com/chasegrindy) on 2026-11-25T23:57:42Z. --- Slot 32 used the graphics heap selection to decide when to clear recorded compute tables. Graphics only tracks an oversized logical view heap there, so switching between two ordinary heaps left slot 35 pointing at the old table. Track the compute heap separately, for ordinary and oversized shader-visible CBV/SRV/UAV heaps. Rebinding the same heap keeps the table. Selecting another heap or unsetting it clears the table without changing the compute root. Graphics lookup and sampler selection stay as they were. `startup_compute_root` covers same and different ordinary and oversized heaps, switches between the two, unsetting, and the existing graphics selection rule. The old ordinary-heap filter fails those tests. The separate translated Dispatch checks are not part of this PR; they belong with #2470 as agreed in [R0Y00’s reply](https://github.com/R0Y00/Xbox2Windows/pull/2470#issuecomment-7177445088). Release at `c461c847539e74244a59bd517cf9863a568ea0d4` on Windows 11 build 26300.9974, MSVC 19.44.35229 / SDK 10.0.26100.0: **4/4**, no skips (two CPU checks plus native compute and graphics WARP controls). ```powershell cmake --build <build> --config Release --target d3d12_xs_shim startup_compute_root startup_logical_view_table_check d3d12x_compute_list_check d3d12x_graphics_list_check ctest --test-dir <build> -C Release --no-tests=error -j 1 -R '^(startup_compute_root|startup_logical_view_table|d3d12x_(compute|graphics)_list_warp)$' -V ``` Refs #1803, #2470. AI-assisted (GPT-6.2-sol). Tests ran locally with synthetic fixtures.
upstream-sync closed this pull request 2026-11-26 01:01:58 +00:00
R0Y00 commented 2026-11-26 01:01:59 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-26T00:01:37Z.

Review: APPROVED


Reviewed 8617a522. Windows 11 build 26200 Release passed 6/6, zero skips, using ctest --preset release --no-tests=error -j 1 -R '^(startup_compute_root|startup_logical_view_table|d3d12x_(compute|graphics)_list_(warp|hardware))$' -V on WARP and RTX 4060 Laptop. In an isolated copy, restricting compute selection to oversized heaps again made startup_compute_root exit 1 on the ordinary-heap selection, ordinary-to-ordinary invalidation and unbind assertions. The translated Dispatch readbacks remain with #2470.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6066710690 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2636#pullrequestreview-6066710690). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-26T00:01:37Z. **Review:** APPROVED --- Reviewed `8617a522`. Windows 11 build 26200 Release passed 6/6, zero skips, using `ctest --preset release --no-tests=error -j 1 -R '^(startup_compute_root|startup_logical_view_table|d3d12x_(compute|graphics)_list_(warp|hardware))$' -V` on WARP and RTX 4060 Laptop. In an isolated copy, restricting compute selection to oversized heaps again made `startup_compute_root` exit 1 on the ordinary-heap selection, ordinary-to-ordinary invalidation and unbind assertions. The translated Dispatch readbacks remain with #2470.
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!2628
No description provided.