glsl_to_tgsi: Remove st_new_shader_program
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 20 Oct 2014 22:30:30 +0000 (15:30 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Sat, 25 Oct 2014 02:54:39 +0000 (19:54 -0700)
It was identical to the default implementation in
_mesa_new_shader_program.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Cc: Dave Airlie <airlied@redhat.com>
src/mesa/state_tracker/st_cb_program.c
src/mesa/state_tracker/st_glsl_to_tgsi.cpp
src/mesa/state_tracker/st_glsl_to_tgsi.h

index 82e1fd14abe7e271425baf17ea833fa51e55a203..9992bbb214c30fbe7cfc64fd70faed3f3f46f5d5 100644 (file)
@@ -243,6 +243,5 @@ st_init_program_functions(struct dd_function_table *functions)
    functions->ProgramStringNotify = st_program_string_notify;
    
    functions->NewShader = st_new_shader;
-   functions->NewShaderProgram = st_new_shader_program;
    functions->LinkShader = st_link_shader;
 }
index a6ce033ed0349b9e296ee99028a07acbca29ae2c..b0cb171edb85781b4c0ff516973298de4ecef9d7 100644 (file)
@@ -5347,18 +5347,6 @@ st_new_shader(struct gl_context *ctx, GLuint name, GLuint type)
    return shader;
 }
 
-struct gl_shader_program *
-st_new_shader_program(struct gl_context *ctx, GLuint name)
-{
-   struct gl_shader_program *shProg;
-   shProg = rzalloc(NULL, struct gl_shader_program);
-   if (shProg) {
-      shProg->Name = name;
-      _mesa_init_shader_program(ctx, shProg);
-   }
-   return shProg;
-}
-
 /**
  * Link a shader.
  * Called via ctx->Driver.LinkShader()
index 18f666f5b44fb5ecd55ae5f327cc7d78e94918ec..e3990d399aabbcdaa407ee916c032ce6f6ba0adc 100644 (file)
@@ -63,9 +63,6 @@ void get_bitmap_visitor(struct st_fragment_program *fp,
 
 struct gl_shader *st_new_shader(struct gl_context *ctx, GLuint name, GLuint type);
 
-struct gl_shader_program *
-st_new_shader_program(struct gl_context *ctx, GLuint name);
-
 GLboolean st_link_shader(struct gl_context *ctx, struct gl_shader_program *prog);
 
 void