From 1bbb607d9f3ee8e725a784f740937577f153a520 Mon Sep 17 00:00:00 2001 From: Ben Widawsky Date: Tue, 21 Jan 2014 18:03:42 -0800 Subject: [PATCH] gem_storedw_batches_loop: Fix for pre-BDW My git failures are truly remarkable. I ended up pushing the wrong commit here: commit 1552aa21124cabe762862bb414490510415a2b2d Author: Ben Widawsky Date: Mon Jan 13 06:28:45 2014 -0800 gem_storedw_batches_loop: Fix for BDW This puts the offset of the reloc in the wrong place for pre-BDW Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=73866 Signed-off-by: Ben Widawsky --- tests/gem_storedw_batches_loop.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/gem_storedw_batches_loop.c b/tests/gem_storedw_batches_loop.c index 9570962e..96b5a4df 100644 --- a/tests/gem_storedw_batches_loop.c +++ b/tests/gem_storedw_batches_loop.c @@ -74,12 +74,13 @@ store_dword_loop(int divider, unsigned flags) buf = cmd_bo->virtual; buf[j++] = cmd; - cmd_address_offset = j * 4; if (intel_gen(drm_intel_bufmgr_gem_get_devid(bufmgr)) >= 8) { + cmd_address_offset = j * 4; buf[j++] = target_bo->offset; buf[j++] = 0; } else { buf[j++] = 0; + cmd_address_offset = j * 4; buf[j++] = target_bo->offset; } assert(j > 0);