compute: name the packed D16 and indexed raw view kinds in manifest reasons #3397

Closed
github-bot wants to merge 1 commit from github-bot/gh-3395 into main AGit
Owner

@⁠Not-Saii on GitHub · 2026-11-28 19:01 UTC · original
Not-Saii:compute/manifest-kind-names → main · +5 −1 · 2 files · 1 commits · closed without merging

Refs #3226

The kind-name table behind format_compute_runtime_manifest's refusal reasons (#3270) predates packed_d16_x_uav and indexed_raw_srv. Programs that use them were reported as UAV kind unknown / SRV kind unknown, for example in startup_compute_half_buffer_uav_controls on main.

  • src/direct_compute_cache.cpp: both kinds are named. A static_assert ties the table's length to the last enumerator, so renaming or removing the last kind fails to compile. A kind appended after it still needs a name added by hand; the comment says so.
  • tests/native_compute_manifest_reasons.cpp: one more case, SRV kind indexed_raw_srv.

Only the reason text changes; what is published is unchanged. The triage_run.py allowlist already accepts these names. This does not fix startup_compute_half_buffer_uav_controls: its 1-channel store still has no manifest line for packed_d16_x_uav, which is SimSalabimse's claim on #3226. The failure message now names the kind instead of unknown.

Verification

Commit 1eca8d54 on main f2972840. Windows 11 build 26300, MSVC x64 Debug, Windows SDK 10.0.26100 DXC.

cmake --build --preset dev --target compile_dxil native_compute_manifest_reasons
ctest --preset dev --no-tests=error -V -R "^native_compute_manifest_reasons$"
  • native_compute_manifest_reasons: passed, 0 of 24 manifest reasons wrong.
  • startup_compute_half_buffer_uav_controls still fails, as on main, but now prints no_manifest ... UAV kind packed_d16_x_uav.

AI-assisted.

🤖 Generated with Claude Code

**@⁠Not-Saii** on GitHub · 2026-11-28 19:01 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3395) `Not-Saii:compute/manifest-kind-names` → `main` · +5 −1 · 2 files · 1 commits · closed without merging Refs #3226 The kind-name table behind `format_compute_runtime_manifest`'s refusal reasons (#3270) predates `packed_d16_x_uav` and `indexed_raw_srv`. Programs that use them were reported as `UAV kind unknown` / `SRV kind unknown`, for example in `startup_compute_half_buffer_uav_controls` on `main`. - `src/direct_compute_cache.cpp`: both kinds are named. A `static_assert` ties the table's length to the last enumerator, so renaming or removing the last kind fails to compile. A kind appended after it still needs a name added by hand; the comment says so. - `tests/native_compute_manifest_reasons.cpp`: one more case, `SRV kind indexed_raw_srv`. Only the reason text changes; what is published is unchanged. The `triage_run.py` allowlist already accepts these names. This does not fix `startup_compute_half_buffer_uav_controls`: its 1-channel store still has no manifest line for `packed_d16_x_uav`, which is SimSalabimse's claim on #3226. The failure message now names the kind instead of `unknown`. ## Verification Commit `1eca8d54` on `main` `f2972840`. Windows 11 build 26300, MSVC x64 Debug, Windows SDK 10.0.26100 DXC. ```powershell cmake --build --preset dev --target compile_dxil native_compute_manifest_reasons ctest --preset dev --no-tests=error -V -R "^native_compute_manifest_reasons$" ``` - `native_compute_manifest_reasons`: passed, `0 of 24 manifest reasons wrong`. - `startup_compute_half_buffer_uav_controls` still fails, as on `main`, but now prints `no_manifest ... UAV kind packed_d16_x_uav`. AI-assisted. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The kind-name table of format_compute_runtime_manifest's refusals (#3268)
predates packed_d16_x_uav and indexed_raw_srv, so their refusals read
"UAV kind unknown" / "SRV kind unknown". Both are named now, and a
static_assert ties the table to the last enumerator.

Refs #3224

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 19:04:53 +00:00
Author
Owner

@⁠KelboLive on GitHub · 2026-11-28 19:08 UTC · original · reviewed

LGTM — safe, targeted change.

The view_kind_name table in direct_compute_cache.cpp now names packed_d16_x_uav and indexed_raw_srv, so refused manifests say UAV kind packed_d16_x_uav instead of unknown. The static_assert ties the table length to the last enumerator, catching renames or removals at compile time. One test case covers indexed_raw_srv. Non-breaking — only the text changes.

Ready to land.

**@⁠KelboLive** on GitHub · 2026-11-28 19:08 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3395#pullrequestreview-6099686944) · **reviewed** LGTM — safe, targeted change. The `view_kind_name` table in `direct_compute_cache.cpp` now names `packed_d16_x_uav` and `indexed_raw_srv`, so refused manifests say `UAV kind packed_d16_x_uav` instead of `unknown`. The `static_assert` ties the table length to the last enumerator, catching renames or removals at compile time. One test case covers `indexed_raw_srv`. Non-breaking — only the text changes. Ready to land.
Author
Owner

@⁠KelboLive on GitHub · 2026-11-28 20:29 UTC · original · approved these changes

LGTM — safe, targeted change.

The view_kind_name table in direct_compute_cache.cpp now names packed_d16_x_uav and indexed_raw_srv, so refused manifests say UAV kind packed_d16_x_uav instead of unknown. The static_assert ties the table length to the last enumerator, catching renames or removals at compile time. One test case covers indexed_raw_srv. Non-breaking — only the text changes.

Ready to land.

**@⁠KelboLive** on GitHub · 2026-11-28 20:29 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3395#pullrequestreview-6099962890) · **approved these changes** LGTM — safe, targeted change. The `view_kind_name` table in `direct_compute_cache.cpp` now names `packed_d16_x_uav` and `indexed_raw_srv`, so refused manifests say `UAV kind packed_d16_x_uav` instead of `unknown`. The `static_assert` ties the table length to the last enumerator, catching renames or removals at compile time. One test case covers `indexed_raw_srv`. Non-breaking — only the text changes. Ready to land.
Author
Owner

@⁠KelboLive on GitHub · 2026-11-28 21:56 UTC · original · approved these changes

LGTM — safe, targeted change.

The view_kind_name table in direct_compute_cache.cpp now names packed_d16_x_uav and indexed_raw_srv, so refused manifests say UAV kind packed_d16_x_uav instead of unknown. The static_assert ties the table length to the last enumerator, catching renames or removals at compile time. One test case covers indexed_raw_srv. Non-breaking — only the text changes.

Ready to land.

**@⁠KelboLive** on GitHub · 2026-11-28 21:56 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3395#pullrequestreview-6100252323) · **approved these changes** LGTM — safe, targeted change. The `view_kind_name` table in `direct_compute_cache.cpp` now names `packed_d16_x_uav` and `indexed_raw_srv`, so refused manifests say `UAV kind packed_d16_x_uav` instead of `unknown`. The `static_assert` ties the table length to the last enumerator, catching renames or removals at compile time. One test case covers `indexed_raw_srv`. Non-breaking — only the text changes. Ready to land.
github-bot closed this pull request 2026-11-29 01:59:24 +00:00
Author
Owner

@⁠Not-Saii on GitHub · 2026-11-29 01:56 UTC · original

Closing in favor of #3391. @⁠SimSalabimse's PR adds the same two view_kind_name entries (packed_d16_x_uav, indexed_raw_srv) and the same static_assert on the table size, so merging both would only produce a conflict.

The one thing here that #3391 doesn't have is a reasons case for indexed_raw_srv in tests/native_compute_manifest_reasons.cpp. It's optional; add it to #3391 if it's useful:

        {"SRV kind indexed_raw_srv", [](auto &p) { p.bindings[0].kind = K::indexed_raw_srv; }},

AI-assisted.

**@⁠Not-Saii** on GitHub · 2026-11-29 01:56 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3395#issuecomment-7249113327) Closing in favor of #3391. @⁠SimSalabimse's PR adds the same two `view_kind_name` entries (`packed_d16_x_uav`, `indexed_raw_srv`) and the same `static_assert` on the table size, so merging both would only produce a conflict. The one thing here that #3391 doesn't have is a reasons case for `indexed_raw_srv` in `tests/native_compute_manifest_reasons.cpp`. It's optional; add it to #3391 if it's useful: ```cpp {"SRV kind indexed_raw_srv", [](auto &p) { p.bindings[0].kind = K::indexed_raw_srv; }}, ``` AI-assisted.

Pull request closed

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