mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-11 16:32:58 +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 1552aa2112
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user