nouveau : nv10 mixing cached stuff with not cached stuff is bad.
authorMatthieu Castet <castet.matthieu@free.fr>
Sun, 28 Jan 2007 22:26:21 +0000 (23:26 +0100)
committerMatthieu Castet <mat@mat-pc.(none)>
Sun, 28 Jan 2007 22:26:21 +0000 (23:26 +0100)
src/mesa/drivers/dri/nouveau/nv10_state.c

index 0e912e7..4e9bccb 100644 (file)
@@ -688,10 +688,10 @@ static GLboolean nv10BindBuffers(nouveauContextPtr nmesa, int num_color,
        if (color[0]->mesa._ActualFormat != GL_RGBA8) {
                format = 0x103; /* R5G6B5 color buffer */
        }
-       OUT_RING(format);
-       OUT_RING(pitch);
-       OUT_RING(color[0]->offset);
-       OUT_RING(depth ? depth->offset : color[0]->offset);
+       OUT_RING_CACHE(format);
+       OUT_RING_CACHE(pitch);
+       OUT_RING_CACHE(color[0]->offset);
+       OUT_RING_CACHE(depth ? depth->offset : color[0]->offset);
 
        return GL_TRUE;
 }