i965/nir: Remove the prog parameter from brw_nir_lower_inputs
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 2 Oct 2015 23:39:51 +0000 (16:39 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sat, 3 Oct 2015 04:21:00 +0000 (21:21 -0700)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_nir.c

index cc9430c83e61fb7dcee6dab22983fb1fc5d5e0e7..4f1965503eefb6ee0a6d3ea642063a953ccee3eb 100644 (file)
@@ -28,9 +28,7 @@
 #include "program/prog_to_nir.h"
 
 static void
-brw_nir_lower_inputs(nir_shader *nir,
-                     const struct gl_program *prog,
-                     bool is_scalar)
+brw_nir_lower_inputs(nir_shader *nir, bool is_scalar)
 {
    nir_assign_var_locations(&nir->inputs, &nir->num_inputs,
                             is_scalar ? type_size_scalar : type_size_vec4);
@@ -141,7 +139,7 @@ brw_create_nir(struct brw_context *brw,
    /* Get rid of split copies */
    nir_optimize(nir, is_scalar);
 
-   brw_nir_lower_inputs(nir, prog, is_scalar);
+   brw_nir_lower_inputs(nir, is_scalar);
    brw_nir_lower_outputs(nir, is_scalar);
    nir_assign_var_locations(&nir->uniforms,
                             &nir->num_uniforms,