diff options
author | Brian <[email protected]> | 2008-02-08 14:54:18 -0700 |
---|---|---|
committer | Brian <[email protected]> | 2008-02-08 15:13:49 -0700 |
commit | 62abcb9aacc33218d0143a743c738435794b32a9 (patch) | |
tree | 38f6456668756e537c67c4e8cc698f89128eb4c2 /src/mesa/state_tracker/st_context.c | |
parent | 0b64ee6960f9e099bc1a6ca6fa10720fee875b3a (diff) |
gallium: initial implemenation of auto mipmap generation in state tracker
Use hardware rendering to compute/render mipmap levels.
The fallback path (which will be used for non-renderable texture formats)
isn't working yet.
Diffstat (limited to 'src/mesa/state_tracker/st_context.c')
-rw-r--r-- | src/mesa/state_tracker/st_context.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_context.c b/src/mesa/state_tracker/st_context.c index 9c206c057a0..bf4618bed8e 100644 --- a/src/mesa/state_tracker/st_context.c +++ b/src/mesa/state_tracker/st_context.c @@ -49,6 +49,7 @@ #include "st_atom.h" #include "st_draw.h" #include "st_extensions.h" +#include "st_gen_mipmap.h" #include "st_program.h" #include "pipe/p_context.h" #include "pipe/p_winsys.h" @@ -96,6 +97,7 @@ st_create_context_priv( GLcontext *ctx, struct pipe_context *pipe ) st_init_atoms( st ); st_init_draw( st ); + st_init_generate_mipmap(st); /* we want all vertex data to be placed in buffer objects */ vbo_use_buffer_objects(ctx); |