vulkan_replay: name IndirectKind::dispatch_mesh in indirect_record_size; no -Wswitch warnings on clang (RT-INDIRECT-KIND-SWITCH) #2180

Open
github-bot wants to merge 3 commits from github-bot/gh-2180 into main AGit
Owner

@⁠Tauwni on GitHub · 2026-11-26 02:47 UTC · original
Tauwni:fix/indirect-record-size-dispatch-mesh → main · +6 −2 · 2 files · 3 commits · draft

Claimed in the coordination issue as: RT-INDIRECT-KIND-SWITCH (#1608)

What and why

Every clang build of the runtime (macOS, Linux) prints this warning 35 times, once per target that includes vulkan_replay.h:

runtime/src/vulkan_replay.h:2037: warning: enumeration value 'dispatch_mesh' not handled in switch [-Wswitch]

detail::indirect_record_size lists draw, draw_indexed and dispatch, but not dispatch_mesh (added for DISPATCH_MESH signatures). No behaviour changes:

  • A DISPATCH_MESH signature is recorded as a mesh Draw (record_indirect in d3d12_com.cpp) and drawn with vkCmdDrawMeshTasksIndirect(Count)EXT. It never becomes an ExecuteIndirect command.
  • So the function keeps answering 0 for it, which makes the caller reject such a command (invalid_indirect_arguments). The case now says so explicitly.
  • The comment on IndirectKind::dispatch_mesh in command_list.h still said that ExecuteIndirect with it "records nothing yet". It now describes what is recorded.

Tested

Apple M3, macOS 26.5.1, AppleClang, on main 86dc3d86e: 0 warnings, down from 35. ctest 106/106.

AI-assisted: yes (Claude Code)

Checklist

  • Based on current main and merges cleanly.
  • One topic.
  • No game data, keys or decryption.

🤖 Generated with Claude Code

**@⁠Tauwni** on GitHub · 2026-11-26 02:47 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2180) `Tauwni:fix/indirect-record-size-dispatch-mesh` → `main` · +6 −2 · 2 files · 3 commits · draft Claimed in the coordination issue as: RT-INDIRECT-KIND-SWITCH (https://git.gtahub.st/github/ubiquitarianism--leonida/issues/1608) ### What and why Every clang build of the runtime (macOS, Linux) prints this warning 35 times, once per target that includes `vulkan_replay.h`: ``` runtime/src/vulkan_replay.h:2037: warning: enumeration value 'dispatch_mesh' not handled in switch [-Wswitch] ``` `detail::indirect_record_size` lists `draw`, `draw_indexed` and `dispatch`, but not `dispatch_mesh` (added for DISPATCH_MESH signatures). No behaviour changes: - A DISPATCH_MESH signature is recorded as a mesh `Draw` (`record_indirect` in `d3d12_com.cpp`) and drawn with `vkCmdDrawMeshTasksIndirect(Count)EXT`. It never becomes an `ExecuteIndirect` command. - So the function keeps answering 0 for it, which makes the caller reject such a command (`invalid_indirect_arguments`). The case now says so explicitly. - The comment on `IndirectKind::dispatch_mesh` in `command_list.h` still said that ExecuteIndirect with it "records nothing yet". It now describes what is recorded. ### Tested Apple M3, macOS 26.5.1, AppleClang, on `main` `86dc3d86e`: 0 warnings, down from 35. ctest 106/106. AI-assisted: yes (Claude Code) ### Checklist - [x] Based on current `main` and merges cleanly. - [x] One topic. - [x] No game data, keys or decryption. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
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 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:21:30 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2180/head:github-bot/gh-2180'
git switch 'github-bot/gh-2180'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2180'
git switch 'github-bot/gh-2180'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2180'
git switch 'github-bot/gh-2180'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2180'
git switch 'main'
git merge --squash 'github-bot/gh-2180'
git switch 'main'
git merge --ff-only 'github-bot/gh-2180'
git switch 'main'
git merge 'github-bot/gh-2180'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.