summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_emit.c
diff options
context:
space:
mode:
authorCorbin Simpson <[email protected]>2010-01-11 20:52:19 -0800
committerCorbin Simpson <[email protected]>2010-01-11 20:54:12 -0800
commitdaa446fa8312337bad302f0ec4928eca49db9f32 (patch)
treee31d3764b9ab91ded1a425175097d5fa513761c1 /src/gallium/drivers/r300/r300_emit.c
parente920ee23b32f6031a7b8527b540566e7ada6af8a (diff)
r300g: Add back dirty state check.
From 07ea7e6c80. This is the only questionable part of that commit, AFAICT...
Diffstat (limited to 'src/gallium/drivers/r300/r300_emit.c')
-rw-r--r--src/gallium/drivers/r300/r300_emit.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_emit.c b/src/gallium/drivers/r300/r300_emit.c
index 2bf8fbd684a..5ac6ed866f3 100644
--- a/src/gallium/drivers/r300/r300_emit.c
+++ b/src/gallium/drivers/r300/r300_emit.c
@@ -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);