nv50: only flush texture caches on st request
[mesa.git] / src / gallium / drivers / nv50 / nv50_context.c
index 1e697463221c3ecac83e7849da37eead09bf2cb5..e2198b189dad34d575d48b02a0b9dc5c4df95688 100644 (file)
@@ -34,6 +34,11 @@ nv50_flush(struct pipe_context *pipe, unsigned flags,
        struct nv50_context *nv50 = nv50_context(pipe);
        struct nouveau_channel *chan = nv50->screen->base.channel;
 
+       if (flags & PIPE_FLUSH_TEXTURE_CACHE) {
+               BEGIN_RING(chan, nv50->screen->tesla, 0x1338, 1);
+               OUT_RING  (chan, 0x20);
+       }
+
        if (flags & PIPE_FLUSH_FRAME)
                FIRE_RING(chan);
 }