gpu: share render-target tracking between translated SRV and UAV checks #2707

Closed
github-bot wants to merge 1 commit from gh-pr/2707/head into gh-pr/2707/base
Owner

@⁠R0Y00 on GitHub · 2026-11-26 02:57 UTC · original
R0Y00:codex/share-render-target-tracking → main · +1 −5 · 1 files · 1 commits · closed without merging

Change

Keep one set of bound color and depth resources after the integration of #2448 and #2417. Each successful bind records the resources once, and each new bind still clears the previous state. Both translated draw attachment validation and pixel UAV alias checks continue to use the same tracking.

The duplicate members on main cause MSVC C2086. The Windows logs for #2454 and #2704 show both failing declarations before tests start.

Validation

Windows Release compiled both D3D12 targets and passed all 6 CTests on WARP and RTX 4060 Laptop (driver 32.0.16.1656), zero skips. The two attachment tests verified MRT, color plus DSV, depth-only samples, and the expected no-attachment and sampled-RTV refusals. Both pixel UAV tests kept their alias refusals and wrong-EXEC control.

cmake --build --preset release --target startup_indirect_draw_indexed startup_stream_consumer d3d12_xs_device_obj
ctest --preset release --no-tests=error -R '^startup_(indirect_(draw_indexed|translated_targets)|pixel_uav)_(warp|hardware)$' -V
**@⁠R0Y00** on GitHub · 2026-11-26 02:57 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/2707) `R0Y00:codex/share-render-target-tracking` → `main` · +1 −5 · 1 files · 1 commits · closed without merging ## Change Keep one set of bound color and depth resources after the integration of #2448 and #2417. Each successful bind records the resources once, and each new bind still clears the previous state. Both translated draw attachment validation and pixel UAV alias checks continue to use the same tracking. The duplicate members on main cause MSVC C2086. The Windows logs for #2454 and #2704 show both failing declarations before tests start. ## Validation Windows Release compiled both D3D12 targets and passed all 6 CTests on WARP and RTX 4060 Laptop (driver 32.0.16.1656), zero skips. The two attachment tests verified MRT, color plus DSV, depth-only samples, and the expected no-attachment and sampled-RTV refusals. Both pixel UAV tests kept their alias refusals and wrong-EXEC control. ```powershell cmake --build --preset release --target startup_indirect_draw_indexed startup_stream_consumer d3d12_xs_device_obj ctest --preset release --no-tests=error -R '^startup_(indirect_(draw_indexed|translated_targets)|pixel_uav)_(warp|hardware)$' -V ```
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 01:16:56 +00:00
github-bot closed this pull request 2026-11-27 01:16:56 +00:00
Author
Owner

@⁠R0Y00 on GitHub · 2026-11-26 03:11 UTC · original

Superseded by #2706. I verified that main now has one shared set of color and depth members and that the duplicate declarations causing C2086 are gone.

**@⁠R0Y00** on GitHub · 2026-11-26 03:11 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/2707#issuecomment-7181483404) Superseded by #2706. I verified that main now has one shared set of color and depth members and that the duplicate declarations causing C2086 are gone.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.