Commit f5ce440e authored by José María Casanova Crespo's avatar José María Casanova Crespo Committed by Dylan Baker
Browse files

v3d: DRM_FORMAT_MOD_BROADCOM_SAND128 only available for NV12 format.

We were exposing as available DRM_FORMAT_MOD_BROADCOM_SAND128 for
any format.

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 5a503727)
parent 563c41a4
......@@ -229,7 +229,7 @@
"description": "v3d: DRM_FORMAT_MOD_BROADCOM_SAND128 only available for NV12 format.",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"master_sha": null,
"because_sha": "95c4f0f91098a0da5a8e8ec76cb38f2c95bafe1c"
},
......
......@@ -651,6 +651,10 @@ v3d_screen_query_dmabuf_modifiers(struct pipe_screen *pscreen,
int i;
int num_modifiers = ARRAY_SIZE(v3d_available_modifiers);
/* Expose DRM_FORMAT_MOD_BROADCOM_SAND128 only for PIPE_FORMAT_NV12 */
if (format != PIPE_FORMAT_NV12)
num_modifiers--;
if (!modifiers) {
*count = num_modifiers;
return;
......
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