freedreno: Update import/export traces
Signed-off-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7308>
This commit is contained in:
parent
5f686c308a
commit
63bdbfd045
|
@ -838,6 +838,14 @@ fd_resource_get_handle(struct pipe_screen *pscreen,
|
||||||
|
|
||||||
handle->modifier = fd_resource_modifier(rsc);
|
handle->modifier = fd_resource_modifier(rsc);
|
||||||
|
|
||||||
|
DBG("%p: target=%d, format=%s, %ux%ux%u, array_size=%u, last_level=%u, "
|
||||||
|
"nr_samples=%u, usage=%u, bind=%x, flags=%x, modifier=%"PRIx64,
|
||||||
|
prsc, prsc->target, util_format_name(prsc->format),
|
||||||
|
prsc->width0, prsc->height0, prsc->depth0,
|
||||||
|
prsc->array_size, prsc->last_level, prsc->nr_samples,
|
||||||
|
prsc->usage, prsc->bind, prsc->flags,
|
||||||
|
handle->modifier);
|
||||||
|
|
||||||
return fd_screen_bo_get_handle(pscreen, rsc->bo, rsc->scanout,
|
return fd_screen_bo_get_handle(pscreen, rsc->bo, rsc->scanout,
|
||||||
fd_resource_pitch(rsc, 0), handle);
|
fd_resource_pitch(rsc, 0), handle);
|
||||||
}
|
}
|
||||||
|
@ -1071,12 +1079,13 @@ fd_resource_from_handle(struct pipe_screen *pscreen,
|
||||||
struct fdl_slice *slice = fd_resource_slice(rsc, 0);
|
struct fdl_slice *slice = fd_resource_slice(rsc, 0);
|
||||||
struct pipe_resource *prsc = &rsc->base;
|
struct pipe_resource *prsc = &rsc->base;
|
||||||
|
|
||||||
DBG("target=%d, format=%s, %ux%ux%u, array_size=%u, last_level=%u, "
|
DBG("%p: target=%d, format=%s, %ux%ux%u, array_size=%u, last_level=%u, "
|
||||||
"nr_samples=%u, usage=%u, bind=%x, flags=%x",
|
"nr_samples=%u, usage=%u, bind=%x, flags=%x, modifier=%"PRIx64,
|
||||||
tmpl->target, util_format_name(tmpl->format),
|
prsc, tmpl->target, util_format_name(tmpl->format),
|
||||||
tmpl->width0, tmpl->height0, tmpl->depth0,
|
tmpl->width0, tmpl->height0, tmpl->depth0,
|
||||||
tmpl->array_size, tmpl->last_level, tmpl->nr_samples,
|
tmpl->array_size, tmpl->last_level, tmpl->nr_samples,
|
||||||
tmpl->usage, tmpl->bind, tmpl->flags);
|
tmpl->usage, tmpl->bind, tmpl->flags,
|
||||||
|
handle->modifier);
|
||||||
|
|
||||||
*prsc = *tmpl;
|
*prsc = *tmpl;
|
||||||
fd_resource_layout_init(prsc);
|
fd_resource_layout_init(prsc);
|
||||||
|
|
Loading…
Reference in New Issue