Repository navigation
Conversation
…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
left a comment
There was a problem hiding this comment.
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
left a comment
There was a problem hiding this comment.
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
left a comment
There was a problem hiding this comment.
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.
|
Closing in favor of #3389. @SimSalabimse's PR adds the same two The one thing here that #3389 doesn't have is a reasons case for {"SRV kind indexed_raw_srv", [](auto &p) { p.bindings[0].kind = K::indexed_raw_srv; }},AI-assisted. |
Refs #3224
The kind-name table behind
format_compute_runtime_manifest's refusal reasons (#3268) predatespacked_d16_x_uavandindexed_raw_srv. Programs that use them were reported asUAV kind unknown/SRV kind unknown, for example instartup_compute_half_buffer_uav_controlsonmain.src/direct_compute_cache.cpp: both kinds are named. Astatic_assertties 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.pyallowlist already accepts these names. This does not fixstartup_compute_half_buffer_uav_controls: its 1-channel store still has no manifest line forpacked_d16_x_uav, which is SimSalabimse's claim on #3224. The failure message now names the kind instead ofunknown.Verification
Commit
1eca8d54onmainf2972840. Windows 11 build 26300, MSVC x64 Debug, Windows SDK 10.0.26100 DXC.native_compute_manifest_reasons: passed,0 of 24 manifest reasons wrong.startup_compute_half_buffer_uav_controlsstill fails, as onmain, but now printsno_manifest ... UAV kind packed_d16_x_uav.AI-assisted.
🤖 Generated with Claude Code