summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2019-10-17 14:51:23 -0400
committerMarek Olšák <[email protected]>2019-10-17 20:31:34 -0400
commite94da4ab80c189eee6adc833b6fe9bc20ada1e64 (patch)
tree2b758a7fab42930b0a373694270f01eaacaa6290 /src/mesa
parent614331738d5178bf33edb11c8e0facc57fb06a8b (diff)
st/mesa: remove redundant function st_reference_compprog
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/state_tracker/st_context.c2
-rw-r--r--src/mesa/state_tracker/st_program.h10
2 files changed, 1 insertions, 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.
*/