[Mesa-dev] [PATCH 2/2] etnaviv: advertise YUV formats as external only

Philipp Zabel p.zabel at pengutronix.de
Wed Apr 4 08:25:15 UTC 2018


On Thu, 2018-03-29 at 16:15 +0200, Lucas Stach wrote:
> We only support importing YUV as OES external resources.
> This will change in the future, but for now this fixes the
> advertised capabilities in eglQueryDmaBufModifiersEXT.
> 
> Signed-off-by: Lucas Stach <l.stach at pengutronix.de>
> ---
>  src/gallium/drivers/etnaviv/etnaviv_screen.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/gallium/drivers/etnaviv/etnaviv_screen.c b/src/gallium/drivers/etnaviv/etnaviv_screen.c
> index e38e48c89436..3c2addb4aa5a 100644
> --- a/src/gallium/drivers/etnaviv/etnaviv_screen.c
> +++ b/src/gallium/drivers/etnaviv/etnaviv_screen.c
> @@ -632,7 +632,7 @@ etna_screen_query_dmabuf_modifiers(struct pipe_screen *pscreen,
>        if (modifiers)
>           modifiers[num_modifiers] = supported_modifiers[i];
>        if (external_only)
> -         external_only[num_modifiers] = 0;
> +         external_only[num_modifiers] = util_format_is_yuv(format) ? 1 : 0;
>        num_modifiers++;
>     }

Reviewed-by: Philipp Zabel <p.zabel at pengutronix.de>

regards
Philipp


More information about the mesa-dev mailing list