From d62e494b370084298761f2e110b511c5c7e0f6a6 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Mon, 24 Jul 2023 22:15:08 +0300 Subject: [PATCH] intel/vec4: fix log_data pointer Signed-off-by: Lionel Landwerlin Fixes: 3384f029be ("intel/compiler: rework input parameters") Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9421 Acked-by: Emma Anholt Part-of: --- src/intel/compiler/brw_vec4.cpp | 2 +- src/intel/compiler/brw_vec4.h | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/intel/compiler/brw_vec4.cpp b/src/intel/compiler/brw_vec4.cpp index f9d698b06a9..be7dd876af2 100644 --- a/src/intel/compiler/brw_vec4.cpp +++ b/src/intel/compiler/brw_vec4.cpp @@ -2495,7 +2495,7 @@ vec4_visitor::run() bool allocated_without_spills = reg_allocate(); if (!allocated_without_spills) { - brw_shader_perf_log(compiler, params->log_data, + brw_shader_perf_log(compiler, log_data, "%s shader triggered register spilling. " "Try reducing the number of live vec4 values " "to improve performance.\n", diff --git a/src/intel/compiler/brw_vec4.h b/src/intel/compiler/brw_vec4.h index 5ab95673924..a13c3228d08 100644 --- a/src/intel/compiler/brw_vec4.h +++ b/src/intel/compiler/brw_vec4.h @@ -342,8 +342,6 @@ private: const bool no_spills; unsigned last_scratch; /**< measured in 32-byte (register size) units */ - - const struct brw_compile_params *params; }; } /* namespace brw */