st/nir: Drop unused parameter from st_nir_assign_uniform_locations().
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 25 Oct 2018 09:22:34 +0000 (02:22 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sun, 4 Nov 2018 06:34:36 +0000 (23:34 -0700)
ARB programs won't have one of these, and we don't use it anyway.

Reviewed-by: Rob Clark <robdclark@gmail.com>
src/mesa/state_tracker/st_glsl_to_nir.cpp

index f609efbff959fdeac2469e2b8ee50277e355309d..dcf8c2b638ed4618cd72e52b88b795278c7b3706 100644 (file)
@@ -240,7 +240,6 @@ st_nir_lookup_parameter_index(const struct gl_program_parameter_list *params,
 static void
 st_nir_assign_uniform_locations(struct gl_context *ctx,
                                 struct gl_program *prog,
-                                struct gl_shader_program *shader_program,
                                 struct exec_list *uniform_list, unsigned *size)
 {
    int max = 0;
@@ -848,7 +847,7 @@ st_finalize_nir(struct st_context *st, struct gl_program *prog,
    NIR_PASS_V(nir, nir_lower_atomics_to_ssbo,
          st->ctx->Const.Program[nir->info.stage].MaxAtomicBuffers);
 
-   st_nir_assign_uniform_locations(st->ctx, prog, shader_program,
+   st_nir_assign_uniform_locations(st->ctx, prog,
                                    &nir->uniforms, &nir->num_uniforms);
 
    if (st->ctx->Const.PackedDriverUniformStorage) {