OSDN Git Service

minigbm: define GBM_BO_IMPORT_FD_MODIFIER
authorMaksim Sisov <msisov@igalia.com>
Wed, 10 Oct 2018 10:41:51 +0000 (13:41 +0300)
committerchrome-bot <chrome-bot@chromium.org>
Wed, 5 Dec 2018 01:40:13 +0000 (17:40 -0800)
commitbc667c3ef6f3cc739406bc008341bd4505c1b51f
tree89b62c89eb40010ec3f65a9faa5d66f585434947
parentff66c801c90ddeac97e6121584daff595b85d795
minigbm: define GBM_BO_IMPORT_FD_MODIFIER

This CL aligns the minigbm more with the upstream GBM
by defining GBM_BO_IMPORT_FD_MODIFIER and using
gbm_import_fd_modifier_data instead.

That is, the main difference between the old
gbm_import_fd_planar_data one and the new one is
the format_modifiers variable. In the upstream
GBM, it's a single variable. In the minigbm, it is
an array.

As we know there are no cases when modifiers would
be different for each plane. Thus, it's safe to eliminate
that and adapt more to the upstream.

Change-Id: Iaae062ef1fe9fc9ab0ead09c5f4bfa91d2db67c3
Reviewed-on: https://chromium-review.googlesource.com/1360771
Commit-Ready: Maksim Sisov <msisov@igalia.com>
Tested-by: Maksim Sisov <msisov@igalia.com>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
gbm.c
gbm.h