From deee3b0f9ec3128939c166120153a16eb1807396 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Mon, 20 Oct 2014 15:30:30 -0700 Subject: [PATCH] glsl_to_tgsi: Remove st_new_shader_program MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit It was identical to the default implementation in _mesa_new_shader_program. Signed-off-by: Ian Romanick Reviewed-by: Brian Paul Reviewed-by: Matt Turner Reviewed-by: Kenneth Graunke Reviewed-by: Marek Olšák Cc: Dave Airlie --- src/mesa/state_tracker/st_cb_program.c | 1 - src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 12 ------------ src/mesa/state_tracker/st_glsl_to_tgsi.h | 3 --- 3 files changed, 16 deletions(-) diff --git a/src/mesa/state_tracker/st_cb_program.c b/src/mesa/state_tracker/st_cb_program.c index 82e1fd14abe..9992bbb214c 100644 --- a/src/mesa/state_tracker/st_cb_program.c +++ b/src/mesa/state_tracker/st_cb_program.c @@ -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; } diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp index a6ce033ed03..b0cb171edb8 100644 --- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp +++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp @@ -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() diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.h b/src/mesa/state_tracker/st_glsl_to_tgsi.h index 18f666f5b44..e3990d399aa 100644 --- a/src/mesa/state_tracker/st_glsl_to_tgsi.h +++ b/src/mesa/state_tracker/st_glsl_to_tgsi.h @@ -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 -- 2.30.2