glsl_to_tgsi: Remove st_new_shader_program

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>
This commit is contained in:
Ian Romanick 2014-10-20 15:30:30 -07:00
parent a2dc16ed81
commit deee3b0f9e
3 changed files with 0 additions and 16 deletions

View 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;
}

View 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()

View 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