summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gallium/winsys/drm/intel/gem/intel_be_batchbuffer.c2
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 a0574b8347..78f5ea0468 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)