[Mesa-dev] [PATCH 1/2] egl/dri2: implement platform_null (v2).

Jordan Justen jordan.l.justen at intel.com
Sat Apr 4 00:46:15 PDT 2015


On 2015-04-03 19:18:35, Stéphane Marchesin wrote:
> On Fri, Apr 3, 2015 at 1:35 PM, Chad Versace <chad.versace at intel.com> wrote:
> > On Tue 17 Feb 2015, Haixia Shi wrote:
> >> The NULL platform is for off-screen rendering only. Render node support is
> >> required.
> >
> > Naming it the "NULL" platform seems very odd. It actually *does* stuff.
> > Usually things named "null" do nothing.
> >
> > Also, this platform is not unique in its NULL requirement. That is,
> > there do exist other EGL platforms in which eglGetDisplay accepts only
> > NULL, such as Android. I strongly suspect this is also the case for
> > other lesser known operating systems.
> >
> > But there isn't an obviously better name. Me and Jordan chatted about
> > this for a long time and came to no conclusion.

Except, I rather liked when you gave up on trying to come up with
rational names, and suggested wasabi. :)

> > Usually, an EGL platform is named after (1) the operating system, (2)
> > the underlying window system, or (3) the real type of
> > EGLNativeDisplayType. None of those precedents help here. However, this
> > platform does have a single, unique property that distinguishes it from
> > all other EGL platforms: ___this is the only platform that has no
> > support for EGLSurface___. Perhaps we should name the platform after
> > that property?
> >
> > Perhaps EGL_MESA_platform_surfaceless and platform_surfaceless.c?
> 
> That's a very good name. As it happens, it also matches Chrome's naming.

Chad made the point that this probably isn't going to come up too
often in code, so maybe a short name isn't required.

But, at least for waffle utils it might be nice to have something
shorter for the command line.

The syllable onsets of surfaceless give sfl. Thoughts? Backronyms? :)

-Jordan


More information about the mesa-dev mailing list