mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 16:48:07 +02:00
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:
parent
99352b87dc
commit
6ab2e1055b
1 changed files with 0 additions and 6 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue