diff --git a/src/gallium/drivers/etnaviv/etnaviv_resource.c b/src/gallium/drivers/etnaviv/etnaviv_resource.c index cffa43aa52b..92cb5ce7fa3 100644 --- a/src/gallium/drivers/etnaviv/etnaviv_resource.c +++ b/src/gallium/drivers/etnaviv/etnaviv_resource.c @@ -696,15 +696,9 @@ etna_resource_from_handle(struct pipe_screen *pscreen, level->padded_height); level->size = level->layer_stride; - if (screen->ro) { - struct pipe_resource *imp_prsc = prsc; - do { - etna_resource(imp_prsc)->scanout = - renderonly_create_gpu_import_for_resource(imp_prsc, screen->ro, - NULL); - /* failure is expected for scanout incompatible buffers */ - } while ((imp_prsc = imp_prsc->next)); - } + if (screen->ro) + rsc->scanout = renderonly_create_gpu_import_for_resource(prsc, screen->ro, + NULL); /* If the buffer is for a TS plane, skip the RS compatible checks */ if (handle->plane >= util_format_get_num_planes(prsc->format))