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 <l.stach@pengutronix.de>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17364>
This commit is contained in:
Lucas Stach
2022-07-05 18:15:27 +02:00
committed by Marge Bot
parent 99352b87dc
commit 6ab2e1055b

View File

@@ -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);
}