r300g: Add back dirty state check.
authorCorbin Simpson <MostAwesomeDude@gmail.com>
Tue, 12 Jan 2010 04:52:19 +0000 (20:52 -0800)
committerCorbin Simpson <MostAwesomeDude@gmail.com>
Tue, 12 Jan 2010 04:54:12 +0000 (20:54 -0800)
From 07ea7e6c80. This is the only questionable part of that commit,
AFAICT...

src/gallium/drivers/r300/r300_emit.c

index 2bf8fbd684af8e55e303b1885100da0e6e80ce5c..5ac6ed866f38e30f4e3217acfe453370757a73a5 100644 (file)
@@ -1000,6 +1000,10 @@ void r300_emit_dirty_state(struct r300_context* r300)
         r300->context.flush(&r300->context, 0, NULL);
     }
 
+    if (!(r300->dirty_state)) {
+        return;
+    }
+
     /* Clean out BOs. */
     r300->winsys->reset_bos(r300->winsys);