From 192d328f16354b94898f4c06422e955dd0c966e7 Mon Sep 17 00:00:00 2001 From: Jeroen Bakker Date: Tue, 4 Mar 2025 07:28:49 +0100 Subject: [PATCH] Vulkan: Enable vk loader logging Enable VK loader debug messages when running blender_debug_gpu_* scripts. Allows easier debugging for users not familiar with using terminal. It won't log anything when using OpenGL. Vulkan loading logging can be big (1000 lines) but gives a lot of insight how vulkan and related applications are configured on the user system Sadly it does contains actual paths but think it is OK as the user is still responsible for uploading it in the tracker. An example of a log has been attached. See #135327. Pull Request: https://projects.blender.org/blender/blender/pulls/135399 --- release/windows/batch/blender_debug_gpu.cmd | 1 + release/windows/batch/blender_debug_gpu_glitchworkaround.cmd | 1 + 2 files changed, 2 insertions(+) diff --git a/release/windows/batch/blender_debug_gpu.cmd b/release/windows/batch/blender_debug_gpu.cmd index 174d1f6e112..3598583db05 100644 --- a/release/windows/batch/blender_debug_gpu.cmd +++ b/release/windows/batch/blender_debug_gpu.cmd @@ -14,6 +14,7 @@ setlocal set PYTHONPATH= set DEBUGLOGS="%temp%\blender\debug_logs" +set VK_LOADER_DEBUG=all mkdir "%DEBUGLOGS%" > NUL 2>&1 "%~dp0\blender" --debug --debug-gpu --debug-cycles --python-expr "import bpy; bpy.context.preferences.filepaths.temporary_directory=r'%DEBUGLOGS%'; bpy.ops.wm.sysinfo(filepath=r'%DEBUGLOGS%\blender_system_info.txt')" > "%DEBUGLOGS%\blender_debug_output.txt" 2>&1 < %0 diff --git a/release/windows/batch/blender_debug_gpu_glitchworkaround.cmd b/release/windows/batch/blender_debug_gpu_glitchworkaround.cmd index 7e69c638279..6d3456ebd4f 100644 --- a/release/windows/batch/blender_debug_gpu_glitchworkaround.cmd +++ b/release/windows/batch/blender_debug_gpu_glitchworkaround.cmd @@ -14,6 +14,7 @@ setlocal set PYTHONPATH= set DEBUGLOGS="%temp%\blender\debug_logs" +set VK_LOADER_DEBUG=all mkdir "%DEBUGLOGS%" > NUL 2>&1 "%~dp0\blender" --debug --debug-gpu --debug-gpu-force-workarounds --python-expr "import bpy; bpy.context.preferences.filepaths.temporary_directory=r'%DEBUGLOGS%'; bpy.ops.wm.sysinfo(filepath=r'%DEBUGLOGS%\blender_system_info.txt')" > "%DEBUGLOGS%\blender_debug_output.txt" 2>&1 < %0