Skip to content

runtime: bind startup FP32 compute array UAV views - #2777

Merged
tedin7 merged 1 commit into
R0Y00:mainfrom
xiaoqi72665:runtime-fp32-array-uav
Nov 26, 2026
Merged

tedin7 merged 1 commit into
R0Y00:mainfrom
xiaoqi72665:runtime-fp32-array-uav

Conversation

@xiaoqi72665

Copy link
Copy Markdown
Contributor

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

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 d378c2d; 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.

Refs R0Y00#2742. Depends on the translator-only R0Y00#2744; preserves upstream author and maintainer changes. AI-assisted; synthetic fixtures only.
@tedin7

tedin7 commented Nov 26, 2026

Copy link
Copy Markdown
Collaborator

Review + Win2025 WARP receipt for head d378c2d.

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 tedin7 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review + Win2025 WARP receipt for head d378c2d.

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
tedin7 merged commit 96a7b4f into R0Y00:main Nov 26, 2026
5 checks passed
R0Y00 pushed a commit that referenced this pull request Nov 26, 2026
Refs #2742. Reuse the existing FP32 tracked array UAV binding (#2777) and 2D D16 widening; retain pixel array and partial-mask refusals. Verify source-built ISA fixtures with LLVM 15 and production slot-67/slot-14 dispatch on WARP and RX 7900 XT. AI-assisted.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants