diff options
author | Marek Olšák <[email protected]> | 2019-10-17 14:51:23 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2019-10-17 20:31:34 -0400 |
commit | e94da4ab80c189eee6adc833b6fe9bc20ada1e64 (patch) | |
tree | 2b758a7fab42930b0a373694270f01eaacaa6290 /src/mesa | |
parent | 614331738d5178bf33edb11c8e0facc57fb06a8b (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.c | 2 | ||||
-rw-r--r-- | src/mesa/state_tracker/st_program.h | 10 |
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. */ |