From: Lepton Wu Date: Thu, 17 Oct 2019 08:53:49 +0000 (-0700) Subject: gbm: Add GBM_MAX_PLANES definition X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a65192688457d1759bcf5ed840f82a863fa1cc67;p=mesa.git gbm: Add GBM_MAX_PLANES definition This removed hard coded "4". Reviewed-by: Eric Engestrom Signed-off-by: Lepton Wu --- diff --git a/src/gbm/main/gbm.h b/src/gbm/main/gbm.h index 4c6ab377699..45dead8fabb 100644 --- a/src/gbm/main/gbm.h +++ b/src/gbm/main/gbm.h @@ -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; };