intel: Fix typo
authorJakob Bornecrantz <wallbraker@gmail.com>
Wed, 28 Jan 2009 22:37:23 +0000 (23:37 +0100)
committerJakob Bornecrantz <wallbraker@gmail.com>
Wed, 28 Jan 2009 22:37:23 +0000 (23:37 +0100)
src/gallium/winsys/drm/intel/gem/intel_be_batchbuffer.c

index 6efa68626b6f60a54752af425d577fb6fb2b9753..a0574b8347d1cd86d520b58ee2141c3e0ee9b63d 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)