mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 04:58:05 +02:00
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:95c4f0f910"v3d: Enables DRM_FORMAT_MOD_BROADCOM_SAND128 support" Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10524> (cherry picked from commit5a503727f2)
This commit is contained in:
parent
563c41a44a
commit
f5ce440e1b
2 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue