summaryrefslogtreecommitdiffstats
path: root/docs/specs/EGL_MESA_platform_surfaceless.txt
blob: 871ee509c55e13c559877a59b945830f2d6db9fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
Name

    MESA_platform_surfaceless

Name Strings

    EGL_MESA_platform_surfaceless

Contributors

    Chad Versace <chadversary@google.com>
    Haixia Shi <hshi@google.com>
    Stéphane Marchesin <marcheu@google.com>
    Zach Reizner <zachr@chromium.org>
    Gurchetan Singh <gurchetansingh@google.com>

Contacts

    Chad Versace <chadversary@google.com>

Status

    DRAFT

Version

    Version 2, 2016-10-13

Number

    EGL Extension #TODO

Extension Type

    EGL client extension

Dependencies

    Requires EGL 1.5 or later; or EGL 1.4 with EGL_EXT_platform_base.

    This extension is written against the EGL 1.5 Specification (draft
    20140122).

    This extension interacts with EGL_EXT_platform_base as follows. If the
    implementation supports EGL_EXT_platform_base, then text regarding
    eglGetPlatformDisplay applies also to eglGetPlatformDisplayEXT;
    eglCreatePlatformWindowSurface to eglCreatePlatformWindowSurfaceEXT; and
    eglCreatePlatformPixmapSurface to eglCreatePlatformPixmapSurfaceEXT.

Overview

    This extension defines a new EGL platform, the "surfaceless" platform. This
    platfom's defining property is that it has no native surfaces, and hence
    neither eglCreatePlatformWindowSurface nor eglCreatePlatformPixmapSurface
    can be used. The platform is independent of any native window system.

    The platform's intended use case is for enabling OpenGL and OpenGL ES
    applications on systems where no window system exists. However, the
    platform's permitted usage is not restricted to this case.  Since the
    platform is independent of any native window system, it may also be used on
    systems where a window system is present.

New Types

    None

New Procedures and Functions

    None

New Tokens

    Accepted as the <platform> argument of eglGetPlatformDisplay:

        EGL_PLATFORM_SURFACELESS_MESA           0x31DD

Additions to the EGL Specification

    None.

New Behavior

    To determine if the EGL implementation supports this extension, clients
    should query the EGL_EXTENSIONS string of EGL_NO_DISPLAY.

    To obtain an EGLDisplay on the surfaceless platform, call
    eglGetPlatformDisplay with <platform> set to EGL_PLATFORM_SURFACELESS_MESA.
    The <native_display> parameter must be EGL_DEFAULT_DISPLAY.

    eglCreatePlatformWindowSurface fails when called with a <display> that
    belongs to the surfaceless platform. It returns EGL_NO_SURFACE and
    generates EGL_BAD_NATIVE_WINDOW. The justification for this unconditional
    failure is that the surfaceless platform has no native windows, and
    therefore the <native_window> parameter is always invalid.

    Likewise, eglCreatePlatformPixmapSurface also fails when called with a
    <display> that belongs to the surfaceless platform.  It returns
    EGL_NO_SURFACE and generates EGL_BAD_NATIVE_PIXMAP.

    The surfaceless platform imposes no platform-specific restrictions on the
    creation of pbuffers, as eglCreatePbufferSurface has no native surface
    parameter.  Specifically, if the EGLDisplay advertises an EGLConfig whose
    EGL_SURFACE_TYPE attribute contains EGL_PBUFFER_BIT, then the EGLDisplay
    permits the creation of pbuffers with that config.

Issues

    None.

Revision History

    Version 2, 2016-10-13 (Chad Versace)
        - Assign enum values
        - Define interfactions with EGL 1.4 and EGL_EXT_platform_base.
        - Add Gurchetan as contributor, as he implemented the pbuffer support.

    Version 1, 2016-09-23 (Chad Versace)
        - Initial version
        - Posted for review at
          https://lists.freedesktop.org/archives/mesa-dev/2016-September/129549.html