egl/dri2: implement platform_surfaceless
authorHaixia Shi <hshi@chromium.org>
Fri, 12 Jun 2015 17:10:58 +0000 (10:10 -0700)
committerChad Versace <chad.versace@intel.com>
Tue, 16 Jun 2015 20:55:26 +0000 (13:55 -0700)
commit6b8accb36b541f77774109ea42533c02bb90bc68
treec30855c85059124e6564165010ba610d9c991b5a
parentc753866cc4ae15313430f9b6edba1b82e44b003a
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>
configure.ac
src/egl/drivers/dri2/Makefile.am
src/egl/drivers/dri2/egl_dri2.c
src/egl/drivers/dri2/egl_dri2.h
src/egl/drivers/dri2/platform_surfaceless.c [new file with mode: 0644]
src/egl/main/Makefile.am
src/egl/main/egldisplay.c
src/egl/main/egldisplay.h