intel: Fix type correctly this time
authorJakob Bornecrantz <wallbraker@gmail.com>
Wed, 28 Jan 2009 22:40:10 +0000 (23:40 +0100)
committerJakob Bornecrantz <wallbraker@gmail.com>
Wed, 28 Jan 2009 22:40:10 +0000 (23:40 +0100)
Facepalm.

src/gallium/winsys/drm/intel/gem/intel_be_batchbuffer.c

index a0574b8347d1cd86d520b58ee2141c3e0ee9b63d..78f5ea0468f9cf74c181fe68260804eaebe763ef 100644 (file)
@@ -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)