[Mesa-dev] [PATCH 3/6] egl: EGL_INTEL_no_surface extension

Jakob Bornecrantz wallbraker at gmail.com
Fri Jun 4 08:16:12 PDT 2010


2010/6/4 Kristian Høgsberg <krh at bitplanet.net>:
> 2010/6/4 Jakob Bornecrantz <wallbraker at gmail.com>:
>> 2010/6/4 Kristian Høgsberg <krh at bitplanet.net>:
>>> This extension allows an application to make a context current by
>>> passing EGL_NO_SURFACE for the write and read surface in the call to
>>> eglMakeCurrent.  The motivation is that applications that only want to
>>> render to client API targets (such as OpenGL framebuffer objects)
>>> should not need to create a throw-away EGL surface just to get a
>>> current context.
>>
>> Looks good.
>>
>> Any reason this is a intel extension instead of a Mesa one?
>
> I think it was something like "uh, we'll need some tokens for this
> extension, if I make it an Intel extension I think we have a token
> range we can use" or something.  Will rename for tokens.

Ah good point, I'll ask Khronos for a Mesa range in EGL.

>
>> Can you add a small spec file explaning it? Not that it needs much
>> explaining. Tho it would be nice to know if glDrawBuffers(0, NULL) and
>> then drawing something should raise a error? Or if rendering will be
>> skipped?
>
> Argh, I wrote a spec but forgot to git add it.  Attached here.

Ops ;-)

Hmm doesn't mention what would happen if a app would try to use the
default framebuffer (which doesn't exist).

>
>> Feel like taking a stab at adding this to st/mesa, st/dri & st/egl?
>
> I wouldn't know where to start :)

Well it was worth a shot :)

Cheers Jakob.


More information about the mesa-dev mailing list