mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-25 16:56:35 +00:00
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>
This commit is contained in:
parent
03d144d16f
commit
1bbb607d9f
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user