aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/egl
Commit message (Collapse)AuthorAgeFilesLines
* gallium: rename ZS stencil type to UINT (v2)Dave Airlie2011-10-111-1/+1
| | | | | | | | | | these are never USCALED, always UINT in reality. taken from some work by Christoph Bumiller v2: fixup formatting of table + tabs Signed-off-by: Dave Airlie <[email protected]>
* egl: restore missing \ in MakefileBrian Paul2011-10-041-1/+1
|
* configure: replace pkg-config calls with $(PKG_CONFIG) in the makefiles.Stéphane Marchesin2011-10-041-3/+3
| | | | | | | Us poor souls who cross compile mesa want to be able to specify which pkg-config to pick, or at least just change one place. Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Matt Turner <[email protected]>
* st/egl: add support for null platformChia-I Wu2011-09-204-2/+213
| | | | | The backend calls null_sw_create() to create sw_winsys. And that is pretty much it...
* st/egl: Fix GDI build.José Fonseca2011-09-081-1/+1
|
* st/egl: add premultiplied alpha support to waylandBenjamin Franzke2011-09-084-4/+24
| | | | | | | | | | Return true for NATIVE_PARAM_PREMULTIPLIED_ALPHA when all formats with alpha support premultiplied alpha. (Based on Chia-I Wu's patch) [olv: remove the use of param_premultiplied_alpha from the original patch]
* st/egl: correctly return configs under waylandBenjamin Franzke2011-09-084-23/+98
| | | | | | | | | Handle "format" events and return configs for the supported formats. (Based on Chia-I Wu's patch) [olv: update and explain why PIPE_FORMAT_B8G8R8A8_UNORM should not be enabled without HAS_ARGB32]
* Revert "st/egl: correctly return configs under wayland"Chia-I Wu2011-09-084-113/+30
| | | | This reverts commit 95b445699d7f049116ee0927387a958a9933766b.
* Revert "st/egl: add premultiplied alpha support to wayland"Chia-I Wu2011-09-084-32/+3
| | | | This reverts commit 23aa978a9d76a48f4b93e9a8911ec50c0e5d94ab.
* st/egl: add premultiplied alpha support to waylandChia-I Wu2011-09-084-3/+32
| | | | | | Return true for NATIVE_PARAM_PREMULTIPLIED_ALPHA when all formats with alpha support premultiplied alpha. Currently, it means when argb32 and argb32_pre are both supported.
* st/egl: correctly return configs under waylandChia-I Wu2011-09-084-30/+113
| | | | | | When wl_drm is avaiable and enabled, handle "format" events and return configs for the supported formats. Otherwise, assume all formats of wl_shm are supported.
* st/egl: overload NATIVE_PARAM_PREMULTIPLIED_ALPHAChia-I Wu2011-09-083-7/+25
| | | | | | | | | | | | | EGL does not export this capability of a display server. But wayland makes use of EGL_VG_ALPHA_FORMAT to achieve it. So, when the native display returns true for the parameter, st/egl will set EGL_VG_ALPHA_FORMAT_PRE_BIT for all EGLConfig's with non-zero EGL_ALPHA_SIZE. EGL_VG_ALPHA_FORMAT attribute of a surface will affect how the surface is presented. Because st/vega does not support EGL_VG_ALPHA_FORMAT_PRE_BIT, EGL_OPENVG_BIT will be cleared.
* st/egl: add NATIVE_PARAM_PREMULTIPLIED_ALPHAChia-I Wu2011-09-081-1/+10
| | | | Return TRUE if the display supports premultiplied alpha.
* st/egl: add native_present_controlChia-I Wu2011-09-0811-49/+57
| | | | | | 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: track changes to drop wl_visual in waylandChia-I Wu2011-09-084-20/+44
| | | | | | Follow a subset of changes in 7b1d94e5d1f53ac5f59000176aea1d02fc9a1181. There are known issues, but it works to a certain degree. Non-working demos also fail gracefully. More importantly, it fixes the build.
* st/egl: track server side wayland changesChia-I Wu2011-09-082-2/+2
| | | | Follow changes in c661ecce1089000c3fca9a543713f8264221be50.
* st/egl: use new wl_callback mechanism in waylandChia-I Wu2011-09-082-49/+30
| | | | Follow the changes in 6602bda23ba6c4351eb7f04d34803103a68ac2db.
* android: make DRM optionalChia-I Wu2011-08-272-2/+22
| | | | For BOARD_GPU_DRIVERS=swrast build, DRM is not needed.
* st/egl: add a missing includeChia-I Wu2011-08-211-0/+1
| | | | Reported by cwhuang.
* st/egl: improve error loggingChia-I Wu2011-08-211-2/+3
| | | | This helps diagnose problems in EGL initialization.
* st/egl: add buffer preserving support to AndroidChia-I Wu2011-08-211-4/+67
| | | | Use a staging color buffer when buffer preserving is enabled.
* st/egl: improve buffer cache for AndroidChia-I Wu2011-08-211-31/+73
| | | | | There may be more than two back buffers. Clean up and prepare the buffer cache for that.
* st/egl: swapping without a buffer is not an errorChia-I Wu2011-08-211-1/+1
| | | | This fixes Kwaak3.
* st/egl: use HAL formats for Android backendChia-I Wu2011-08-211-26/+15
| | | | Native buffers use HAL formats, not UI formats.
* android: build st/egl with android backendChia-I Wu2011-08-211-0/+54
| | | | This builds the static library libmesa_st_egl from st/egl.
* st/egl: add android backendChia-I Wu2011-08-215-0/+781
| | | | | | | | | | Both HW and SW rendering are supported for Android. For SW rendering, we use the generic gralloc lock/unlock for mapping and unmapping color buffers (in winsys/android). For HW rendering, we need to know the real type of color buffers. This backend works with drm_gralloc, where a color buffer is backed by a GEM object.
* egl/gbm: Fix EGL_DEFAULT_DISPLAYBenjamin Franzke2011-08-042-5/+22
|
* st/egl: create pbuffers with PIPE_BIND_SAMPLER_VIEWChia-I Wu2011-07-291-3/+4
| | | | So that eglBindTexImage works.
* st/egl: fix linking errorsChia-I Wu2011-07-101-0/+18
| | | | Add symbols referenced by src/glx/dri2.c.
* st/egl: fix a typoChia-I Wu2011-07-011-2/+2
| | | | Wrong goto labels.
* st/egl: remove unused headerChia-I Wu2011-07-011-3/+0
|
* scons: Expose pkg-config in a simpler manner.José Fonseca2011-06-301-0/+1
|
* st-api: Rework how drawables are invalidated v3.Thomas Hellstrom2011-06-293-16/+6
| | | | | | | | | | | | | | | The api and the state tracker manager code as well as the state tracker code assumed that only a single context could be bound to a drawable. That is not a valid assumption, since multiple contexts can bind to the same drawable. Fix this by making it the state tracker's responsibility to update all contexts binding to a drawable Note that the state trackers themselves don't use atomic stamps on frame-buffers. Multiple context rendering to the same drawable should be protected by the application. Signed-off-by: Thomas Hellstrom <[email protected]>
* st/egl: update fbdev backendChia-I Wu2011-06-281-144/+190
| | | | | | | | | | | | | | | | | Considering fbdev as an in-kernel window system, - opening a device opens a connection - there is only one window: the framebuffer - fb_var_screeninfo decides window position, size, and even color format - there is no pixmap Now EGL is built on top of this window system. So we should have - the fd as the handle of the native display - reject all but one native window: NULL - no pixmap support modeset support is still around, but it should be removed soon.
* egl: Fix Terminate with shared gbm screensBenjamin Franzke2011-06-271-0/+2
| | | | NOTE: This is a candidate for the 7.11 branch.
* st/egl: fix a compile errorChia-I Wu2011-06-261-2/+1
| | | | It is triggered when --with-driver=xlib is specified.
* st/egl: add get_pixmap_format callback to native_displayChia-I Wu2011-06-255-47/+65
| | | | | And use it for EGL_MATCH_NATIVE_PIXMAP. Remove is_pixmap_supported meanwhile.
* egl: make implementing eglChooseConfig easierChia-I Wu2011-06-251-36/+6
| | | | | Add a new helper function, _eglFilterConfigArray, for drivers and hide _eglSortConfigs.
* st/egl: add a fast path for ximage eglCopyBuffersChia-I Wu2011-06-251-1/+40
|
* st/egl: clean up eglCopyBuffersChia-I Wu2011-06-257-42/+63
| | | | | Add copy_to_pixmap method to native_display and use it for eglCopyBuffers.
* st/egl: reorganize backend initializationChia-I Wu2011-06-2514-197/+172
| | | | | | | 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().
* st/egl: make native_buffer interface typedChia-I Wu2011-06-246-89/+139
| | | | | | Use a typed struct to describe the native buffer and let the backends map the native buffer to winsys_handle for resource_from_handle/resource_to_handle.
* st/egl: drop guess_gl_api from egl_g3d_loaderChia-I Wu2011-06-241-1/+0
| | | | It is not used and confusing.
* st/egl: use a helper to get st_api from the loaderChia-I Wu2011-06-242-13/+9
|
* st/egl: Fix scons buildBenjamin Franzke2011-06-231-0/+4
|
* st/egl: Hookup gbm for drm backendBenjamin Franzke2011-06-236-43/+98
|
* st/egl/wayland: Take resize parameters only if size changesBenjamin Franzke2011-06-231-5/+3
| | | | | This matches what we do in egl_dri2, and clients should behave like this anyway.
* st/eglwayland: Add support for EGL_DEFAULT_DISPLAYBenjamin Franzke2011-06-124-0/+15
|
* st/egl: set EGL_ALPHA_MASK_SIZEChia-I Wu2011-06-091-0/+4
|
* targets/egl: Support driver name lookup using pci listsBenjamin Franzke2011-06-072-70/+3
| | | | | | Make use of this in drm and wayland st/egl backends. Reviewed-by: Alex Deucher <[email protected]>