summaryrefslogtreecommitdiffstats
path: root/src/egl/main/Makefile.am
diff options
context:
space:
mode:
authorHaixia Shi <hshi@chromium.org>2015-06-12 10:10:58 -0700
committerChad Versace <chad.versace@intel.com>2015-06-16 13:55:26 -0700
commit6b8accb36b541f77774109ea42533c02bb90bc68 (patch)
treec30855c85059124e6564165010ba610d9c991b5a /src/egl/main/Makefile.am
parentc753866cc4ae15313430f9b6edba1b82e44b003a (diff)
downloadexternal_mesa3d-6b8accb36b541f77774109ea42533c02bb90bc68.zip
external_mesa3d-6b8accb36b541f77774109ea42533c02bb90bc68.tar.gz
external_mesa3d-6b8accb36b541f77774109ea42533c02bb90bc68.tar.bz2
egl/dri2: implement platform_surfaceless
The surfaceless platform is for off-screen rendering only. Render node support is required. Only consider the render nodes. Do not use normal nodes as they require auth hooks. v3: change platform_null to platform_surfaceless v4: make libdrm required for surfaceless v5: remove modified include guards with defined(HAVE_SURFACELESS_PLATFORM) v6: use O_CLOEXEC for drm fd Signed-off-by: Haixia Shi <hshi@chromium.org> Signed-off-by: Zach Reizner <zachr@google.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Chad Versace <chad.versace@intel.com>
Diffstat (limited to 'src/egl/main/Makefile.am')
-rw-r--r--src/egl/main/Makefile.am4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/egl/main/Makefile.am b/src/egl/main/Makefile.am
index b661736..9030d27 100644
--- a/src/egl/main/Makefile.am
+++ b/src/egl/main/Makefile.am
@@ -68,6 +68,10 @@ if HAVE_EGL_PLATFORM_NULL
AM_CFLAGS += -DHAVE_NULL_PLATFORM
endif
+if HAVE_EGL_PLATFORM_SURFACELESS
+AM_CFLAGS += -DHAVE_SURFACELESS_PLATFORM
+endif
+
if HAVE_EGL_DRIVER_DRI2
AM_CFLAGS += -D_EGL_BUILT_IN_DRIVER_DRI2
AM_CFLAGS += -DHAVE_XCB_DRI2