diff options
author | Corbin Simpson <[email protected]> | 2010-01-11 20:52:19 -0800 |
---|---|---|
committer | Corbin Simpson <[email protected]> | 2010-01-11 20:54:12 -0800 |
commit | daa446fa8312337bad302f0ec4928eca49db9f32 (patch) | |
tree | e31d3764b9ab91ded1a425175097d5fa513761c1 /src/gallium/drivers | |
parent | e920ee23b32f6031a7b8527b540566e7ada6af8a (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')
-rw-r--r-- | src/gallium/drivers/r300/r300_emit.c | 4 |
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); |