Commit 563c41a4 authored by José María Casanova Crespo's avatar José María Casanova Crespo Committed by Dylan Baker
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>
(cherry picked from commit 9094ad7c)
parent e633a4a3
......@@ -238,7 +238,7 @@
"description": "v3d: YUV formats at query_dmabuf_modifiers are external_only",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"master_sha": null,
"because_sha": "95c4f0f91098a0da5a8e8ec76cb38f2c95bafe1c"
},
......
......@@ -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