Home | History | Annotate | only in /xsrc/external/mit/MesaLib.old/dist/src/egl/main
Up to higher level directory
NameDateSize
50_mesa.json11-Jul-2021105
egl.def08-Mar-2019687
eglapi.c11-Jul-202179.8K
eglapi.h11-Jul-202111K
eglarray.c11-Jul-20214.5K
eglarray.h11-Jul-20212.4K
eglconfig.c11-Jul-202126.4K
eglconfig.h11-Jul-20217.5K
eglcontext.c11-Jul-202128.2K
eglcontext.h11-Jul-20214.2K
eglcurrent.c11-Jul-20218.2K
eglcurrent.h11-Jul-20213.2K
egldefines.h11-Jul-20211.8K
egldevice.c11-Jul-20217.1K
egldevice.h11-Jul-20212.4K
egldispatchstubs.c11-Jul-20213.1K
egldispatchstubs.h11-Jul-20211,020
egldisplay.c11-Jul-202113.3K
egldisplay.h11-Jul-20217.8K
egldriver.c11-Jul-20213.3K
egldriver.h11-Jul-20213.2K
eglentrypoint.h11-Jul-20213.1K
eglfallbacks.c11-Jul-20213.5K
eglglobals.c11-Jul-20215.4K
eglglobals.h11-Jul-20212.8K
eglglvnd.c11-Jul-20212.3K
eglimage.c11-Jul-202110K
eglimage.h11-Jul-20214.6K
egllog.c11-Jul-20214.4K
egllog.h11-Jul-20211.8K
eglsurface.c11-Jul-202124.3K
eglsurface.h11-Jul-20218.1K
eglsync.c11-Jul-20214.6K
eglsync.h11-Jul-20213.3K
egltypedefs.h11-Jul-20212.2K
README.txt11-Jul-20211.9K

README.txt

      1 
      2 
      3 Notes about the EGL library:
      4 
      5 
      6 The EGL code here basically consists of two things:
      7 
      8 1. An EGL API dispatcher.  This directly routes all the eglFooBar() API
      9    calls into driver-specific functions.
     10 
     11 2. Fallbacks for EGL API functions.  A driver _could_ implement all the
     12    EGL API calls from scratch.  But in many cases, the fallbacks provided
     13    in libEGL (such as eglChooseConfig()) will do the job.
     14 
     15 
     16 
     17 Bootstrapping:
     18 
     19 When the apps calls eglInitialize() a device driver is selected and loaded
     20 (look for _eglAddDrivers() and _eglLoadModule() in egldriver.c).
     21 
     22 The built-in driver's entry point function is then called and given
     23 a freshly allocated and initialised _EGLDriver, with default fallback
     24 entrypoints set.
     25 
     26 As part of initialization, the dispatch table in _EGLDriver->API must be
     27 populated with all the EGL entrypoints. Some functions like
     28 driver->API.Initialize and driver->API.Terminate _must_ be implemented
     29 with driver-specific code (no default/fallback function is possible).
     30 
     31 
     32 Shortly after, the driver->API.Initialize() function is executed.  Any additional
     33 driver initialization that wasn't done in the driver entry point should be
     34 done at this point.  Typically, this will involve setting up visual configs, etc.
     35 
     36 
     37 
     38 Special Functions:
     39 
     40 Certain EGL functions _must_ be implemented by the driver.  This includes:
     41 
     42 eglCreateContext
     43 eglCreateWindowSurface
     44 eglCreatePixmapSurface
     45 eglCreatePBufferSurface
     46 eglMakeCurrent
     47 eglSwapBuffers
     48 
     49 Most of the EGLConfig-related functions can be implemented with the
     50 defaults/fallbacks.  Same thing for the eglGet/Query functions.
     51 
     52 
     53 
     54 
     55 Teardown:
     56 
     57 When eglTerminate() is called, the driver->API.Terminate() function is
     58 called.  The driver should clean up after itself.  eglTerminate() will
     59 then close/unload the driver (shared library).
     60 
     61 
     62 
     63 
     64 Subclassing:
     65 
     66 The internal libEGL data structures such as _EGLDisplay, _EGLContext,
     67 _EGLSurface, etc should be considered base classes from which drivers
     68 will derive subclasses.
     69 
     70