summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Widawsky <benjamin.widawsky@intel.com>2014-01-21 18:03:42 -0800
committerBen Widawsky <benjamin.widawsky@intel.com>2014-01-21 18:03:42 -0800
commit1bbb607d9f3ee8e725a784f740937577f153a520 (patch)
treefb6313c53e36d3599b58dde032b829d80af56086
parent03d144d16ffef63cedca81ccb4708b173b16868f (diff)
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 <benjamin.widawsky@intel.com> 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 <ben@bwidawsk.net>
-rw-r--r--tests/gem_storedw_batches_loop.c3
1 files changed, 2 insertions, 1 deletions
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);