From fea431ded343c205da273cb39229eb83b8eff98f Mon Sep 17 00:00:00 2001 From: Pierre-Eric Pelloux-Prayer Date: Fri, 16 Jan 2026 17:01:31 +0100 Subject: [PATCH] radeonsi: remove nir references when graphics is disabled MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Marek Olšák Part-of: --- src/gallium/drivers/radeonsi/si_pipe.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c index 776975e40a9..ed10dc4fc75 100644 --- a/src/gallium/drivers/radeonsi/si_pipe.c +++ b/src/gallium/drivers/radeonsi/si_pipe.c @@ -1403,7 +1403,9 @@ static struct pipe_screen *radeonsi_screen_create_impl(struct radeon_winsys *ws, sscreen->b.destroy = si_destroy_screen; sscreen->b.set_max_shader_compiler_threads = si_set_max_shader_compiler_threads; sscreen->b.is_parallel_shader_compilation_finished = si_is_parallel_shader_compilation_finished; +#ifdef HAVE_GFX_COMPUTE sscreen->b.finalize_nir = si_finalize_nir; +#endif sscreen->nir_options = CALLOC_STRUCT(nir_shader_compiler_options); @@ -1494,7 +1496,7 @@ static struct pipe_screen *radeonsi_screen_create_impl(struct radeon_winsys *ws, num_comp_lo_threads = 1; } -#ifndef NDEBUG +#if !defined(NDEBUG) && defined(HAVE_GFX_COMPUTE) nir_process_debug_variable(); /* Use a single compilation thread if NIR printing is enabled to avoid