Mesa (master): gbm: Add GBM_MAX_PLANES definition
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Oct 18 13:41:16 UTC 2019
Module: Mesa
Branch: master
Commit: a65192688457d1759bcf5ed840f82a863fa1cc67
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a65192688457d1759bcf5ed840f82a863fa1cc67
Author: Lepton Wu <lepton at chromium.org>
Date: Thu Oct 17 01:53:49 2019 -0700
gbm: Add GBM_MAX_PLANES definition
This removed hard coded "4".
Reviewed-by: Eric Engestrom <eric.engestrom at intel.com>
Signed-off-by: Lepton Wu <lepton at chromium.org>
---
src/gbm/main/gbm.h | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
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;
};
More information about the mesa-commit
mailing list