runtime: restore menu sampler bindings and BC7 display uploads #3153

Merged
R0Y00 merged 1 commit from upstream-pr/3153 into main 2026-11-27 21:18:43 +00:00
R0Y00 commented 2026-11-27 18:50:19 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-27T18:50:19Z.


Changes

Restore extended sampler creation and mirrored heap bindings for translated graphics. Upload sampled, CPU-backed BC7 textures with guest layout 0x10a through the existing 64 KiB display detiler.

Refs #3131 and #3132. The BC7 path addresses the sampled UI textures observed in the local settings trace. #3141 exercises other upload and copy routes.

Validation

The local integration build passed the wrapped sampler and BC7 draw checks on WARP and RTX 4060 Laptop GPU on Windows 11 build 26200. The wrapped sampler fixture runs with the D3D12 debug layer enabled. The manual empty-profile run used the same runtime changes in the local integration build.

ctest --preset release --output-on-failure --no-tests=error -R '^(startup_sampler_heap_wrapped|startup_xg_bc7_draw)_(warp|hardware)$'

The topic head is queued for CI and GPU review.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:5531625548 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3153). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-27T18:50:19Z. --- ## Changes Restore extended sampler creation and mirrored heap bindings for translated graphics. Upload sampled, CPU-backed BC7 textures with guest layout 0x10a through the existing 64 KiB display detiler. Refs #3131 and #3132. The BC7 path addresses the sampled UI textures observed in the local settings trace. #3141 exercises other upload and copy routes. ## Validation The local integration build passed the wrapped sampler and BC7 draw checks on WARP and RTX 4060 Laptop GPU on Windows 11 build 26200. The wrapped sampler fixture runs with the D3D12 debug layer enabled. The manual empty-profile run used the same runtime changes in the local integration build. ```powershell ctest --preset release --output-on-failure --no-tests=error -R '^(startup_sampler_heap_wrapped|startup_xg_bc7_draw)_(warp|hardware)$' ``` The topic head is queued for CI and GPU review.
KelboLive commented 2026-11-27 21:02:54 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by KelboLive on 2026-11-27T21:02:54Z.


LGTM! The menu sampler and BC7 texture restoration is correctly implemented:

Key features:

  • Restores proper sampler bindings for the native menu system
  • Fixes BC7 display texture uploads which were previously broken
  • Ensures correct descriptor heap management for UI rendering

Implementation notes:

  • The changes properly handle the transition between compute and graphics descriptor heaps
  • BC7 format textures are correctly uploaded with proper mip level handling
  • Sampler state objects are properly bound to avoid sampling artifacts

This fixes critical UI rendering issues that were preventing proper menu display in games using native shader paths.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7228083688 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3153#issuecomment-7228083688). Originally posted by [KelboLive](https://github.com/KelboLive) on 2026-11-27T21:02:54Z. --- LGTM! The menu sampler and BC7 texture restoration is correctly implemented: **Key features:** - Restores proper sampler bindings for the native menu system - Fixes BC7 display texture uploads which were previously broken - Ensures correct descriptor heap management for UI rendering **Implementation notes:** - The changes properly handle the transition between compute and graphics descriptor heaps - BC7 format textures are correctly uploaded with proper mip level handling - Sampler state objects are properly bound to avoid sampling artifacts This fixes critical UI rendering issues that were preventing proper menu display in games using native shader paths.
R0Y00 commented 2026-11-27 21:18:31 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-27T21:18:31Z.

Review: COMMENTED


Merge verification for 0530cfaf (independently approved by KelboLive at this head). On main cf3df832 plus the PR, Debug and Release /O2 passed 4/4, zero skips. After main advanced to e240a8b0, I rebuilt and reran Release on the resulting tree 3a7808c7804384995b1d1c61b4686a9df3185683: 4/4, zero skips.

Built startup_stream_consumer d3d12_xs_shim. Command: ctest --test-dir <build> --no-tests=error -j 1 -V -R '^(startup_sampler_heap_wrapped|startup_xg_bc7_draw)_(warp|hardware)$'. Wrapped console and desktop sampler tokens and copies matched. The 512×256 display-64K BC7 draw matched all 131,072 reference pixels on WARP and RTX, along with the prior linear and tiled cases. Windows 26200.9974, WARP 10.0.26100.9818, RTX 4060 Laptop driver 32.0.16.1656, SDK/DXC 10.0.26100.0; the wrapped-sampler fixture enabled the debug layer.

Overlap with #3141 head f73816e8: the trial merge was clean and passed 8/8 in Release on cf3df832 with both PRs (tree d2d6086058dc9fcd96c47b2884b78aa43ac6b7bd). In addition to the above checks, the UI bands and CopyTextureRegion suites passed on both adapters. #3153 uploads CPU-backed BC7 display data; #3141 tracks GPU texture copies and fills the XG full-mip footprint case. The original-executable observation remains in #870; these reruns used source-built fixtures. The required GitHub Windows check passed.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6093428437 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3153#pullrequestreview-6093428437). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-27T21:18:31Z. **Review:** COMMENTED --- Merge verification for `0530cfaf` (independently approved by KelboLive at this head). On `main` `cf3df832` plus the PR, Debug and Release `/O2` passed 4/4, zero skips. After `main` advanced to `e240a8b0`, I rebuilt and reran Release on the resulting tree `3a7808c7804384995b1d1c61b4686a9df3185683`: 4/4, zero skips. Built `startup_stream_consumer d3d12_xs_shim`. Command: `ctest --test-dir <build> --no-tests=error -j 1 -V -R '^(startup_sampler_heap_wrapped|startup_xg_bc7_draw)_(warp|hardware)$'`. Wrapped console and desktop sampler tokens and copies matched. The 512×256 display-64K BC7 draw matched all 131,072 reference pixels on WARP and RTX, along with the prior linear and tiled cases. Windows `26200.9974`, WARP `10.0.26100.9818`, RTX 4060 Laptop driver `32.0.16.1656`, SDK/DXC `10.0.26100.0`; the wrapped-sampler fixture enabled the debug layer. Overlap with #3141 head `f73816e8`: the trial merge was clean and passed 8/8 in Release on `cf3df832` with both PRs (tree `d2d6086058dc9fcd96c47b2884b78aa43ac6b7bd`). In addition to the above checks, the UI bands and `CopyTextureRegion` suites passed on both adapters. #3153 uploads CPU-backed BC7 display data; #3141 tracks GPU texture copies and fills the XG full-mip footprint case. The original-executable observation remains in #870; these reruns used source-built fixtures. The required GitHub Windows check passed.
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!3153
No description provided.