mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 11:20:20 +01:00
gbm: Add GBM_MAX_PLANES definition
This removed hard coded "4". Reviewed-by: Eric Engestrom <eric.engestrom@intel.com> Signed-off-by: Lepton Wu <lepton@chromium.org>
This commit is contained in:
parent
f8da0f6198
commit
a651926884
1 changed files with 5 additions and 3 deletions
|
|
@ -285,14 +285,16 @@ struct gbm_import_fd_data {
|
|||
uint32_t format;
|
||||
};
|
||||
|
||||
#define GBM_MAX_PLANES 4
|
||||
|
||||
struct gbm_import_fd_modifier_data {
|
||||
uint32_t width;
|
||||
uint32_t height;
|
||||
uint32_t format;
|
||||
uint32_t num_fds;
|
||||
int fds[4];
|
||||
int strides[4];
|
||||
int offsets[4];
|
||||
int fds[GBM_MAX_PLANES];
|
||||
int strides[GBM_MAX_PLANES];
|
||||
int offsets[GBM_MAX_PLANES];
|
||||
uint64_t modifier;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue