On Thu, 2017-10-05 at 10:17 -0700, Eric Anholt wrote: > Adam Jackson <a...@redhat.com> writes: > > > "Driver" isn't a great word for what this layer is, it's effectively a > > build-time choice about what OS you're targeting. Despite that both of > > the extant backends totally ignore the display argument, the old code > > would only set up the backend relative to a display. > > > > That causes problems! One problem is it means eglGetProcAddress can > > generate X or Wayland protocol when it tries to connect to a default > > display so it can call into the backend, which is, you know, completely > > bonkers. Any other EGL API that doesn't reference a display, like > > EGL_EXT_device_query, would have the same issue. > > > > Fortunately this is a problem that can be solved with the delete key. > > > > Signed-off-by: Adam Jackson <a...@redhat.com> > > Reviewed-by: Eric Anholt <e...@anholt.net> > > Can we garbage collect the "args" argument to the init func, too?
Indeed, well spotted. Also _eglGetDriver can be static. Folded those in and pushed, thanks. - ajax _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev