summaryrefslogtreecommitdiffstats
path: root/src/egl/main/eglscreen.c
Commit message (Collapse)AuthorAgeFilesLines
* egl/main: use c11/threads' mutex directlyEmil Velikov2015-03-111-4/+4
| | | | | | | Remove the inline wrappers/abstraction layer. Signed-off-by: Emil Velikov <[email protected]> Reviewed-by: Brian Paul <[email protected]>
* Revert "egl/main: use c11/threads' mutex directly"Emil Velikov2015-03-061-4/+4
| | | | | | This reverts commit 6cee785c69a5c8d2d32b6807f9c502117f5a74b0. Not meant to go in yet. Lacking review.
* egl/main: use c11/threads' mutex directlyEmil Velikov2015-03-061-4/+4
| | | | | | Remove the inline wrappers/abstraction layer. Signed-off-by: Emil Velikov <[email protected]>
* s/Tungsten Graphics/VMware/José Fonseca2014-01-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tungsten Graphics Inc. was acquired by VMware Inc. in 2008. Leaving the old copyright name is creating unnecessary confusion, hence this change. This was the sed script I used: $ cat tg2vmw.sed # Run as: # # git reset --hard HEAD && find include scons src -type f -not -name 'sed*' -print0 | xargs -0 sed -i -f tg2vmw.sed # # Rename copyrights s/Tungsten Gra\(ph\|hp\)ics,\? [iI]nc\.\?\(, Cedar Park\)\?\(, Austin\)\?\(, \(Texas\|TX\)\)\?\.\?/VMware, Inc./g /Copyright/s/Tungsten Graphics\(,\? [iI]nc\.\)\?\(, Cedar Park\)\?\(, Austin\)\?\(, \(Texas\|TX\)\)\?\.\?/VMware, Inc./ s/TUNGSTEN GRAPHICS/VMWARE/g # Rename emails s/[email protected]/[email protected]/ s/[email protected]/[email protected]/g s/jrfonseca-at-tungstengraphics-dot-com/jfonseca-at-vmware-dot-com/ s/jrfonseca\[email protected]/[email protected]/g s/keithw\[email protected]/[email protected]/g s/[email protected]/[email protected]/g s/thomas-at-tungstengraphics-dot-com/thellstom-at-vmware-dot-com/ s/[email protected]/[email protected]/ # Remove dead links s@Tungsten Graphics (http://www.tungstengraphics.com)@Tungsten Graphics@g # C string src/gallium/state_trackers/vega/api_misc.c s/"Tungsten Graphics, Inc"/"VMware, Inc"/ Reviewed-by: Brian Paul <[email protected]>
* egl: Kill macro _EGL_DECLARE_MUTEXChad Versace2013-11-261-1/+1
| | | | | | | | | | | | | | | Replace all occurences of the macro with its expansion. It seems that the macro intended to provide cross-platform static mutex intialization. However, it had the same definition in all pre-processor paths: #define _EGL_DECLARE_MUTEX(m) _EGLMutex m = _EGL_MUTEX_INITIALIZER Therefore this abstraction obscured rather than helped. Signed-off-by: Chad Versace <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
* Don't cast the return value of malloc/reallocMatt Turner2012-09-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | This patch has been generated by the following Coccinelle semantic patch: // Don't cast the return value of malloc/realloc. // // Casting the return value of malloc/realloc only stands to hide // errors. @@ type T; expression E1, E2; @@ - (T) ( _mesa_align_calloc(E1, E2) | _mesa_align_malloc(E1, E2) | calloc(E1, E2) | malloc(E1) | realloc(E1, E2) )
* egl: add copyright noticesChia-I Wu2011-07-021-0/+30
| | | | | The list of copyright holders could be incomplete. Please update directly or notify me if your name is missing.
* egl: Remove unnecessary headers.Vinson Lee2010-10-271-1/+0
|
* egl: Fix _eglModeLookup.Chia-I Wu2010-10-231-2/+15
| | | | | | | | | | Internally a mode belongs to a screen. But functions like eglGetModeAttribMESA treat a mode as a display resource: a mode can be looked up without a screen. Considering how KMS works, it is better to stick to the current implementation. To properly support looking up a mode without a screen, this commit assigns each mode (of all screens) a unique ID.
* egl: Minor changes to the _EGLScreen interface.Chia-I Wu2010-10-231-69/+32
| | | | | Make _eglInitScreen take a display and rename _eglAddScreen to _eglLinkScreen. Remove unused functions.
* egl: Move fallback routines to eglfallbacks.c.Chia-I Wu2010-10-221-44/+0
| | | | We do not want them to be all over the places.
* egl: Display may be NULL in _eglLookup*.Chia-I Wu2010-09-101-1/+1
| | | | This fixes several NULL dereferences.
* egl: Add checks for EGL_MESA_screen_surface.Chia-I Wu2010-07-311-5/+14
| | | | | This allows Mesa EGL to be compiled with eglext.h that does not define EGL_MESA_screen_surface.
* egl: Store screens in a dynamic array.Chia-I Wu2010-06-301-25/+25
|
* egl: Revisit global data locking.Chia-I Wu2010-02-171-3/+8
| | | | | Lock the global mutex in _eglPreloadDrivers and _eglAllocScreenHandle. Add comments to why certain pathes do not need locking.
* egl: Remove code blocks that are commented out.Chia-I Wu2010-01-311-16/+1
| | | | | | They are either unit tests or to demonstrate how functions are supposed to be used. The unit test is outdated and it should be better to take a look at any of the working drivers to see how a function is used.
* egl: Clean up header inclusions.Chia-I Wu2010-01-301-0/+1
| | | | Mainly to remove eglcurrent.h and egldisplay.h from eglglobals.h.
* egl: Overhaul driver API.Chia-I Wu2009-08-181-84/+25
| | | | | | | | | | | | The motivation is so that drivers do not need to look up and check for bad display, context, and etc. It also becomes unnecessary for drivers to call the link functions. This commit makes eglapi.[ch] do the lookup and check. As a result, the driver API is overhauled, and almost all sources and drivers need update. The updates are mainly find and replace with human brains. Signed-off-by: Chia-I Wu <[email protected]>
* egl: Use the link functions to manage resources.Chia-I Wu2009-07-171-5/+10
| | | | | | | | This commit uses the newly introduced link functions to manage EGL contexts and surfaces. As a result of this, the API for drivers are changed. All drivers are updated for the change. Signed-off-by: Chia-I Wu <[email protected]>
* minor code movementBrian Paul2005-12-171-0/+13
|
* Added EGL_SCREEN_POSITION_GRANULARITY_MESA query.Brian Paul2005-12-101-5/+23
| | | | Rename eglShowSurfaceMESA to eglShowScreenSurfaceMESA.
* Redo _eglInitSurface() so it can be used with all surface types.Brian Paul2005-11-271-50/+13
| | | | Redo _eglInitContext() to do error checking, attribute list parsing, etc.
* update commentsBrian Paul2005-05-171-2/+3
|
* Make EGL_NO_MODE_MESA work.Jon Smirl2005-05-171-1/+1
|
* minor tweaksBrian Paul2005-05-161-4/+8
|
* First attempt at getting egl support up on dumb framebuffer.Jon Smirl2005-05-131-25/+45
| | | | Seems to be mostly working. Not all of egl API is implemented.
* sync with latest EGL_MESA_screen_surface spec (EGLScreenMESA handles)Brian Paul2005-05-041-35/+85
|
* initial EGL codeBrian Paul2005-04-221-0/+259