| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
| |
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]>
|
| |
|
|
|
|
|
|
|
| |
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]>
|
|
|
|
|
| |
The backend calls null_sw_create() to create sw_winsys. And that is
pretty much it...
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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]
|
|
|
|
|
|
|
|
|
| |
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]
|
|
|
|
| |
This reverts commit 95b445699d7f049116ee0927387a958a9933766b.
|
|
|
|
| |
This reverts commit 23aa978a9d76a48f4b93e9a8911ec50c0e5d94ab.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Return TRUE if the display supports premultiplied alpha.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Follow changes in c661ecce1089000c3fca9a543713f8264221be50.
|
|
|
|
| |
Follow the changes in 6602bda23ba6c4351eb7f04d34803103a68ac2db.
|
|
|
|
| |
For BOARD_GPU_DRIVERS=swrast build, DRM is not needed.
|
|
|
|
| |
Reported by cwhuang.
|
|
|
|
| |
This helps diagnose problems in EGL initialization.
|
|
|
|
| |
Use a staging color buffer when buffer preserving is enabled.
|
|
|
|
|
| |
There may be more than two back buffers. Clean up and prepare the
buffer cache for that.
|
|
|
|
| |
This fixes Kwaak3.
|
|
|
|
| |
Native buffers use HAL formats, not UI formats.
|
|
|
|
| |
This builds the static library libmesa_st_egl from st/egl.
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
So that eglBindTexImage works.
|
|
|
|
| |
Add symbols referenced by src/glx/dri2.c.
|
|
|
|
| |
Wrong goto labels.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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]>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
NOTE: This is a candidate for the 7.11 branch.
|
|
|
|
| |
It is triggered when --with-driver=xlib is specified.
|
|
|
|
|
| |
And use it for EGL_MATCH_NATIVE_PIXMAP. Remove is_pixmap_supported
meanwhile.
|
|
|
|
|
| |
Add a new helper function, _eglFilterConfigArray, for drivers and hide
_eglSortConfigs.
|
| |
|
|
|
|
|
| |
Add copy_to_pixmap method to native_display and use it for
eglCopyBuffers.
|
|
|
|
|
|
|
| |
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().
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
It is not used and confusing.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
This matches what we do in egl_dri2, and clients should
behave like this anyway.
|
| |
|
| |
|
|
|
|
|
|
| |
Make use of this in drm and wayland st/egl backends.
Reviewed-by: Alex Deucher <[email protected]>
|