meta: Drop a now-trivial helper function.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
Eric Anholt 2014-02-11 16:19:29 -08:00
parent e48a6378c9
commit e455c8283b
1 changed files with 3 additions and 12 deletions

View File

@ -3420,17 +3420,6 @@ sampler_table_cleanup(struct sampler_table *table)
table->sampler_cubemap_array.shader_prog = 0;
}
static void
setup_glsl_generate_mipmap(struct gl_context *ctx,
struct gen_mipmap_state *mipmap,
GLenum target)
{
setup_vertex_objects(&mipmap->VAO, &mipmap->VBO, true, 2, 3, 0);
setup_blit_shader(ctx, target, &mipmap->samplers);
}
static void
meta_glsl_generate_mipmap_cleanup(struct gen_mipmap_state *mipmap)
{
@ -3490,7 +3479,9 @@ _mesa_meta_GenerateMipmap(struct gl_context *ctx, GLenum target,
* GenerateMipmap function.
*/
if (use_glsl_version) {
setup_glsl_generate_mipmap(ctx, mipmap, target);
setup_vertex_objects(&mipmap->VAO, &mipmap->VBO, true,
2, 3, 0);
setup_blit_shader(ctx, target, &mipmap->samplers);
}
else {
setup_ff_tnl_for_blit(&mipmap->VAO, &mipmap->VBO, 3);