Mesa (gallium-0.2): intel: Fix type correctly this time

Jakob Bornecrantz wallbraker at kemper.freedesktop.org
Wed Jan 28 22:42:55 UTC 2009


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

Author: Jakob Bornecrantz <wallbraker at gmail.com>
Date:   Wed Jan 28 23:40:10 2009 +0100

intel: Fix type correctly this time

	Facepalm.

---

 .../winsys/drm/intel/gem/intel_be_batchbuffer.c    |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/winsys/drm/intel/gem/intel_be_batchbuffer.c b/src/gallium/winsys/drm/intel/gem/intel_be_batchbuffer.c
index a0574b8..78f5ea0 100644
--- a/src/gallium/winsys/drm/intel/gem/intel_be_batchbuffer.c
+++ b/src/gallium/winsys/drm/intel/gem/intel_be_batchbuffer.c
@@ -72,7 +72,7 @@ intel_be_offset_relocation(struct intel_be_batchbuffer *batch,
 	                              read_domains,
 	                              write_domain);
 
-	((uint32_t*)batch->base.ptr)[0] = bo->offset - pre_add;
+	((uint32_t*)batch->base.ptr)[0] = bo->offset + pre_add;
 	batch->base.ptr += 4;
 
 	if (!ret)




More information about the mesa-commit mailing list