From 6ab2e1055b63798eab4a679cb20a92131798adba Mon Sep 17 00:00:00 2001 From: Lucas Stach Date: Tue, 5 Jul 2022 18:15:27 +0200 Subject: [PATCH] etnaviv: drop scanout assumption for resources allocated via modifier interface Now that usage flags can be specified even when using the modifier path for allocation and frontends like GBM and EGL wayland do this properly, we can drop the assumption that all resources allocated through the modifier enabled path need to be SCANOUT capable. Signed-off-by: Lucas Stach Reviewed-by: Christian Gmeiner Part-of: --- src/gallium/drivers/etnaviv/etnaviv_resource.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/gallium/drivers/etnaviv/etnaviv_resource.c b/src/gallium/drivers/etnaviv/etnaviv_resource.c index ed796907641..6ad02dda152 100644 --- a/src/gallium/drivers/etnaviv/etnaviv_resource.c +++ b/src/gallium/drivers/etnaviv/etnaviv_resource.c @@ -424,12 +424,6 @@ etna_resource_create_modifiers(struct pipe_screen *pscreen, if (modifier == DRM_FORMAT_MOD_INVALID) return NULL; - /* - * We currently assume that all buffers allocated through this interface - * should be scanout enabled. - */ - tmpl.bind |= PIPE_BIND_SCANOUT; - return etna_resource_alloc(pscreen, modifier_to_layout(modifier), modifier, &tmpl); }