Commit 9094ad7c authored by José María Casanova Crespo's avatar José María Casanova Crespo
Browse files

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: 95c4f0f9

 "v3d: Enables DRM_FORMAT_MOD_BROADCOM_SAND128 support"
Reviewed-by: Alejandro Piñeiro's avatarAlejandro Piñeiro <apinheiro@igalia.com>
Part-of: <!10524>
parent 3d7b3789
......@@ -660,10 +660,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] =
v3d_available_modifiers[i] ==
DRM_FORMAT_MOD_BROADCOM_SAND128;
}
external_only[i] = util_format_is_yuv(format);
}
}
static bool
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment