st/nir: Fix st_nir_opts() prototype.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 24 Jul 2018 18:36:06 +0000 (11:36 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 25 Jul 2018 17:19:41 +0000 (10:19 -0700)
This wasn't updated for the new scalar ISA parameter.  It worked anyway
because all the function's callers live in the same file, so it found
the correct function.  Tim made this external for the new st prog_to_nir
translator, which got reverted, but which I'd like to land eventually.

So, fix the prototype.

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
src/mesa/state_tracker/st_nir.h

index 15f1ce93e5a462ae915ef8944bbf9f2533ebb9d9..aa6e32758e86645c6ddd21e319d170d303e81d1e 100644 (file)
@@ -42,7 +42,7 @@ void st_finalize_nir(struct st_context *st, struct gl_program *prog,
                      struct gl_shader_program *shader_program,
                      struct nir_shader *nir);
 
-void st_nir_opts(struct nir_shader *nir);
+void st_nir_opts(struct nir_shader *nir, bool is_scalar);
 
 bool
 st_link_nir(struct gl_context *ctx,