EGL_MESA_screen_surface version 4

Michel Danzer mdanzer at ati.com
Thu Mar 24 07:41:36 PST 2005


On Thu, 2005-03-24 at 12:23 +0100, Matthias Hopf wrote:
> > >     EGLSurface eglCreateScreenSurfaceMESA(EGLDisplay dpy, EGLConfig config,
> > >                                           const EGLint *attrib_list)
> > > 
> > >     Create a surface that can be displayed on a screen.  <attrib_list> is
> > >     an array of token/value pairs terminated with EGL_NONE.  Valid tokens
> > >     include:
> > > 
> > >         Name              Description
> > >         ----------------  --------------------------------
> > >         EGL_WIDTH         desired surface width in pixels
> > >         EGL_HEIGHT        desired surface height in pixels
> > > 
> > >     Any other token will generate the error EGL_BAD_ATTRIBUTE.
> > 
> > What will happen if either of these attributes is omitted?
> 
> And anybody thought about whether unknown tokens should be just ignored
> instead of creating an error?

I think that would be a bad idea, because then callers would have no way
of knowing that all the specified attributes were actually respected.
Applications should really check that the implementation supports
certain functionality before using it.


-- 
Michel Danzer, Linux Software Engineering       \   Tel: +1 905-882-2600
ATI Technologies Inc., Markham, Ontario, Canada  \       Extension: 3550



More information about the dri-egl mailing list