Skip to content

Improve vulkan pipeline creation, better spec const parsing and error handling.#1176

Merged
manon-traverse merged 3 commits into
llvm:mainfrom
Traverse-Research:improve-pipeline-creation
May 21, 2026
Merged

Improve vulkan pipeline creation, better spec const parsing and error handling.#1176
manon-traverse merged 3 commits into
llvm:mainfrom
Traverse-Research:improve-pipeline-creation

Conversation

@manon-traverse
Copy link
Copy Markdown
Contributor

@manon-traverse manon-traverse commented May 12, 2026

These are some fixes that I made while implementing mesh shader pipeline creation, which also apply to the other pipeline creation functions. Putting this in a separate PR to keep the work in smaller incremental changes.

@manon-traverse manon-traverse force-pushed the improve-pipeline-creation branch from 7dcfca0 to 1ce7750 Compare May 19, 2026 16:21
@manon-traverse manon-traverse marked this pull request as ready for review May 19, 2026 16:22
Copy link
Copy Markdown
Collaborator

@EmilioLaiso EmilioLaiso left a comment

Choose a reason for hiding this comment

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

Nice cleanup! 🎉

Comment thread lib/API/VK/Device.cpp
Comment on lines +1381 to +1382
auto ShaderModuleCleanUp = llvm::scope_exit(
[&] { vkDestroyShaderModule(Device, CSModule, nullptr); });
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Retaining your own comment about destroying these even when the PSO is successfully created would be nice.

Suggested change
auto ShaderModuleCleanUp = llvm::scope_exit(
[&] { vkDestroyShaderModule(Device, CSModule, nullptr); });
// No longer need shader modules after pipeline compilation.
auto ShaderModuleCleanUp = llvm::scope_exit(
[&] { vkDestroyShaderModule(Device, CSModule, nullptr); });

@manon-traverse
Copy link
Copy Markdown
Contributor Author

Merging this before CI finished, because only a comment was added since last CI completion.

@manon-traverse manon-traverse merged commit 90f6438 into llvm:main May 21, 2026
11 of 12 checks passed
@MarijnS95 MarijnS95 deleted the improve-pipeline-creation branch May 21, 2026 12:02
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.

3 participants