Skip to content

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

Closed
Not-Saii wants to merge 1 commit into
R0Y00:mainfrom
Not-Saii:compute/manifest-kind-names
Closed

Not-Saii wants to merge 1 commit into
R0Y00:mainfrom
Not-Saii:compute/manifest-kind-names

Conversation

@Not-Saii

Copy link
Copy Markdown
Contributor

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

…easons

The kind-name table of format_compute_runtime_manifest's refusals (R0Y00#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 R0Y00#3224

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@KelboLive KelboLive left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

Copy link
Copy Markdown
Contributor Author

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.

@Not-Saii Not-Saii closed this Nov 29, 2026
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