minigbm: dri: Support 2+ planes query for modifiers.

If the driver does not implement the new function, or
if modifier is INVALID this should return exactly the
same as before.

For LINEAR, DRI should return exactly the same as
minigbm for all the YUV formats.

BUG=b:149819940
TEST=Use with followup patch and login on a Zork device + play a YT
video.

Change-Id: I6ea3b5827876844e510794b85212be51e5dfd68f
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/minigbm/+/2093211
Tested-by: Bas Nieuwenhuizen <basni@chromium.org>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
Commit-Queue: Bas Nieuwenhuizen <basni@chromium.org>
diff --git a/gbm.c b/gbm.c
index 4b62bbf..705acff 100644
--- a/gbm.c
+++ b/gbm.c
@@ -216,7 +216,8 @@
 		drv_data.width = fd_modifier_data->width;
 		drv_data.height = fd_modifier_data->height;
 		drv_data.format = fd_modifier_data->format;
-		num_planes = drv_num_planes_from_format(drv_data.format);
+		num_planes = drv_num_planes_from_modifier(gbm->drv, drv_data.format,
+							  fd_modifier_data->modifier);
 		assert(num_planes);
 
 		num_fds = fd_modifier_data->num_fds;