Mesa (main): mesa: drop unused _mesa_new_program.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Dec 22 21:36:53 UTC 2021


Module: Mesa
Branch: main
Commit: 57a730f4ad4275cdb73d23d1132e63c87301b528
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=57a730f4ad4275cdb73d23d1132e63c87301b528

Author: Dave Airlie <airlied at redhat.com>
Date:   Wed Dec 22 17:07:28 2021 +1000

mesa: drop unused _mesa_new_program.

This isn't used since classic removal.

Reviewed-by: Kristian H. Kristensen <hoegsberg at google.com>
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14286>

---

 src/mesa/program/program.c | 23 -----------------------
 src/mesa/program/program.h |  4 ----
 2 files changed, 27 deletions(-)

diff --git a/src/mesa/program/program.c b/src/mesa/program/program.c
index 71040cc50f5..73ed8848459 100644
--- a/src/mesa/program/program.c
+++ b/src/mesa/program/program.c
@@ -217,29 +217,6 @@ _mesa_init_gl_program(struct gl_program *prog, gl_shader_stage stage,
    return prog;
 }
 
-
-/**
- * Allocate and initialize a new fragment/vertex program object but
- * don't put it into the program hash table.  Called via
- * ctx->Driver.NewProgram.  May be overridden (ie. replaced) by a
- * device driver function to implement OO deriviation with additional
- * types not understood by this function.
- *
- * \param ctx  context
- * \param id   program id/number
- * \param stage  shader stage
- * \return  pointer to new program object
- */
-struct gl_program *
-_mesa_new_program(struct gl_context *ctx, gl_shader_stage stage, GLuint id,
-                  bool is_arb_asm)
-{
-   struct gl_program *prog = rzalloc(NULL, struct gl_program);
-
-   return _mesa_init_gl_program(prog, stage, id, is_arb_asm);
-}
-
-
 /**
  * Delete a program and remove it from the hash table, ignoring the
  * reference count.
diff --git a/src/mesa/program/program.h b/src/mesa/program/program.h
index 3df5e988995..ab10cd84f98 100644
--- a/src/mesa/program/program.h
+++ b/src/mesa/program/program.h
@@ -66,10 +66,6 @@ extern struct gl_program *
 _mesa_init_gl_program(struct gl_program *prog, gl_shader_stage stage,
                       GLuint id, bool is_arb_asm);
 
-extern struct gl_program *
-_mesa_new_program(struct gl_context *ctx, gl_shader_stage stage, GLuint id,
-                  bool is_arb_asm);
-
 extern void
 _mesa_delete_program(struct gl_context *ctx, struct gl_program *prog);
 



More information about the mesa-commit mailing list