From 44110fe004f238c7da45f4eb4fb156aaf242e083 Mon Sep 17 00:00:00 2001 From: Konstantin Seurer Date: Mon, 3 Mar 2025 15:10:15 +0100 Subject: [PATCH] lavapipe: Enable debug information if GALLIVM_DEBUG=symbols is set Reviewed-By: Mike Blumenkrantz Part-of: --- src/gallium/frontends/lavapipe/lvp_pipeline.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/frontends/lavapipe/lvp_pipeline.c b/src/gallium/frontends/lavapipe/lvp_pipeline.c index c0b17179309..8d3b7e3f326 100644 --- a/src/gallium/frontends/lavapipe/lvp_pipeline.c +++ b/src/gallium/frontends/lavapipe/lvp_pipeline.c @@ -36,6 +36,8 @@ #include "pipe/p_context.h" #include "nir/nir_xfb_info.h" +#include "gallivm/lp_bld_debug.h" + #define SPIR_V_MAGIC_NUMBER 0x07230203 #define MAX_DYNAMIC_STATES 72 @@ -318,6 +320,7 @@ compile_spirv(struct lvp_device *pdevice, #ifdef VK_ENABLE_BETA_EXTENSIONS .shader_index = node_info ? node_info->index : 0, #endif + .debug_info = gallivm_debug & GALLIVM_DEBUG_SYMBOLS, }; result = vk_pipeline_shader_stage_to_nir(&pdevice->vk, pipeline_flags, sinfo,