i965/batch/debug: Allow log be dumped before assert
Message that may show the culprit of assert now will be dumped before that for debug purposes. Signed-off-by: Sergii Romantsov <sergii.romantsov@globallogic.com> Reviewed-by: Lionel G Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
4fd0ff75f3
commit
5aeee1ab15
|
@ -725,10 +725,10 @@ execbuffer(int fd,
|
||||||
|
|
||||||
/* Update brw_bo::gtt_offset */
|
/* Update brw_bo::gtt_offset */
|
||||||
if (batch->validation_list[i].offset != bo->gtt_offset) {
|
if (batch->validation_list[i].offset != bo->gtt_offset) {
|
||||||
assert(!(bo->kflags & EXEC_OBJECT_PINNED));
|
|
||||||
DBG("BO %d migrated: 0x%" PRIx64 " -> 0x%llx\n",
|
DBG("BO %d migrated: 0x%" PRIx64 " -> 0x%llx\n",
|
||||||
bo->gem_handle, bo->gtt_offset,
|
bo->gem_handle, bo->gtt_offset,
|
||||||
batch->validation_list[i].offset);
|
batch->validation_list[i].offset);
|
||||||
|
assert(!(bo->kflags & EXEC_OBJECT_PINNED));
|
||||||
bo->gtt_offset = batch->validation_list[i].offset;
|
bo->gtt_offset = batch->validation_list[i].offset;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue