Mesa (gallium-0.2): intel: Require the right amount of space in glBitmap blit acceleration.

Alan Hourihane alanh at kemper.freedesktop.org
Tue Dec 9 16:18:08 UTC 2008


Module: Mesa
Branch: gallium-0.2
Commit: a0d5c3cfe6582f8294154f6877319193458158a2
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a0d5c3cfe6582f8294154f6877319193458158a2

Author: Pierre Willenbrock <pierre at pirsoft.de>
Date:   Mon Dec  8 14:06:51 2008 -0800

intel: Require the right amount of space in glBitmap blit acceleration.

This leads to problems when the batchbuffer is flushed, but the bitmap
data could not fit into it.

---

 src/mesa/drivers/dri/intel/intel_blit.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/intel/intel_blit.c b/src/mesa/drivers/dri/intel/intel_blit.c
index ab12aae..2f1639d 100644
--- a/src/mesa/drivers/dri/intel/intel_blit.c
+++ b/src/mesa/drivers/dri/intel/intel_blit.c
@@ -600,7 +600,7 @@ intelEmitImmediateColorExpandBlit(struct intel_context *intel,
    intel_batchbuffer_require_space( intel->batch,
 				    (8 * 4) +
 				    (3 * 4) +
-				    dwords,
+				    dwords * 4,
 				    REFERENCES_CLIPRECTS );
 
    opcode = XY_SETUP_BLT_CMD;




More information about the mesa-commit mailing list