From 84f3afc2e122cb418573f1e9c61716520f9859c1 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Wed, 18 Oct 2017 20:23:00 +0200 Subject: Revert "egl: move alloc & init out of _eglBuiltInDriver{DRI2,Haiku}" This reverts commit 8cb84c8477a57ed05d703669fee1770f31b76ae6. This fixes crashing shader-db/run. --- src/egl/main/README.txt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/egl/main/README.txt') diff --git a/src/egl/main/README.txt b/src/egl/main/README.txt index 9b5fd410618..1af99599729 100644 --- a/src/egl/main/README.txt +++ b/src/egl/main/README.txt @@ -19,12 +19,13 @@ Bootstrapping: When the apps calls eglInitialize() a device driver is selected and loaded (look for _eglAddDrivers() and _eglLoadModule() in egldriver.c). -The built-in driver's entry point function is then called and given -a freshly allocated and initialised _EGLDriver, with default fallback -entrypoints set. +The built-in driver's entry point function is then called. This driver function +allocates, initializes and returns a new _EGLDriver object (usually a +subclass of that type). As part of initialization, the dispatch table in _EGLDriver->API must be -populated with all the EGL entrypoints. Some functions like +populated with all the EGL entrypoints. Typically, _eglInitDriverFallbacks() +can be used to plug in default/fallback functions. Some functions like driver->API.Initialize and driver->API.Terminate _must_ be implemented with driver-specific code (no default/fallback function is possible). -- cgit v1.2.3