summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_context.c
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2014-03-16 03:45:27 +0100
committerMarek Olšák <marek.olsak@amd.com>2014-04-10 20:50:16 +0200
commit38858207a11819a3c68f14b589c0779fb82152ff (patch)
treeb67aba5d2ccef8c3173d81b88ef04531c54ba71d /src/mesa/state_tracker/st_context.c
parent26c41398cc47c0f72259a34406831443238b7ba9 (diff)
downloadexternal_mesa3d-38858207a11819a3c68f14b589c0779fb82152ff.zip
external_mesa3d-38858207a11819a3c68f14b589c0779fb82152ff.tar.gz
external_mesa3d-38858207a11819a3c68f14b589c0779fb82152ff.tar.bz2
gallium/u_gen_mipmap: rewrite using pipe->blit (v2)
This replaces u_gen_mipmap with an extremely simple implementation based on pipe->blit. st/mesa is also cleaned up. Pros: - less code - correct mipmap generation for NPOT 3D textures (u_blitter uses a better formula) - queries are not affected by mipmap generation if drivers disable them v2: add "first_layer", "last_layer" parameters, drop "face" v2.1: add format v2.2: document the format parameter
Diffstat (limited to 'src/mesa/state_tracker/st_context.c')
-rw-r--r--src/mesa/state_tracker/st_context.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/mesa/state_tracker/st_context.c b/src/mesa/state_tracker/st_context.c
index 807a86f..c7f3ec6 100644
--- a/src/mesa/state_tracker/st_context.c
+++ b/src/mesa/state_tracker/st_context.c
@@ -152,7 +152,6 @@ st_create_context_priv( struct gl_context *ctx, struct pipe_context *pipe,
st_init_bitmap(st);
st_init_clear(st);
st_init_draw( st );
- st_init_generate_mipmap(st);
/* Choose texture target for glDrawPixels, glBitmap, renderbuffers */
if (pipe->screen->get_param(pipe->screen, PIPE_CAP_NPOT_TEXTURES))
@@ -254,7 +253,6 @@ static void st_destroy_context_priv( struct st_context *st )
st_destroy_atoms( st );
st_destroy_draw( st );
- st_destroy_generate_mipmap(st);
st_destroy_clear(st);
st_destroy_bitmap(st);
st_destroy_drawpix(st);