[Mesa-dev] [PATCH mesa 0/6] egl: remove unnecessary code

Eric Engestrom eric at engestrom.ch
Tue Sep 26 22:47:15 UTC 2017


This series is based on top of Emil's "egl/dri: link directly to
libglapi.so":
https://lists.freedesktop.org/archives/mesa-dev/2017-September/170160.html

It moves code out of a struct it doesn't belong to, then replaces
a complicated callback with a simple free(), drops two empty structs,
deduplicates some alloc/init code, and removes a redundant memset.

Eric Engestrom (6):
  egl_dri2: move glFlush out of struct dri2_egl_driver
  egl: replace _egl_driver->Unload() callback with a simple free()
  egl_dri2: drop dri2_egl_driver struct
  egl_haiku: drop haiku_egl_driver struct
  egl: move alloc & init out of _eglBuiltInDriver{DRI2,Haiku}
  egl: drop memset(0) of calloc'ed memory

 src/egl/drivers/dri2/egl_dri2.c     | 159 +++++++++++++++---------------------
 src/egl/drivers/dri2/egl_dri2.h     |   7 --
 src/egl/drivers/haiku/egl_haiku.cpp |  50 +++---------
 src/egl/main/README.txt             |   9 +-
 src/egl/main/egldriver.c            |  13 +--
 src/egl/main/egldriver.h            |  17 ++--
 src/egl/main/eglfallbacks.c         |   2 -
 7 files changed, 95 insertions(+), 162 deletions(-)

-- 
Cheers,
  Eric



More information about the mesa-dev mailing list