freedreno: Mark all ringbuffer BOs as to be dumped on crash.
We can avoid passing these flags around in the DRM backends by just marking ring BOs up front. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4967>
This commit is contained in:
parent
554b959df0
commit
b2c23b1e48
|
@ -132,9 +132,11 @@ fd_bo_new_ring(struct fd_device *dev, uint32_t size)
|
|||
{
|
||||
uint32_t flags = DRM_FREEDRENO_GEM_GPUREADONLY;
|
||||
struct fd_bo *bo = bo_new(dev, size, flags, &dev->ring_cache);
|
||||
if (bo)
|
||||
if (bo) {
|
||||
bo->bo_reuse = RING_CACHE;
|
||||
fd_bo_set_name(bo, "cmdstream");
|
||||
bo->flags |= FD_RELOC_DUMP;
|
||||
fd_bo_set_name(bo, "cmdstream");
|
||||
}
|
||||
return bo;
|
||||
}
|
||||
|
||||
|
|
|
@ -259,7 +259,7 @@ msm_submit_sp_flush(struct fd_submit *submit, int in_fence_fd,
|
|||
for (unsigned i = 0; i < primary->u.nr_cmds; i++) {
|
||||
cmds[i].type = MSM_SUBMIT_CMD_BUF;
|
||||
cmds[i].submit_idx = msm_submit_append_bo(msm_submit,
|
||||
primary->u.cmds[i].ring_bo, FD_RELOC_DUMP);
|
||||
primary->u.cmds[i].ring_bo, 0);
|
||||
cmds[i].submit_offset = primary->offset;
|
||||
cmds[i].size = primary->u.cmds[i].size;
|
||||
cmds[i].pad = 0;
|
||||
|
@ -453,7 +453,6 @@ msm_ringbuffer_sp_emit_reloc_ring(struct fd_ringbuffer *ring,
|
|||
|
||||
msm_ringbuffer_sp_emit_reloc(ring, &(struct fd_reloc){
|
||||
.bo = bo,
|
||||
.flags = FD_RELOC_DUMP,
|
||||
.offset = msm_target->offset,
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue