Commit 5a503727 authored by José María Casanova Crespo's avatar José María Casanova Crespo
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>
parent 9094ad7c
Pipeline #310985 waiting for manual action with stages
...@@ -651,6 +651,10 @@ v3d_screen_query_dmabuf_modifiers(struct pipe_screen *pscreen, ...@@ -651,6 +651,10 @@ v3d_screen_query_dmabuf_modifiers(struct pipe_screen *pscreen,
int i; int i;
int num_modifiers = ARRAY_SIZE(v3d_available_modifiers); 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) { if (!modifiers) {
*count = num_modifiers; *count = num_modifiers;
return; 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