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

Closed
Not-Saii wants to merge 1 commit from upstream-pr/3395 into main
Not-Saii commented 2026-11-28 19:01:07 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by Not-Saii on 2026-11-28T19:01:07Z.


Refs #3224

The kind-name table behind format_compute_runtime_manifest's refusal reasons (#3268) 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 #3224. 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

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:5543578015 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3395). Originally posted by [Not-Saii](https://github.com/Not-Saii) on 2026-11-28T19:01:07Z. --- Refs #3224 The kind-name table behind `format_compute_runtime_manifest`'s refusal reasons (#3268) 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 #3224. 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)
KelboLive commented 2026-11-28 19:08:29 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by KelboLive on 2026-11-28T19:08:29Z.

Review: COMMENTED


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6099686944 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3395#pullrequestreview-6099686944). Originally posted by [KelboLive](https://github.com/KelboLive) on 2026-11-28T19:08:29Z. **Review:** COMMENTED --- 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 commented 2026-11-28 20:29:39 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by KelboLive on 2026-11-28T20:29:39Z.

Review: APPROVED


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6099962890 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3395#pullrequestreview-6099962890). Originally posted by [KelboLive](https://github.com/KelboLive) on 2026-11-28T20:29:39Z. **Review:** APPROVED --- 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 commented 2026-11-28 21:56:53 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by KelboLive on 2026-11-28T21:56:53Z.

Review: APPROVED


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6100252323 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3395#pullrequestreview-6100252323). Originally posted by [KelboLive](https://github.com/KelboLive) on 2026-11-28T21:56:53Z. **Review:** APPROVED --- 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.
Not-Saii commented 2026-11-29 01:56:46 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by Not-Saii on 2026-11-29T01:56:46Z.


Closing in favor of #3389. @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 #3389 doesn't have is a reasons case for indexed_raw_srv in tests/native_compute_manifest_reasons.cpp. It's optional; add it to #3389 if it's useful:

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

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7249113327 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3395#issuecomment-7249113327). Originally posted by [Not-Saii](https://github.com/Not-Saii) on 2026-11-29T01:56:46Z. --- Closing in favor of #3389. @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 #3389 doesn't have is a reasons case for `indexed_raw_srv` in `tests/native_compute_manifest_reasons.cpp`. It's optional; add it to #3389 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

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