summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/egl/gdi
Commit message (Collapse)AuthorAgeFilesLines
* st/egl: cleanup sw winsys header inclusionsEmil Velikov2014-08-281-1/+2
| | | | | | | - Drop duplicate include compiler directives. - Leave the sw/ prefix for all the software winsys headers. Signed-off-by: Emil Velikov <[email protected]>
* mesa: remove outdated version lines in commentsRico Schüller2013-06-051-1/+0
| | | | Signed-off-by: Brian Paul <[email protected]>
* Remove useless checks for NULL before freeingMatt Turner2012-09-051-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Same as earlier commit, except for "FREE" This patch has been generated by the following Coccinelle semantic patch: // Remove useless checks for NULL before freeing // // free (NULL) is a no-op, so there is no need to avoid it @@ expression E; @@ + FREE (E); + E = NULL; - if (unlikely (E != NULL)) { - FREE(E); ( - E = NULL; | - E = 0; ) ... - } @@ expression E; type T; @@ + FREE ((T) E); + E = NULL; - if (unlikely (E != NULL)) { - FREE((T) E); ( - E = NULL; | - E = 0; ) ... - } @@ expression E; @@ + FREE (E); - if (unlikely (E != NULL)) { - FREE (E); - } @@ expression E; type T; @@ + FREE ((T) E); - if (unlikely (E != NULL)) { - FREE ((T) E); - } Reviewed-by: Brian Paul <[email protected]>
* st/egl: Fix GDI build.José Fonseca2011-09-081-1/+1
|
* st/egl: add native_present_controlChia-I Wu2011-09-081-5/+3
| | | | | | Replace the parameters of native_surface::present by a struct, native_present_control. Using a struct allows us to add more control options without having to update each backend every time.
* st/egl: reorganize backend initializationChia-I Wu2011-06-251-30/+28
| | | | | | | Remove set_event_handler() and pass the event handler with native_get_XXX_platform(). Add init_screen() so that the pipe screen is created later. This way we don't need to pass user_data to create_display().
* gallium: remove the geom_flags param from is_format_supportedMarek Olšák2011-03-111-1/+1
|
* st/egl: Move the copy context to the native display structureThomas Hellstrom2011-03-011-1/+1
| | | | | | | | This makes it usable also for native helpers. Also add inline functions to access the context and to uninit the native display structure. Signed-off-by: Thomas Hellstrom <[email protected]>
* egl: Improve driver selection.Chia-I Wu2011-01-131-3/+11
| | | | | | | | | | | | | | | | | | | | | | | The idea is to be able to match a driver using the following order try egl_gallium with hw renderer try egl_dri2 try egl_gallium with sw renderer try egl_glx given the module list egl_gallium egl_dri2 egl_glx For that, UseFallback initialization option is added. The module list is matched twice: with the option unset and with the option set. In the first pass, egl_gallium skips its sw renderer and egl_glx rejects to initialize since UseFallback is not set. In the second pass, egl_gallium skips its hw renderer and egl_dri2 rejects to initialize since UseFallback is set. The process stops at the first driver that initializes the display.
* st/egl: Remove native_config::slow_config.Chia-I Wu2010-12-221-1/+0
| | | | | In direct rendering scenario, it is not needed until an EGLDisplay can support both HW and SW pipe screens.
* egl/gdi: fix typo: xsurf->gsurfBrian Paul2010-11-031-1/+1
|
* st/egl: Remove flush_frontbuffer and swap_buffers.Chia-I Wu2010-11-031-2/+0
| | | | | They are deprecated by native_surface::present and there is no user of them.
* st/egl: Add native_surface::present callback.Chia-I Wu2010-11-031-0/+29
| | | | | | | The callback presents the given attachment to the native engine. It allows the swap behavior and interval to be controlled. It will replace native_surface::flush_frontbuffer and native_surface::swap_buffers shortly.
* st/egl: Add egl-gdi target.Chia-I Wu2010-06-301-1/+1
| | | | | | | | | The target supports OpenVG on Windows with software rasterizer. The egl_g3d_loader defined by the target supports arbitrary client APIs and window systems. It is the SConscript that limits the support to OpenVG and GDI. This commit also fixes a typo in gdi backend.
* egl: Remove st/egl probe code.Chia-I Wu2010-06-291-2/+0
| | | | It is no longer needed.
* st/egl: Move module loading code to targets.Chia-I Wu2010-06-291-19/+20
| | | | | | | | | | Several changes are made. libegl.a no longer defines _eglMain. It defines functions to create and destroy a _EGLDriver instead. The creation function is called by the targets. It takes an egl_g3d_loader as its argument. The loader is defined by the targets and is in charge of creating st_api and pipe_screen. This allows us to move the module loading code to targets. Lastly, the modules are now loaded as the respective contexts are created.
* st/egl: One driver per hardware.Chia-I Wu2010-06-291-1/+1
| | | | | | Merge multiple egl_<platform>_<pipe>.so into a single egl_gallium_<pipe>.so. The environment variable EGL_PLATFORM is now used to modify the return value of _eglGetNativePlatform.
* st/egl: Introduce native_platform.Chia-I Wu2010-06-291-19/+14
| | | | | | Move native_get_name, native_create_probe, native_get_probe_result, and native_create_display into struct native_platform, and add native_get_platform to get a handle to the struct.
* egl: Introduce platform displays internally.Chia-I Wu2010-06-231-3/+2
| | | | | | | | | | | This commit introduces type-safe platform displays internally. A platform display consists of a generic pointer and an enum that specifies the platform. An EGLDisplay is created from a platform display. Native displays become platform displays whose platform is determined by _eglGetNativePlatform(). Platform windows and pixmaps may also be introduced if needed.
* st/egl: Move sw screen creation to native helper.Chia-I Wu2010-06-041-31/+10
| | | | The code is shared by ximage and gdi backend.
* st/egl: Use stamps only to avoid unnecessary geometry update.Chia-I Wu2010-05-311-10/+8
| | | | | | resource_surface_add_resources should still be called even when the stamps match. For example, a caller may ask for two different sets of attachments.
* st/egl: Update GDI backend to use resource_surface.Chia-I Wu2010-05-311-146/+51
|
* st/egl: Add GDI backend.Chia-I Wu2010-05-311-0/+524
The backend uses Windows GDI driver to provide a software EGL implementation on Windows.