summaryrefslogtreecommitdiffstats
path: root/src/egl/main/eglarray.c
Commit message (Collapse)AuthorAgeFilesLines
* egl: don't allow eglGetConfigs to set num_configs param to a negative valueFrank Binns2015-08-131-0/+3
| | | | | | | | | | | | | | | | | | When a buffer is provided to eglGetConfigs it's supposed to set the value of the num_config parameter to the total number of configs that have been copied into this buffer. For some reason the EGL spec doesn't consider it to be an error to pass this function a buffer while specifying its size to be less than 0. Given this, one would expect this combination to result in the num_config parameter being set to 0 but this wasn't the case. This was due to the buffer size being copied straight into num_configs without being clamped to 0. This was causing the following dEQP EGL test to fail: dEQP-EGL.functional.query_config.get_configs.get_configs_bounds Signed-off-by: Frank Binns <frank.binns@imgtec.com> Reviewed-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
* egl: add copyright noticesChia-I Wu2011-07-021-0/+28
| | | | | The list of copyright holders could be incomplete. Please update directly or notify me if your name is missing.
* egl: _eglFilterArray should not allocate.Chia-I Wu2010-12-061-19/+20
| | | | | Otherwise, when it is called from within a driver, the caller cannot free the returned data (on Windows).
* egl: Return the correct array size in _eglFlattenArray.Chia-I Wu2010-07-151-1/+4
| | | | | | | The function is used by _eglGetConfigs and _eglGetScreens. The array size should not be limited by the buffer size when the buffer is NULL. This fixes fdo bug #29052.
* egl: Rework driver loading.Chia-I Wu2010-07-061-0/+16
| | | | | | | | | | | | | | | Driver loading is now splitted into two stages. In the first stage, an _EGLModule is created for each driver: user driver, default drivers, and all files in the search directories that start with "egl_". Modules are not loaded at this stage. In the second stage, each module is loaded to initialize a display. The process stops at the first module that can initialize the display. If eglGetProcAddress is called before eglInitialize, the same code path will be taken to find the first module that supports EGL_DEFAULT_DISPLAY. Because we do not want to initialize the display, drv->Probe is used instead in this case.
* egl: Update MaxSize when a dynamic array is grown.Chia-I Wu2010-06-301-0/+1
|
* egl: Add dynamic array.Chia-I Wu2010-06-301-0/+160
Dynamic arrays will be used to store configs and screens of a display.