Skip to content

vk: set the renderpass name when DebugUtils is on#10214

Merged
poweifeng merged 1 commit into
mainfrom
pf/vk-fix-validation-enable
Jul 20, 2026
Merged

vk: set the renderpass name when DebugUtils is on#10214
poweifeng merged 1 commit into
mainfrom
pf/vk-fix-validation-enable

Conversation

@poweifeng

Copy link
Copy Markdown
Contributor
  • This PR also enables DebugUtils by default on debug builds. (when to enable it will be re-visited).
  • Separated validation from DebugUtils so that they are not tied together in enablement.
  • Together with Android Performance Analyzer, you should be able to see named renderpasses in the GPU non-fragment, fragment workload on the timeline.

@poweifeng poweifeng added the internal Issue/PR does not affect clients label Jul 16, 2026
#include "VulkanAsyncHandles.h"

#include "VulkanConstants.h"
#include "VulkanDriver.h"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

why do we need to include this here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

there's a reference in line 165. Only compiled when FVK_DEBUG_DEBUG_UTILS is enabled.

// Assign a label to the framebuffer for debugging purposes.
#if FVK_ENABLED(FVK_DEBUG_GROUP_MARKERS | FVK_DEBUG_DEBUG_UTILS)
auto const topMarker = mCommands.getTopGroupMarker();
uint64_t fbVk = (uint64_t) vkfb->getVkFramebuffer();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

put them inside the if block

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

good call. done

#endif // FVK_ENABLED(FVK_DEBUG_VALIDATION)

#if FVK_ENABLED(FVK_DEBUG_DEBUG_UTILS)
#if FVK_ENABLED(FVK_DEBUG_DEBUG_UTILS) && FVK_ENABLED(FVK_DEBUG_VALIDATION)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

could we just check the validation flag?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

they are independent. You could have one without the other.

@poweifeng
poweifeng enabled auto-merge (squash) July 17, 2026 21:57
@poweifeng
poweifeng force-pushed the pf/vk-fix-validation-enable branch from e2256da to 1bb539b Compare July 17, 2026 22:15
@poweifeng
poweifeng disabled auto-merge July 17, 2026 22:48
 - This PR also enables DebugUtils by default on debug builds.
   (when to enable it will be re-visited).
 - Separated validation from DebugUtils so that they are not
   tied together in enablement.
 - Together with Android Performance Analyzer, you should be able
   to see named renderpasses in the GPU non-fragment, fragment
   workload on the timeline.
@poweifeng
poweifeng force-pushed the pf/vk-fix-validation-enable branch from 1bb539b to 81dabd7 Compare July 17, 2026 23:17
@poweifeng
poweifeng merged commit ff326c2 into main Jul 20, 2026
24 checks passed
@poweifeng
poweifeng deleted the pf/vk-fix-validation-enable branch July 20, 2026 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal Issue/PR does not affect clients

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants