dri/nouveau: Flush after texture validation.
authorFrancisco Jerez <currojerez@riseup.net>
Thu, 18 Mar 2010 12:46:20 +0000 (13:46 +0100)
committerFrancisco Jerez <currojerez@riseup.net>
Thu, 18 Mar 2010 14:02:37 +0000 (15:02 +0100)
Swizzling needs the destination surface in VRAM, but the subsequent
rendering operations making use of it are likely to not care. Fire the
ring after validation to leave the memory manager more room for
maneuvering.

src/mesa/drivers/dri/nouveau/nouveau_texture.c

index 20bc0f6688faea7f0d51f4aa4920f1fac419d1dc..e89018653b1d574f5d127e234b369f0313215dc0 100644 (file)
@@ -296,6 +296,8 @@ nouveau_texture_validate(GLcontext *ctx, struct gl_texture_object *t)
                        validate_teximage(ctx, t, i, 0, 0, 0,
                                          s->width, s->height, 1);
                }
+
+               FIRE_RING(context_chan(ctx));
        }
 
        return GL_TRUE;