diff --git a/source/blender/draw/intern/draw_pass.hh b/source/blender/draw/intern/draw_pass.hh index eb1517cb1d5..78a155514cf 100644 --- a/source/blender/draw/intern/draw_pass.hh +++ b/source/blender/draw/intern/draw_pass.hh @@ -689,6 +689,7 @@ template void PassBase::warm_shader_specialization(command::RecordingState &state) const { GPU_debug_group_begin("warm_shader_specialization"); + GPU_debug_group_begin(this->debug_name); for (const command::Header &header : headers_) { switch (header.type) { @@ -736,6 +737,7 @@ void PassBase::warm_shader_specialization(command::RecordingState &state) con } GPU_debug_group_end(); + GPU_debug_group_end(); } template void PassBase::submit(command::RecordingState &state) const diff --git a/source/blender/gpu/intern/gpu_shader.cc b/source/blender/gpu/intern/gpu_shader.cc index 18813fa4abd..2034177767c 100644 --- a/source/blender/gpu/intern/gpu_shader.cc +++ b/source/blender/gpu/intern/gpu_shader.cc @@ -801,6 +801,7 @@ Shader *ShaderCompiler::compile(const shader::ShaderCreateInfo &info, bool is_ba if (Context::get()) { /* Context can be null in Vulkan compilation threads. */ GPU_debug_group_begin(GPU_DEBUG_SHADER_COMPILATION_GROUP); + GPU_debug_group_begin(info.name_.c_str()); } const std::string error = info.check_error(); @@ -923,6 +924,7 @@ Shader *ShaderCompiler::compile(const shader::ShaderCreateInfo &info, bool is_ba if (Context::get()) { /* Context can be null in Vulkan compilation threads. */ GPU_debug_group_end(); + GPU_debug_group_end(); } return shader;