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:
Enrico Weigelt, metux IT consult 2026-10-23 17:53:21 +02:00
commit 440bfbb976

View file

@ -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"