{
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;
}
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;
msm_ringbuffer_sp_emit_reloc(ring, &(struct fd_reloc){
.bo = bo,
- .flags = FD_RELOC_DUMP,
.offset = msm_target->offset,
});