st/mesa: remove redundant function st_reference_compprog
authorMarek Olšák <marek.olsak@amd.com>
Thu, 17 Oct 2019 18:51:23 +0000 (14:51 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 18 Oct 2019 00:31:34 +0000 (20:31 -0400)
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/mesa/state_tracker/st_context.c
src/mesa/state_tracker/st_program.h

index 8279562fa81ba3fefa86baa490cd25d0334d98f5..549afb3168ee626a7326ca28cbbbf1f2dd2b396c 100644 (file)
@@ -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) {
index 096486b7c498a231f31fa4bc3fda11b6f39e6310..17271ac732369d623ef5739da97a0347dd366479 100644 (file)
@@ -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.
  */