Repository navigation
vulkan_replay: name IndirectKind::dispatch_mesh in indirect_record_size; no -Wswitch warnings on clang (RT-INDIRECT-KIND-SWITCH) - #2180
Draft
Tauwni wants to merge 4 commits into
Conversation
…; command_list.h comment says how it records clang warned 35 times per build (-Wswitch, every target that includes vulkan_replay.h). A DISPATCH_MESH signature is recorded as a mesh Draw, never as an ExecuteIndirect command, so the answer stays 0 (rejected); the enum's comment still said ExecuteIndirect with it records nothing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ize-dispatch-mesh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Claimed in the coordination issue as: RT-INDIRECT-KIND-SWITCH (#1608 (comment))
What and why
Every clang build of the runtime (macOS, Linux) prints this warning 35 times, once per target that includes
vulkan_replay.h:detail::indirect_record_sizelistsdraw,draw_indexedanddispatch, but notdispatch_mesh(added for DISPATCH_MESH signatures). No behaviour changes:Draw(record_indirectind3d12_com.cpp) and drawn withvkCmdDrawMeshTasksIndirect(Count)EXT. It never becomes anExecuteIndirectcommand.invalid_indirect_arguments). The case now says so explicitly.IndirectKind::dispatch_meshincommand_list.hstill said that ExecuteIndirect with it "records nothing yet". It now describes what is recorded.Tested
Apple M3, macOS 26.5.1, AppleClang, on
main86dc3d86e: 0 warnings, down from 35. ctest 106/106.AI-assisted: yes (Claude Code)
Checklist
mainand merges cleanly.🤖 Generated with Claude Code
Red checks: from
main, not this changeThe failing jobs (
check,macos-python,stdlib-tests-linux,linux-gpu-tools,macos,windows) fail the same way onmaind48a957bb(MEASURED on macOS for the Python tests, 1 run, with the same assertion text; GPU tests READ from this PR's CI logs). The open pull requests that fix them:maintest_docs_cli_flagstest_make_game_preflight,test_progress_dashboard(repository URL)test_docs_repo_pathsmain, a merge is onTauwni:fix/2552-merge-main, correction)test_tool_stdout_encodingTauwni:fix/stdout-replace-two-new-scripts(no PR, open PR limit)test_windows_boot_journal_seedtest_docs_python_depstest_build_runtime_fallbackvk_bindless_dimensions(macOS)test_docs_env_varstest_make_game_pipelines,test_sampler_source_census,test_spirv_metal_set0_cli_errors,test_spirv_metal_set0_extra,tests/semantic/test_valu_cvt_f16_int16_mods.py,ps_exp_f32_denorm_rt(macOS)Tauwni/leonida, no PR (finding)cs_imgatomic_ext(macOS, linux-gpu-tools)vk_xdxr_postbuild_readback(Windows)main: mergemainNot checked by a second agent or human yet.