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

Manually merged
github merged 1 commit from gh-pr/2636/head into gh-pr/2636/base 2026-11-27 01:09:50 +00:00
Owner

@⁠chasegrindy on GitHub · 2026-11-25 23:57 UTC · original
chasegrindy:fix/slot35-compute-view-heap → main · +58 −12 · 3 files · 1 commits · merged 2026-11-26 00:01 UTC

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.

**@⁠chasegrindy** on GitHub · 2026-11-25 23:57 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/2636) `chasegrindy:fix/slot35-compute-view-heap` → `main` · +58 −12 · 3 files · 1 commits · merged 2026-11-26 00:01 UTC 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://git.gtahub.st/github/R0Y00--Xbox2Windows/pulls/2470). 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.
Track ordinary and oversized compute view heaps separately from the graphics lookup. Keep the table when the same heap is rebound and clear it on changes or unset. Cover the recorder in the CPU checks.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 01:09:48 +00:00
github manually merged commit 8617a5223f into gh-pr/2636/base 2026-11-27 01:09:50 +00:00
Author
Owner

@⁠R0Y00 on GitHub · 2026-11-26 00:01 UTC · original · approved these changes

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.

**@⁠R0Y00** on GitHub · 2026-11-26 00:01 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/2636#pullrequestreview-6066710690) · **approved these changes** 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.
This discussion has been locked. Commenting is limited to contributors.
No description provided.