diff options
author | Haixia Shi <hshi@chromium.org> | 2015-06-12 10:10:58 -0700 |
---|---|---|
committer | Chad Versace <chad.versace@intel.com> | 2015-06-16 13:55:26 -0700 |
commit | 6b8accb36b541f77774109ea42533c02bb90bc68 (patch) | |
tree | c30855c85059124e6564165010ba610d9c991b5a /src/egl/main/egldisplay.h | |
parent | c753866cc4ae15313430f9b6edba1b82e44b003a (diff) | |
download | external_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/egldisplay.h')
-rw-r--r-- | src/egl/main/egldisplay.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/egl/main/egldisplay.h b/src/egl/main/egldisplay.h index 84cfbe1..0b50a36 100644 --- a/src/egl/main/egldisplay.h +++ b/src/egl/main/egldisplay.h @@ -51,6 +51,7 @@ enum _egl_platform_type { _EGL_PLATFORM_NULL, _EGL_PLATFORM_ANDROID, _EGL_PLATFORM_HAIKU, + _EGL_PLATFORM_SURFACELESS, _EGL_NUM_PLATFORMS, _EGL_INVALID_PLATFORM = -1 |