runtime: bind startup FP32 compute array UAV views #2769

Merged
xiaoqi72665 merged 1 commit from upstream-pr/2777 into main 2026-11-26 08:09:32 +00:00
xiaoqi72665 commented 2026-11-26 08:04:26 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by xiaoqi72665 on 2026-11-26T08:04:26Z.


Refs #2742. Follow-up to the merged translator-only #2744 (624f5927).

Changes

Consume the existing tex2da FP32 compute UAV manifest through the production fixed-table startup runtime. Validate the explicitly described array UAV and its mip/slice range, retain the caller's FirstArraySlice and ArraySize, and refuse an incompatible 2D view before dispatch. The merged translator and its pixel/packed-D16 array refusals are unchanged.

Reuse the existing slot-67/slot-14 consumer and encoded fixture. The test fills six physical RGBA32_FLOAT slices with distinct sentinels, selects four with FirstArraySlice=1, checks relative layers 1/3, full/partial EXEC, and compares all 6,144 words after the fence.

Verified locally

Commit d378c2d3e5; Windows 10 build 19045, DXC 1.8.2502.11. WARP 10.0.19041.5794 and RX 7900 XT 32.0.32029.2010. All four positive array cases per adapter had zero mismatches; wrong-layer and dropped-EXEC controls produced 128 and 32 mismatches respectively. A plain 2D UAV was refused with all 1,024 words unchanged. The ordinary 2D runtime regression also passed on both adapters.

cmake --build --preset dev --target startup_stream_consumer offscreen_check
ctest --preset dev --no-tests=error -j 1 -R '^startup_compute_dispatch_(array|texture)_(warp|hardware)$' -V

4/4 passed on the exact commit; 30/30 adjacent CTests passed on an identical Git source tree (bb834b2), no skips. The D3D12 debug layer is unavailable locally (D3D12GetDebugInterface: 0x887A002D); no debug-layer-clean claim. The unchanged encoded translator fixture passed LLVM 15 assembly verification in the upstream CI job; not a local LLVM run.

Source-built synthetic fixtures only; no game data or title execution. AI-assisted; commands and local GPU tests above were actually executed. Thanks to triggered02 and the maintainers for the translator and review work.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6622219189 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2777). Originally posted by [xiaoqi72665](https://github.com/xiaoqi72665) on 2026-11-26T08:04:26Z. --- Refs #2742. Follow-up to the merged translator-only #2744 (624f5927). ## Changes Consume the existing `tex2da` FP32 compute UAV manifest through the production fixed-table startup runtime. Validate the explicitly described array UAV and its mip/slice range, retain the caller's FirstArraySlice and ArraySize, and refuse an incompatible 2D view before dispatch. The merged translator and its pixel/packed-D16 array refusals are unchanged. Reuse the existing slot-67/slot-14 consumer and encoded fixture. The test fills six physical RGBA32_FLOAT slices with distinct sentinels, selects four with FirstArraySlice=1, checks relative layers 1/3, full/partial EXEC, and compares all 6,144 words after the fence. ## Verified locally Commit d378c2d3e5bdc38ad48256493293a74de8c278db; Windows 10 build 19045, DXC 1.8.2502.11. WARP 10.0.19041.5794 and RX 7900 XT 32.0.32029.2010. All four positive array cases per adapter had zero mismatches; wrong-layer and dropped-EXEC controls produced 128 and 32 mismatches respectively. A plain 2D UAV was refused with all 1,024 words unchanged. The ordinary 2D runtime regression also passed on both adapters. ```powershell cmake --build --preset dev --target startup_stream_consumer offscreen_check ctest --preset dev --no-tests=error -j 1 -R '^startup_compute_dispatch_(array|texture)_(warp|hardware)$' -V ``` 4/4 passed on the exact commit; 30/30 adjacent CTests passed on an identical Git source tree (bb834b2), no skips. The D3D12 debug layer is unavailable locally (D3D12GetDebugInterface: 0x887A002D); no debug-layer-clean claim. The unchanged encoded translator fixture passed LLVM 15 assembly verification in the upstream [CI job](https://github.com/R0Y00/Xbox2Windows/actions/runs/45777913254/job/139765987360); not a local LLVM run. Source-built synthetic fixtures only; no game data or title execution. AI-assisted; commands and local GPU tests above were actually executed. Thanks to triggered02 and the maintainers for the translator and review work.
upstream-sync closed this pull request 2026-11-26 09:04:48 +00:00
tedin7 commented 2026-11-26 09:04:48 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T08:08:27Z.

Review: COMMENTED


Review + Win2025 WARP receipt for head d378c2d3.

Review (code + fixture tests only; no game data, startup behavior on the title is not claimed):

  • tex2da manifest line parsed; array UAV view validated (dimension, plane, mip, FirstArraySlice/ArraySize inside the resource, single sample); caller's slice range kept; plain 2D view refused for an array slot. Packed/float format checks still run on both paths.
  • Test startup_compute_dispatch_array_check.py compares all words after the fence, with wrong-layer and dropped-EXEC controls.
  • Linux: python3 tests/docs_links_check.py, python3 tests/bidi_controls_check.py, git diff --check origin/main...HEAD: clean.

Verified on Windows Server 2025 (Build 26100, MSVC 14.44 + D3D12 WARP):

  • Debug: ctest --preset dev -R '^startup_compute_dispatch_(array|texture)_warp$': 2/2 passed (array_warp, texture_warp)
  • Release: same regex: 2/2 passed

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6070461349 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2777#pullrequestreview-6070461349). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-26T08:08:27Z. **Review:** COMMENTED --- Review + Win2025 WARP receipt for head d378c2d3. Review (code + fixture tests only; no game data, startup behavior on the title is not claimed): - `tex2da` manifest line parsed; array UAV view validated (dimension, plane, mip, FirstArraySlice/ArraySize inside the resource, single sample); caller's slice range kept; plain 2D view refused for an array slot. Packed/float format checks still run on both paths. - Test `startup_compute_dispatch_array_check.py` compares all words after the fence, with wrong-layer and dropped-EXEC controls. - Linux: `python3 tests/docs_links_check.py`, `python3 tests/bidi_controls_check.py`, `git diff --check origin/main...HEAD`: clean. Verified on Windows Server 2025 (Build 26100, MSVC 14.44 + D3D12 WARP): - Debug: `ctest --preset dev -R '^startup_compute_dispatch_(array|texture)_warp$'`: 2/2 passed (array_warp, texture_warp) - Release: same regex: 2/2 passed AI-assisted; commands listed were executed locally.
tedin7 commented 2026-11-26 09:04:52 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T08:08:22Z.


Review + Win2025 WARP receipt for head d378c2d3.

Review (code + fixture tests only; no game data, startup behavior on the title is not claimed):

  • tex2da manifest line parsed; array UAV view validated (dimension, plane, mip, FirstArraySlice/ArraySize inside the resource, single sample); caller's slice range kept; plain 2D view refused for an array slot. Packed/float format checks still run on both paths.
  • Test startup_compute_dispatch_array_check.py compares all words after the fence, with wrong-layer and dropped-EXEC controls.
  • Linux: python3 tests/docs_links_check.py, python3 tests/bidi_controls_check.py, git diff --check origin/main...HEAD: clean.

Verified on Windows Server 2025 (Build 26100, MSVC 14.44 + D3D12 WARP):

  • Debug: ctest --preset dev -R '^startup_compute_dispatch_(array|texture)_warp$': 2/2 passed (array_warp, texture_warp)
  • Release: same regex: 2/2 passed

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7186232236 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2777#issuecomment-7186232236). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-26T08:08:22Z. --- Review + Win2025 WARP receipt for head d378c2d3. Review (code + fixture tests only; no game data, startup behavior on the title is not claimed): - `tex2da` manifest line parsed; array UAV view validated (dimension, plane, mip, FirstArraySlice/ArraySize inside the resource, single sample); caller's slice range kept; plain 2D view refused for an array slot. Packed/float format checks still run on both paths. - Test `startup_compute_dispatch_array_check.py` compares all words after the fence, with wrong-layer and dropped-EXEC controls. - Linux: `python3 tests/docs_links_check.py`, `python3 tests/bidi_controls_check.py`, `git diff --check origin/main...HEAD`: clean. Verified on Windows Server 2025 (Build 26100, MSVC 14.44 + D3D12 WARP): - Debug: `ctest --preset dev -R '^startup_compute_dispatch_(array|texture)_warp$'`: 2/2 passed (array_warp, texture_warp) - Release: same regex: 2/2 passed AI-assisted; commands listed were executed locally.
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!2769
No description provided.