mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-01 14:00:16 +01:00
intel/hang_replay: fix batch address
Also capture all buffers so that we can compare replay run with the original error state. Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: José Roberto de Souza <jose.souza@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27594>
This commit is contained in:
parent
a9f1151de2
commit
bab52763f4
1 changed files with 9 additions and 6 deletions
|
|
@ -600,8 +600,9 @@ main(int argc, char *argv[])
|
|||
.relocation_count = 0,
|
||||
.relocs_ptr = 0,
|
||||
.flags = EXEC_OBJECT_SUPPORTS_48B_ADDRESS |
|
||||
EXEC_OBJECT_PINNED,
|
||||
.offset = bo->offset,
|
||||
EXEC_OBJECT_PINNED |
|
||||
EXEC_OBJECT_CAPTURE,
|
||||
.offset = intel_canonical_address(bo->offset),
|
||||
};
|
||||
}
|
||||
|
||||
|
|
@ -620,8 +621,9 @@ main(int argc, char *argv[])
|
|||
.relocs_ptr = 0,
|
||||
.flags = EXEC_OBJECT_SUPPORTS_48B_ADDRESS |
|
||||
EXEC_OBJECT_PINNED |
|
||||
EXEC_OBJECT_WRITE /* to be able to wait on the BO */,
|
||||
.offset = init_bo->offset,
|
||||
EXEC_OBJECT_WRITE /* to be able to wait on the BO */ |
|
||||
EXEC_OBJECT_CAPTURE,
|
||||
.offset = intel_canonical_address(init_bo->offset),
|
||||
};
|
||||
ret = execbuffer(drm_fd, ctx_id, &execbuffer_bos, init_bo, init.offset);
|
||||
if (ret != 0) {
|
||||
|
|
@ -641,8 +643,9 @@ main(int argc, char *argv[])
|
|||
.relocs_ptr = 0,
|
||||
.flags = EXEC_OBJECT_SUPPORTS_48B_ADDRESS |
|
||||
EXEC_OBJECT_PINNED |
|
||||
EXEC_OBJECT_WRITE /* to be able to wait on the BO */,
|
||||
.offset = batch_bo->offset,
|
||||
EXEC_OBJECT_WRITE /* to be able to wait on the BO */ |
|
||||
EXEC_OBJECT_CAPTURE,
|
||||
.offset = intel_canonical_address(batch_bo->offset),
|
||||
};
|
||||
ret = execbuffer(drm_fd, ctx_id, &execbuffer_bos, batch_bo, exec.offset);
|
||||
if (ret != 0) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue