summaryrefslogtreecommitdiff
path: root/lib/igt_dummyload.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2017-01-27 13:32:38 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2017-01-27 13:34:01 +0000
commita2fa75ca7ac5b2d8af8f1856981d9a73725440fd (patch)
treedbf5e8ae1d7f0b21e70c81855ccd4b2ca0e064d3 /lib/igt_dummyload.c
parent86361171b7948b8ff99360627ade0acef0882a3d (diff)
lib: Fix emission of MI_BB_START for gen3 and before
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib/igt_dummyload.c')
-rw-r--r--lib/igt_dummyload.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/igt_dummyload.c b/lib/igt_dummyload.c
index 65f97916..7ceb370b 100644
--- a/lib/igt_dummyload.c
+++ b/lib/igt_dummyload.c
@@ -123,12 +123,13 @@ static void emit_recursive_batch(igt_spin_t *spin,
*batch++ = MI_BATCH_BUFFER_START | 1 << 8;
*batch++ = 0;
} else {
- *batch = MI_BATCH_BUFFER_START | 2 << 6;
+ *batch++ = MI_BATCH_BUFFER_START | 2 << 6;
+ *batch = 0;
if (gen < 4) {
*batch |= 1;
relocs[obj[BATCH].relocation_count].delta = 1;
}
- *++batch = 0;
+ batch++;
}
obj[BATCH].relocation_count++;
obj[BATCH].relocs_ptr = to_user_pointer(relocs);