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

Open
opened 2026-11-26 21:20:20 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/2180
Author: @Tauwni
Created: 11/26/2026
Status: 🔄 Open

Base: main ← Head: fix/indirect-record-size-dispatch-mesh


📝 Commits (2)

  • 163facd vulkan_replay: indirect_record_size names IndirectKind::dispatch_mesh; command_list.h comment says how it records
  • 7bbea3c Merge main into fix/indirect-record-size-dispatch-mesh

📊 Changes

2 files changed (+6 additions, -2 deletions)

View changed files

📝 runtime/src/command_list.h (+3 -2)
📝 runtime/src/vulkan_replay.h (+3 -0)

📄 Description

Claimed in the coordination issue as: RT-INDIRECT-KIND-SWITCH (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7181123158)

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


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/2180 **Author:** [@Tauwni](https://github.com/Tauwni) **Created:** 11/26/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/indirect-record-size-dispatch-mesh` --- ### 📝 Commits (2) - [`163facd`](https://github.com/ubiquitarianism/leonida/commit/163facd7216ce0fe4bde3f62fcdaf9d2775c15b1) vulkan_replay: indirect_record_size names IndirectKind::dispatch_mesh; command_list.h comment says how it records - [`7bbea3c`](https://github.com/ubiquitarianism/leonida/commit/7bbea3cfc683f6ddb9bbf4da0450e57f47b41b5a) Merge main into fix/indirect-record-size-dispatch-mesh ### 📊 Changes **2 files changed** (+6 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `runtime/src/command_list.h` (+3 -2) 📝 `runtime/src/vulkan_replay.h` (+3 -0) </details> ### 📄 Description Claimed in the coordination issue as: RT-INDIRECT-KIND-SWITCH (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7181123158) ### 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) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
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.

Dependencies

No dependencies set

Reference
starred/leonida#2184
No description provided.