Module: Mesa Branch: master Commit: db545796289abe4b771b3ee23a4559674bebe37a URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=db545796289abe4b771b3ee23a4559674bebe37a
Author: Dave Airlie <[email protected]> Date: Fri Jun 26 15:04:30 2009 +1000 r200: only emit unitneeded textures --- src/mesa/drivers/dri/r200/r200_state_init.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/mesa/drivers/dri/r200/r200_state_init.c b/src/mesa/drivers/dri/r200/r200_state_init.c index f88ec87..c7df4b2 100644 --- a/src/mesa/drivers/dri/r200/r200_state_init.c +++ b/src/mesa/drivers/dri/r200/r200_state_init.c @@ -585,6 +585,8 @@ static void tex_emit_cs(GLcontext *ctx, struct radeon_state_atom *atom) radeon_mipmap_level *lvl; int hastexture = 1; + if (!r200->state.texture.unit[i].unitneeded) + hastexture = 0; if (!t) hastexture = 0; else { _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
