Mesa (mesa_7_2_branch): intel: reset cliprect_mode to IGNORE_CLIPRECTS.
Haihao Xiang
haihao at kemper.freedesktop.org
Tue Nov 11 06:03:40 UTC 2008
Module: Mesa
Branch: mesa_7_2_branch
Commit: 36c3e889d0cfbb040f7b860279987cd6ff5951f4
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=36c3e889d0cfbb040f7b860279987cd6ff5951f4
Author: Xiang, Haihao <haihao.xiang at intel.com>
Date: Tue Nov 11 13:42:13 2008 +0800
intel: reset cliprect_mode to IGNORE_CLIPRECTS.
This ensures all batchbuffers have a same cliprect mode after calling
_intel_batchbuffer_flush even if there aren't invalid commands in the
current batch buffer. (fix bug#18362).
(cherry picked from commit 09623fe551771031ed02ba7542c94bdbdd83ecec)
---
src/mesa/drivers/dri/intel/intel_batchbuffer.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/src/mesa/drivers/dri/intel/intel_batchbuffer.c b/src/mesa/drivers/dri/intel/intel_batchbuffer.c
index a594fb6..e9d6d63 100644
--- a/src/mesa/drivers/dri/intel/intel_batchbuffer.c
+++ b/src/mesa/drivers/dri/intel/intel_batchbuffer.c
@@ -198,8 +198,10 @@ _intel_batchbuffer_flush(struct intel_batchbuffer *batch, const char *file,
GLuint used = batch->ptr - batch->map;
GLboolean was_locked = intel->locked;
- if (used == 0)
+ if (used == 0) {
+ batch->cliprect_mode = IGNORE_CLIPRECTS;
return;
+ }
if (INTEL_DEBUG & DEBUG_BATCH)
fprintf(stderr, "%s:%d: Batchbuffer flush with %db used\n", file, line,
More information about the mesa-commit
mailing list