mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-27 00:36:00 +03:00
[PR #2159] [MERGED] renderer_vulkan: Simplify debug marker settings. #2523
Labels
No labels
Bloodborne
bug
contributor wanted
documentation
enhancement
frontend
good first issue
help wanted
linux
pull-request
question
release
verification progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shadPS4#2523
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/shadps4-emu/shadPS4/pull/2159
Author: @squidbus
Created: 1/16/2025
Status: ✅ Merged
Merged: 1/16/2025
Merged by: @georgemoralis
Base:
main← Head:markers-cleanup📝 Commits (4)
c6b32edrenderer_vulkan: Simplify debug marker settings.52caa3aliverpool: Add scope markers for graphics/compute queues.5db09c7liverpool: Remove unneeded extra label from command buffer markers.433d946vk_rasterizer: Add scopes around filtered draw passes.📊 Changes
14 files changed (+132 additions, -98 deletions)
View changed files
📝
src/common/config.cpp(+22 -16)📝
src/common/config.h(+2 -1)📝
src/emulator.cpp(+3 -2)📝
src/imgui/renderer/imgui_core.cpp(+2 -2)📝
src/video_core/amdgpu/liverpool.cpp(+29 -17)📝
src/video_core/buffer_cache/buffer.cpp(+2 -0)📝
src/video_core/renderer_vulkan/vk_instance.cpp(+3 -8)📝
src/video_core/renderer_vulkan/vk_instance.h(+1 -10)📝
src/video_core/renderer_vulkan/vk_platform.h(+7 -0)📝
src/video_core/renderer_vulkan/vk_rasterizer.cpp(+40 -22)📝
src/video_core/renderer_vulkan/vk_rasterizer.h(+5 -4)📝
src/video_core/renderer_vulkan/vk_resource_pool.cpp(+3 -7)📝
src/video_core/renderer_vulkan/vk_swapchain.cpp(+6 -9)📝
src/video_core/texture_cache/image_view.cpp(+7 -0)📄 Description
Currently emitting debug names/markers is gated behind a confusing mix of conditions like whether certain tools are attached, settings named after tools like RenderDoc that they actually have nothing to do with, etc.
This PR simplifies things down to just two settings with very clear purpose: a setting to enable host-provided debug markers, and a setting to enable guest-provided debug markers. When host markers are enabled, debug names and markers provided by the emulator will be emitted. When guest markers are enabled, debug markers provided by the guest in the command buffer will be emitted.
Both types of markers are forced on when crash diagnostics are enabled at the config level, similar to before. We can force them on based on other settings as well if we decide it is warranted.
This also adds debug names to image and buffer views, which are useful to me and part of the motivation for this change: putting names on every created view could be expensive, and I wanted clear settings to gate this behavior behind.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.