From: Corbin Simpson Date: Tue, 12 Jan 2010 04:52:19 +0000 (-0800) Subject: r300g: Add back dirty state check. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=daa446fa8312337bad302f0ec4928eca49db9f32;p=mesa.git r300g: Add back dirty state check. From 07ea7e6c80. This is the only questionable part of that commit, AFAICT... --- 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);