From 08c4efdd8d5a10c00e464b47a3688ecca494430c Mon Sep 17 00:00:00 2001 From: Christian Gmeiner Date: Wed, 19 Jun 2024 19:44:03 +0200 Subject: [PATCH] nak: Move nak_optimize_nir declaration to nak_private.h It is not used outside of the compiler. Signed-off-by: Christian Gmeiner Part-of: --- src/nouveau/compiler/nak.h | 1 - src/nouveau/compiler/nak_private.h | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/nouveau/compiler/nak.h b/src/nouveau/compiler/nak.h index 15035214187..b8affd1f4e7 100644 --- a/src/nouveau/compiler/nak.h +++ b/src/nouveau/compiler/nak.h @@ -29,7 +29,6 @@ uint64_t nak_debug_flags(const struct nak_compiler *nak); const struct nir_shader_compiler_options * nak_nir_options(const struct nak_compiler *nak); -void nak_optimize_nir(nir_shader *nir, const struct nak_compiler *nak); void nak_preprocess_nir(nir_shader *nir, const struct nak_compiler *nak); PRAGMA_DIAGNOSTIC_PUSH diff --git a/src/nouveau/compiler/nak_private.h b/src/nouveau/compiler/nak_private.h index 0638143d4f7..b15346cfbe4 100644 --- a/src/nouveau/compiler/nak_private.h +++ b/src/nouveau/compiler/nak_private.h @@ -237,6 +237,8 @@ nak_is_only_used_by_iadd(const nir_alu_instr *instr) return true; } +void nak_optimize_nir(nir_shader *nir, const struct nak_compiler *nak); + struct nak_memstream { FILE *stream; char *buffer;