From e94da4ab80c189eee6adc833b6fe9bc20ada1e64 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Thu, 17 Oct 2019 14:51:23 -0400 Subject: [PATCH] st/mesa: remove redundant function st_reference_compprog Reviewed-by: Timothy Arceri --- src/mesa/state_tracker/st_context.c | 2 +- src/mesa/state_tracker/st_program.h | 10 ---------- 2 files changed, 1 insertion(+), 11 deletions(-) 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. */ -- 2.30.2