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

Closed
R0Y00 wants to merge 1 commit from upstream-pr/2707 into main
R0Y00 commented 2026-11-26 02:57:29 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-26T02:57:29Z.


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
<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6618506950 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2707). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-26T02:57:29Z. --- ## 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 ```
upstream-sync closed this pull request 2026-11-26 04:04:27 +00:00
R0Y00 commented 2026-11-26 04:04:36 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-26T03:11:53Z.


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7181483404 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2707#issuecomment-7181483404). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-26T03:11:53Z. --- 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

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!2699
No description provided.