<div dir="ltr"><div>For the series:</div><div><br></div><div>Reviewed-by: Marek Olšák <<a href="mailto:marek.olsak@amd.com">marek.olsak@amd.com</a>></div><div><br></div><div>Marek<br></div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Dec 17, 2018 at 1:37 PM Kenneth Graunke <<a href="mailto:kenneth@whitecape.org">kenneth@whitecape.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Nobody uses this, so let's drop it. This makes the helper callable<br>
from places without a gl_program.<br>
---<br>
src/mesa/state_tracker/st_glsl_to_nir.cpp | 4 ++--<br>
1 file changed, 2 insertions(+), 2 deletions(-)<br>
<br>
diff --git a/src/mesa/state_tracker/st_glsl_to_nir.cpp b/src/mesa/state_tracker/st_glsl_to_nir.cpp<br>
index 7406e26e2f8..5263edc5a6d 100644<br>
--- a/src/mesa/state_tracker/st_glsl_to_nir.cpp<br>
+++ b/src/mesa/state_tracker/st_glsl_to_nir.cpp<br>
@@ -81,7 +81,7 @@ st_nir_fixup_varying_slots(struct st_context *st, struct exec_list *var_list)<br>
* on varying-slot w/ the VS outputs)<br>
*/<br>
static void<br>
-st_nir_assign_vs_in_locations(struct gl_program *prog, nir_shader *nir)<br>
+st_nir_assign_vs_in_locations(nir_shader *nir)<br>
{<br>
nir->num_inputs = 0;<br>
nir_foreach_variable_safe(var, &nir->inputs) {<br>
@@ -810,7 +810,7 @@ st_finalize_nir(struct st_context *st, struct gl_program *prog,<br>
<br>
if (nir->info.stage == MESA_SHADER_VERTEX) {<br>
/* Needs special handling so drvloc matches the vbo state: */<br>
- st_nir_assign_vs_in_locations(prog, nir);<br>
+ st_nir_assign_vs_in_locations(nir);<br>
/* Re-lower global vars, to deal with any dead VS inputs. */<br>
NIR_PASS_V(nir, nir_lower_global_vars_to_local);<br>
<br>
-- <br>
2.19.1<br>
<br>
_______________________________________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org" target="_blank">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</blockquote></div>