Benjamin Franzke
11f64668a9
egl_dri2: Destroy callback in release_pending_buffer
2011-09-01 11:44:43 +02:00
Kristian Høgsberg
7b1d94e5d1
wayland: Track changes to drop wl_visual
2011-08-31 18:33:47 -04:00
Kristian Høgsberg
447bb454d8
egl_dri2: Only clear EGL_PIXMAP_BIT if DRI config is double buffered
...
We don't want to set the pixmap bit in the EGL config if the DRI
config we're adding is a double buffered config. However, don't clear
any other bits the platform might pass in in the surface_type
argument.
2011-08-31 18:33:36 -04:00
Kristian Høgsberg
c661ecce10
wayland: Track server side wayland changes
2011-08-31 18:20:40 -04:00
Kristian Høgsberg
6602bda23b
wayland: Use new wl_callback mechanism
2011-08-31 16:50:50 -04:00
Benjamin Franzke
f811c1e6d6
egl_dri2: Drop dri2_surface_type enum
...
Was only used in platform_wayland, and the remaining egl stack
uses _EGLSurface::Type with one of EGL_{WINDOW,PIXMAP,PBUFFER}_BIT.
2011-08-31 11:45:34 +02:00
Chia-I Wu
93d5963744
egl_dri2: add pbuffer support to platform_android
...
This is a simple change thanks to allocateBuffer.
Reviewed-by: Chad Versace <chad@chad-versace.us>
2011-08-31 12:06:26 +08:00
Chia-I Wu
c8e18f85da
egl_dri2: check the surface type in platform_android
...
Check the surface type is EGL_WINDOW_BIT before doing anything, in
preparation for pbuffer support.
Reviewed-by: Chad Versace <chad@chad-versace.us>
2011-08-31 11:58:34 +08:00
Chia-I Wu
384f228a25
egl_dri2: refactor droid_get_buffers_with_format
...
Move the loop to parse attachments to its own function.
Reviewed-by: Chad Versace <chad@chad-versace.us>
2011-08-31 11:51:54 +08:00
Chia-I Wu
357d3f30f3
egl_dri2: set ctx->WindowRenderBuffer
...
Set ctx->WindowRenderBuffer to EGL_BACK_BUFFER. As EGL_WINDOW_BIT of a
config is set only when there is dri_double_buffer, that makes sure
window surfaces are always double-buffered and contexts will render to
the back buffer.
Reviewed-by: Chad Versace <chad@chad-versace.us>
2011-08-31 11:51:42 +08:00
Chia-I Wu
099faeef33
android: add support for egl_dri2
...
Add rules to build egl_dri2 and make it a built-in EGL driver of
libGLES_mesa.
Reviewed-by: Chad Versace <chad@chad-versace.us>
2011-08-28 21:56:23 +08:00
Chia-I Wu
9779f6f5c1
egl_dri2: add support for Android
...
Add platform_android.c that supports _EGL_PLAFORM_ANDROID. It works
with drm_gralloc, where back buffers of windows are backed by GEM
objects.
In Android a native window has a queue of back buffers allocated by the
server, through drm_gralloc. For each frame, EGL needs to
dequeue the next back buffer
render to the buffer
enqueue the buffer
After enqueuing, the buffer is no longer valid to EGL. A window has no
depth buffer or other aux buffers. They need to be allocated locally by
EGL.
Reviewed-by: Benjamin Franzke <benjaminfranzke@googlemail.com>
Reviewed-by: Chad Versace <chad@chad-versace.us>
[olv: with assorted minor changes, mostly suggested during the review]
2011-08-28 21:56:23 +08:00
Chia-I Wu
58911b86a1
egl_dri2: allow RGBA masks to be specified for matching
...
Add rgba_masks to dri2_add_config. When it is non-NULL, the DRI config
is accepted only when the offsets and sizes of the its channels match
rgba_mask.
Reviewed-by: Chad Versace <chad@chad-versace.us>
2011-08-28 21:56:22 +08:00
Benjamin Franzke
8c40940321
dri2: Add __DRI_BUFFER_COUNT token
...
Remove definition from egl_dri2.
Defining this is egl_dri2.h breaks as soon as
a new dri2 buffer token is added like with commit
4501a5d6e8 .
2011-08-16 09:06:41 +02:00
Cooper Yuan
f5e757ea60
Destroy context in dri2/glx driver when apps call eglDestroyContext
2011-08-14 15:14:17 +08:00
Benjamin Franzke
32f4cf3808
egl/gbm: Fix EGL_DEFAULT_DISPLAY
2011-08-04 14:09:34 +02:00
Marek Olšák
5fe54df58f
Rename swrastg_dri to swrast_dri
...
I prefer it this way and it has been suggested earlier by others too.
Opinions?
2011-07-14 03:03:26 +02:00
Völgyes Dávid
f747d03b1d
Fixes for leaks reported by cppcheck.
2011-07-06 10:11:04 -04:00
Benjamin Franzke
b2d6375e6a
egl_dri2: Fix compilation if udev devel files are not installed
...
NOTE: This is a candidate for the 7.11 branch.
2011-07-02 13:56:27 +02:00
Chia-I Wu
f2001df508
egl: add copyright notices
...
The list of copyright holders could be incomplete. Please update
directly or notify me if your name is missing.
2011-07-02 18:21:31 +09:00
Benjamin Franzke
992680c8b4
egl: Fix Terminate with shared gbm screens
...
NOTE: This is a candidate for the 7.11 branch.
2011-06-27 10:25:12 +02:00
Benjamin Franzke
629c15aaac
egl_dri2: Build drm platform only if enabled
2011-06-24 22:00:45 +02:00
Benjamin Franzke
e5fc4c81ce
egl_dri2: Hookup gbm as drm platform
2011-06-23 21:07:17 +02:00
Benjamin Franzke
0cb356dd5c
egl_dri2/wayland: Hook up new buffer.release event
2011-06-21 13:11:43 -04:00
Kristian Høgsberg
16a04e019d
wayland: Pass use_invalidate extension to driver
2011-06-20 11:05:26 -04:00
Benjamin Franzke
80636ff2da
egl_dri2/x11: Check availability of the dri2 extension
...
Do this before query versions, or xcb will shutdown
and the connection can not be used for swrast.
2011-06-20 10:06:24 -04:00
Chia-I Wu
77e031a1c4
egl_dri2: try swrastg_dri if swrast_dri fails
...
Per libGL.
2011-06-13 12:19:39 +08:00
Chia-I Wu
cf69eeacc6
egl_dri2: add dri2_load_driver_swrast
...
Refactor dri2_load_driver and add dri2_load_driver_swrast for loading
swrast DRI driver.
2011-06-13 11:11:43 +08:00
Benjamin Franzke
16e30276e8
egl_dri2: Compare configs before matching them
...
This compares attribs like buffer size, and will prevent merging
unequal configs because of match criterion is e.g. ATLEAST.
2011-06-12 08:56:35 -04:00
Benjamin Franzke
b8325fd255
egl_dri2/wayland: Add support for EGL_DEFAULT_DISPLAY
2011-06-12 08:56:35 -04:00
Benjamin Franzke
ac3c2c8ece
egl_dri2: Add missing header
2011-06-07 17:59:16 -04:00
Benjamin Franzke
3b11d67ef6
egl_dri2: Add missing license
2011-06-07 17:58:59 -04:00
Benjamin Franzke
ec2b08de77
egl_dri2: Use libudev only if available
...
Broken since 7f881c43df .
2011-06-07 17:58:47 -04:00
Benjamin Franzke
7f881c43df
egl_dri2: Use external driver pci list
...
Reviewed-by: Alex Deucher <alexdeucher@gmail.com>
2011-06-07 10:28:19 -04:00
Benjamin Franzke
aa87a938fb
egl_dri2: Fix usage of bool values
2011-05-31 15:13:36 -04:00
Alex Deucher
c44dad559a
egl_dri2: add new cayman pci ids
...
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-05-25 01:27:34 -04:00
Kenneth Graunke
b2c1f8ff1d
egl: Recognize Ivybridge PCI IDs.
...
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
2011-05-17 23:33:02 -07:00
Benjamin Franzke
83c68758be
egl_dri2: Discard similar configs
2011-05-13 09:31:09 -04:00
Kristian Høgsberg
93aea63a33
egl_dri2: Make it possible to not compile in the X11 platform
2011-05-13 09:31:09 -04:00
José Fonseca
5de2c67ba7
egl/dri2: Avoid unused static functions.
2011-05-12 15:24:26 +01:00
José Fonseca
4a47d6d46b
egl/dri2: Prevent uninitialized variable dereference.
2011-05-12 15:23:48 +01:00
José Fonseca
6c26072bd1
egl/dri2: Fix const pointer duplication, prevent unitialized variable dereference.
...
Based on zhigang gong <zhigang.gong@gmail.com>'s patch.
2011-05-12 15:23:02 +01:00
José Fonseca
6a661895e9
egl: Fix int <-> ptr casts.
...
Based on zhigang gong <zhigang.gong@gmail.com>'s patch.
2011-05-12 15:12:16 +01:00
Kostas Georgiou
8c3226be90
Add pci id for FirePro 2270
...
Signed-off-by: Kostas Georgiou <georgiou@opengamma.com>
2011-05-06 13:03:40 -04:00
Alex Deucher
2c3232da7a
egl_dri2: add new radeon pci ids
...
There seriously needs to be a better way to do
this.
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-05-06 13:02:24 -04:00
Kristian Høgsberg
e5169e9615
egl: Add a cursor use bit to MESA_drm_image
2011-05-06 10:33:50 -04:00
Benjamin Franzke
834b84149d
egl/wayland-drm: Generalize interface
...
Do not depend on _EGLDisplay and _EGLImage.
2011-05-06 10:33:50 -04:00
Benjamin Franzke
dc520d4fef
egl/wayland: Fix possible lockup in drm initialization
...
Lockup happens when wl_drm interface is not available.
2011-04-29 17:05:16 +02:00
Benjamin Franzke
b1a9172277
egl/wayland: Update to buffer.damage addition
2011-04-22 12:21:37 -04:00
Benjamin Franzke
f09c66b3cc
egl_dri2: Create wl_buffers for pixmap surfaces
...
Needed since wayland-egl doesnt do this anymore.
2011-04-22 08:56:33 -04:00