Module: Mesa Branch: main Commit: c4be90b4ba361360f811787a0c84e7ed9d27cfe1 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c4be90b4ba361360f811787a0c84e7ed9d27cfe1
Author: Caio Oliveira <[email protected]> Date: Tue Oct 31 23:22:32 2023 -0700 intel/compiler: Remove unused parameter from brw_nir_adjust_payload() Reviewed-by: Sagar Ghuge <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25986> --- src/intel/compiler/brw_mesh.cpp | 2 +- src/intel/compiler/brw_nir.c | 2 +- src/intel/compiler/brw_nir.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/intel/compiler/brw_mesh.cpp b/src/intel/compiler/brw_mesh.cpp index e2cd61a9339..6f48c7e1dd1 100644 --- a/src/intel/compiler/brw_mesh.cpp +++ b/src/intel/compiler/brw_mesh.cpp @@ -222,7 +222,7 @@ brw_nir_adjust_task_payload_offsets(nir_shader *nir) } void -brw_nir_adjust_payload(nir_shader *shader, const struct brw_compiler *compiler) +brw_nir_adjust_payload(nir_shader *shader) { /* Adjustment of task payload offsets must be performed *after* last pass * which interprets them as bytes, because it changes their unit. diff --git a/src/intel/compiler/brw_nir.c b/src/intel/compiler/brw_nir.c index 3ef61403616..72956db33ca 100644 --- a/src/intel/compiler/brw_nir.c +++ b/src/intel/compiler/brw_nir.c @@ -1763,7 +1763,7 @@ brw_postprocess_nir(nir_shader *nir, const struct brw_compiler *compiler, */ if (nir->info.stage == MESA_SHADER_MESH || nir->info.stage == MESA_SHADER_TASK) - brw_nir_adjust_payload(nir, compiler); + brw_nir_adjust_payload(nir); nir_trivialize_registers(nir); nir_sweep(nir); diff --git a/src/intel/compiler/brw_nir.h b/src/intel/compiler/brw_nir.h index 505e14740aa..0b441b41ce2 100644 --- a/src/intel/compiler/brw_nir.h +++ b/src/intel/compiler/brw_nir.h @@ -290,7 +290,7 @@ nir_def *brw_nir_load_global_const(nir_builder *b, const struct glsl_type *brw_nir_get_var_type(const struct nir_shader *nir, nir_variable *var); -void brw_nir_adjust_payload(nir_shader *shader, const struct brw_compiler *compiler); +void brw_nir_adjust_payload(nir_shader *shader); #ifdef __cplusplus }
