Mesa (staging/21.0): v3d: YUV formats at query_dmabuf_modifiers are external_only
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon May 3 17:54:52 UTC 2021
Module: Mesa
Branch: staging/21.0
Commit: 4d4d791f173aeb09cc515b647cc260d5c6626f74
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=4d4d791f173aeb09cc515b647cc260d5c6626f74
Author: Jose Maria Casanova Crespo <jmcasanova at igalia.com>
Date: Thu Apr 29 18:37:25 2021 +0200
v3d: YUV formats at query_dmabuf_modifiers are external_only
This fixes Issue https://github.com/Igalia/meta-webkit/issues/185
"Issue Raspberry 4-64 + Mesa VC4 driver + Gstreamer = red Label on video"
Fixes: 95c4f0f91098 "v3d: Enables DRM_FORMAT_MOD_BROADCOM_SAND128 support"
Reviewed-by: Alejandro Piñeiro <apinheiro at igalia.com>
(cherry picked from commit 9094ad7c6a0cb45fc1f4985878603055d7ddf453)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10534>
---
src/gallium/drivers/v3d/v3d_screen.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/gallium/drivers/v3d/v3d_screen.c b/src/gallium/drivers/v3d/v3d_screen.c
index a5c94dbef30..98ae4bb82cf 100644
--- a/src/gallium/drivers/v3d/v3d_screen.c
+++ b/src/gallium/drivers/v3d/v3d_screen.c
@@ -655,8 +655,8 @@ v3d_screen_query_dmabuf_modifiers(struct pipe_screen *pscreen,
for (i = 0; i < *count; i++) {
modifiers[i] = v3d_available_modifiers[i];
if (external_only)
- external_only[i] = false;
- }
+ external_only[i] = util_format_is_yuv(format);
+ }
}
static bool
More information about the mesa-commit
mailing list