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;