mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-26 01:59:57 +00:00
glamor: add GBM_MAX_PLANES fallback for NetBSD and other platforms
GBM_MAX_PLANES is not defined on all platforms (e.g., NetBSD). Add a fallback definition (4 planes is the standard GBM value) to allow the build to succeed on platforms where it's not provided by the system GBM headers. Signed-off-by: Enterprise <enterprise@x11libre.org>
This commit is contained in:
parent
3715cb527e
commit
440bfbb976
1 changed files with 4 additions and 0 deletions
|
|
@ -42,6 +42,10 @@
|
|||
#include <gbm.h>
|
||||
#include <drm_fourcc.h>
|
||||
|
||||
|
||||
#ifndef GBM_MAX_PLANES
|
||||
#define GBM_MAX_PLANES 4
|
||||
#endif
|
||||
#include "glamor_egl.h"
|
||||
|
||||
#include "glamor.h"
|
||||
|
|
|
|||
Loading…
Reference in a new issue