Benjamin Franzke
a8907c6005
egl_dri2: Fix compilation if udev devel files are not installed
...
NOTE: This is a candidate for the 7.11 branch.
(cherry picked from commit b2d6375e6a )
2011-07-12 09:58:11 +02:00
Benjamin Franzke
89af428aea
egl: Fix Terminate with shared gbm screens
...
NOTE: This is a candidate for the 7.11 branch.
(cherry picked from commit 992680c8b4 )
2011-07-12 09:58:11 +02:00
Chia-I Wu
e4cef07b87
egl: add copyright notices
...
The list of copyright holders could be incomplete. Please update
directly or notify me if your name is missing.
(cherry picked from commit f2001df508 )
2011-07-02 18:25:28 +09: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
Benjamin Franzke
2225397d1c
egl/wayland: Fix prefixes for interface names
2011-04-22 08:56:27 -04:00
Kristian Høgsberg
c0f8c9911c
wayland-egl: Update to wayland-egl.h changes, drop struct wl_egl_display
2011-04-20 17:47:20 -04:00
Benjamin Franzke
f05751aa2a
egl/wayland: Update to per-surface frame events
2011-04-12 11:08:17 -04:00
Kristian Høgsberg
55a629cee5
egl_dri2.c: Open drm device with O_CLOEXEC
...
Not a good fd to leak.
2011-04-07 18:27:56 -04:00
Feng, Haitao
58f95f9d01
egl_dri2 x11: Fix a typo
...
Signed-off-by: Haitao Feng <haitao.feng@intel.com>
2011-03-30 08:29:09 -04:00
Kristian Høgsberg
a1bd012473
egl_dri2: We don't actually support KHR_gl_texture_2D_image
2011-03-26 10:57:31 -04:00
Kristian Høgsberg
981e338611
egl_dri2: Enable image extensions in one place
...
We know what we can support in egl_dri2.c so just enable the extensions
there.
2011-03-26 10:57:31 -04:00
Benjamin Franzke
4f6fbfa0ed
egl_dri2: Add attribute map for __DRI_ATTRIB_FRAMEBUFFER_SRGB_CAPABLE
...
Broken since 6538b5824e .
Thanks to iskren on #wayland for helping on finding this.
2011-03-07 00:32:05 +01:00
Benjamin Franzke
22d9ae11bc
egl_dri2: Fix incompatible vfunc-pointer warning
2011-03-04 16:36:37 -05:00
Benjamin Franzke
e71920929e
egl/wayland: Move wayland-egl into a subdir
...
This hopefully fixes wayland-egl's dependency
resolution for autogenerated wayland-drm headers.
2011-03-04 16:36:37 -05:00
Benjamin Franzke
4ca075ac4f
egl_dri2 x11: Workaround device_name xcb-dri2 bug
...
This commit is basically a copy-over of the fix
Chia-I Wu's commited to wayland:
http://cgit.freedesktop.org/wayland/wayland-demos/commit/?id=1b6c0ed95
"Workaround an xcb-dri2 bug.
xcb_dri2_connect_device_name generated by xcb-proto 1.6 is broken.
It only works when the length of the driver name is a multiple of 4."
2011-03-02 20:41:38 +01:00
Benjamin Franzke
6b369c4c7c
egl: Add EGL_WL_bind_wayland_display
2011-03-01 17:23:50 -05:00
Chia-I Wu
bf0c56522e
egl_dri2: Return NULL when xcb_get_geometry_reply fails.
...
This should fix bug #33946 .
2011-02-20 12:26:31 -07:00
Haitao Feng
f55d027ac2
egl_dri2: add swrast
...
This enables the egl_dri2 driver to load swrast driver
for software rendering. It could be used when hardware
dri2 drivers are not available, such as in VM.
Signed-off-by: Haitao Feng <haitao.feng@intel.com>
2011-02-16 23:06:36 -05:00
Dave Airlie
1f5b674168
egl_dri2: add nouveau support.
...
but really wtf? all these PCI IDs need to be ripped out of here, its totally
unscalable and the drivers already have this info so could export it some better way.
tested by Darxus on #wayland.
2011-02-14 07:54:28 +10:00
Haitao Feng
3104e5cb4f
egl_dri2: rename loader_extension to dri2_loader_extension
...
Signed-off-by: Haitao Feng <haitao.feng@intel.com>
2011-02-10 23:41:21 -05:00
Benjamin Franzke
51f2820922
egl_dri2 wayland: Sync front buffer release
2011-02-10 23:07:01 -05:00
Benjamin Franzke
4e8f95f64d
egl_dri2: Always unbind old contexts
...
This fixes __DRIdrawable refcounting.
Binding a context increases their refcount,
so we need to decrease it.
2011-02-10 23:07:01 -05:00