From: Marek Olšák Date: Thu, 17 Oct 2019 18:51:23 +0000 (-0400) Subject: st/mesa: remove redundant function st_reference_compprog X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e94da4ab80c189eee6adc833b6fe9bc20ada1e64;p=mesa.git st/mesa: remove redundant function st_reference_compprog Reviewed-by: Timothy Arceri --- diff --git a/src/mesa/state_tracker/st_context.c b/src/mesa/state_tracker/st_context.c index 8279562fa81..549afb3168e 100644 --- a/src/mesa/state_tracker/st_context.c +++ b/src/mesa/state_tracker/st_context.c @@ -1046,7 +1046,7 @@ st_destroy_context(struct st_context *st) st_reference_vertprog(st, &st->vp, NULL); st_reference_prog(st, &st->tcp, NULL); st_reference_prog(st, &st->tep, NULL); - st_reference_compprog(st, &st->cp, NULL); + st_reference_prog(st, &st->cp, NULL); /* release framebuffer in the winsys buffers list */ LIST_FOR_EACH_ENTRY_SAFE_REV(stfb, next, &st->winsys_buffers, head) { diff --git a/src/mesa/state_tracker/st_program.h b/src/mesa/state_tracker/st_program.h index 096486b7c49..17271ac7323 100644 --- a/src/mesa/state_tracker/st_program.h +++ b/src/mesa/state_tracker/st_program.h @@ -343,16 +343,6 @@ st_reference_prog(struct st_context *st, (struct gl_program *) prog); } -static inline void -st_reference_compprog(struct st_context *st, - struct st_common_program **ptr, - struct st_common_program *prog) -{ - _mesa_reference_program(st->ctx, - (struct gl_program **) ptr, - (struct gl_program *) prog); -} - /** * This defines mapping from Mesa VARYING_SLOTs to TGSI GENERIC slots. */