diff --git a/src/gallium/drivers/v3d/v3d_resource.c b/src/gallium/drivers/v3d/v3d_resource.c index d7746bf9cfd..7719525b1de 100644 --- a/src/gallium/drivers/v3d/v3d_resource.c +++ b/src/gallium/drivers/v3d/v3d_resource.c @@ -814,16 +814,7 @@ v3d_resource_create_with_modifiers(struct pipe_screen *pscreen, v3d_setup_slices(rsc, 0, tmpl->bind & PIPE_BIND_SHARED); - /* If we're in a renderonly setup, use the other device to perform our - * allocation and just import it to v3d. The other device may be - * using CMA, and V3D can import from CMA but doesn't do CMA - * allocations on its own. - * - * We always allocate this way for SHARED, because get_handle will - * need a resource on the display fd. - */ - if (screen->ro && (tmpl->bind & (PIPE_BIND_SCANOUT | - PIPE_BIND_SHARED))) { + if (screen->ro && (tmpl->bind & PIPE_BIND_SCANOUT)) { struct winsys_handle handle; struct pipe_resource scanout_tmpl = { .target = prsc->target,