summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2008-02-11 09:50:21 -0700
committerBen Skeggs <skeggsb@gmail.com>2008-02-15 13:51:11 +1100
commit48c4a1ed12d30932c5a9d09424213a830efe2ef9 (patch)
tree17208a4817d5011ca3e0f30e58ef7c6fdf29fb7b
parenta705e157f2d14a7fcc81b292fcca9dab4f38c9b2 (diff)
gallium: comments about mipmap gen
-rw-r--r--src/mesa/state_tracker/st_gen_mipmap.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_gen_mipmap.c b/src/mesa/state_tracker/st_gen_mipmap.c
index 5c00392af7..f6af37cfac 100644
--- a/src/mesa/state_tracker/st_gen_mipmap.c
+++ b/src/mesa/state_tracker/st_gen_mipmap.c
@@ -273,6 +273,10 @@ st_render_mipmap(struct st_context *st,
pipe->bind_fs_state(pipe, stfp->fs->data);
pipe->bind_vs_state(pipe, stvp->cso->data);
+ /*
+ * XXX for small mipmap levels, it may be faster to use the software
+ * fallback path...
+ */
for (dstLevel = baseLevel + 1; dstLevel <= lastLevel; dstLevel++) {
const uint srcLevel = dstLevel - 1;
@@ -348,6 +352,7 @@ fallback_generate_mipmap(GLcontext *ctx, GLenum target,
PIPE_BUFFER_USAGE_CPU_WRITE)
+ dstSurf->offset;
+ /* XXX need to take stride/pitch info into account... */
_mesa_generate_mipmap_level(target, datatype, comps,
0 /*border*/,
pt->width[srcLevel], pt->height[srcLevel], pt->depth[srcLevel],