Kristian Høgsberg
339544f4bb
wayland-drm: Use new generic error event
2011-05-19 12:07:00 -04:00
Kristian Høgsberg
bfaa458445
wayland: Fix link order for libwayland-drm.a
2011-05-18 18:57:05 -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
b8033a5651
egl: Compile wayland-drm.a into libEGL independent of egl_dri2
...
Fixes egl_gallium when egl_dri2 is not enabled.
2011-05-16 10:36:36 +02: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
Benjamin Franzke
6bb230970c
egl/wayland: Follow wl_resource_destroy changes
2011-05-06 16:50:45 -04: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
Kristian Høgsberg
f274dfaca4
egl: Use the right extension name in #ifdef
2011-04-25 15:34:04 -04:00
Benjamin Franzke
01b036adea
egl/wayland: Follow buffer.attach removal
2011-04-22 12:21:46 -04: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
1617b268ef
egl/wayland: Add new version parameter for post_drm
2011-04-22 08:56:30 -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
Benjamin Franzke
62d5f7a04a
egl/wayland-drm: Fix include path
...
src/egl/main/egltypedefs.h needs the path for EGL/egl.h
Reported by jlind on irc.
2011-03-26 10:57:31 -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
648a16d079
egl/wayland: build subdirs (wayland-drm) before depend
...
Autogenerated files need to be generated first.
2011-03-02 20:17:26 +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
Benjamin Franzke
87dde5b1cd
egl_dri2: Use double buffering for window surfaces
2011-02-10 23:07:01 -05:00
Kristian Høgsberg
1e1b89103e
wayland-egl: Add struct wl_egl_display argument to +wl_egl_window_create()
2011-02-07 20:50:18 -05:00
Kristian Høgsberg
56758c839f
wayland-egl: Force roundtrips to get device name and authenticate correctly
...
If the client hasn't done the initial wl_display_iterate() at the time
we initialize the display, we have to do that in platform_wayland.c.
Make sure we detect that correctly instead of dup()ing fd=0, and use
the sync callback to make sure we don't wait forever for authorization that
won't happen.
2011-02-07 14:01:31 +01:00
Benjamin Franzke
93aea84f47
egl_dri2: Add wayland platform
2011-02-07 14:01:31 +01:00
Benjamin Franzke
9630437fc9
egl_dri2: Export dri2_get_driver_for_fd
2011-02-07 14:01:31 +01:00
Benjamin Franzke
a8128d7d4b
egl_dri2: Enable pixmap bind_to_texture according to the extension
2011-02-07 14:01:30 +01:00
Benjamin Franzke
214fc6e850
egl: Implement libwayland-egl
...
This library is required and defined by wayland for
EGL implementations supporting wayland.
2011-02-07 13:55:20 +01:00
Benjamin Franzke
e586c4b763
egl: Add wayland platform
2011-02-07 13:52:29 +01:00
Alex Deucher
4668ad36f3
egl_dri2: Add new radeon pci ids
...
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-02-03 14:35:54 -05:00