diff options
author | Lucas Stach <[email protected]> | 2018-03-29 16:15:15 +0200 |
---|---|---|
committer | Christian Gmeiner <[email protected]> | 2018-04-08 22:11:46 +0200 |
commit | 208891650bd3933b238038eb042ad7dbc666c3db (patch) | |
tree | 634052fa52d9a28b3597b26f56b101ea7a069564 /src/gallium/drivers/etnaviv/etnaviv_screen.c | |
parent | dfe4a08ccddf5b9b6adf1e10510bb4534f36c459 (diff) |
etnaviv: advertise YUV formats as external only
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 <[email protected]>
Reviewed-by: Philipp Zabel <[email protected]>
Reviewed-by: Christian Gmeiner <[email protected]>
Diffstat (limited to 'src/gallium/drivers/etnaviv/etnaviv_screen.c')
-rw-r--r-- | src/gallium/drivers/etnaviv/etnaviv_screen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/etnaviv/etnaviv_screen.c b/src/gallium/drivers/etnaviv/etnaviv_screen.c index 2ae4e86c631..fff0a250a28 100644 --- a/src/gallium/drivers/etnaviv/etnaviv_screen.c +++ b/src/gallium/drivers/etnaviv/etnaviv_screen.c @@ -621,7 +621,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++; } |