Chia-I Wu
2a77dc0c0d
android: build core EGL
...
This builds the static library libmesa_egl from core EGL.
Reviewed-by: Chad Versace <chad@chad-versace.us>
2011-08-21 02:01:49 +08:00
Chia-I Wu
00b365bc78
egl: add Android-specific extensions
...
Add EGL_ANDROID_image_native_buffer and EGL_ANDROID_swap_rectangle.
There is no spec for them though.
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Chad Versace <chad@chad-versace.us>
2011-08-21 02:01:48 +08:00
Chia-I Wu
b0945c14df
egl: add _EGL_PLATFORM_ANDROID
...
This is Android Gingerbread platform.
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Chad Versace <chad@chad-versace.us>
2011-08-21 02:01:48 +08:00
Benjamin Franzke
61d2dfbe48
egl: Add include paths for platform autodetection
...
Needed since commit 85fe9484 .
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=40145
2011-08-16 19:28:07 +02: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
Benjamin Franzke
2e71c7d4ff
egl: Log (debug) native platform type
...
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
2011-08-15 09:42:16 +02:00
Benjamin Franzke
85fe948494
egl: Native Display autodetection
...
EGL doesnt define howto manage different native platforms.
So mesa has a builtime configurable default platform,
whith non-standard envvar (EGL_PLATFORM) overwrites.
This caused unneeded bugreports, when EGL_PLATFORM was forgotten.
Detection is grouped into basic types of NativeDisplays (which itself
needs to be detected). The final decision is based on characteristcs
of these basic types:
File Desciptor based platforms (fbdev):
- fstat(2) to check for being a fd that belongs to a character device
- check kernel subsystem (todo)
Pointer to structuctures (x11, wayland, drm/gbm):
- mincore(2) to check whether its valid pointer to some memory.
- magic elements (e.g. pointers to exported symbols):
o wayland display stores interface type pointer (first elm.)
o gbm stores pointer to its constructor (first elm.)
o x11 as a fallback (FIXME?)
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
2011-08-15 09:42:16 +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
Chia-I Wu
d6a9564854
egl: EGL_MATCH_NATIVE_NATIVE_PIXMAP cannot be EGL_DONT_CARE
2011-07-29 10:24:45 +09:00
Chia-I Wu
a5ab46909e
egl: make pixmaps and pbuffers EGL_BUFFER_PRESERVED
...
eglSwapBuffers is no-op to these surface types anyway.
2011-07-29 10:24:39 +09:00
Benjamin Franzke
79dcfb266a
wayland-drm: Add copyright notice to protocol
...
Fixes build since wayland 986703ac7365bc87a5501714adb9fc73157c62b7.
2011-07-27 10:07:14 +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
Chia-I Wu
c250363022
egl: fix a compiler warning
2011-07-01 18:28:56 +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
Chia-I Wu
8ea5330200
egl: fix EGL_MATCH_NATIVE_PIXMAP
...
EGL_MATCH_NATIVE_PIXMAP is valid for eglChooseConfig, but invalid for
eglGetConfigAttrib.
2011-06-25 18:51:11 +09:00
Chia-I Wu
31520548b7
egl: make implementing eglChooseConfig easier
...
Add a new helper function, _eglFilterConfigArray, for drivers and hide
_eglSortConfigs.
2011-06-25 18:17:38 +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
982cb36584
wayland-drm: remove depend on "make clean"
2011-06-13 12:19:47 +08: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
089aa313b4
wayland-drm: Check visual for being NULL
2011-05-31 15:13:37 -04:00
Benjamin Franzke
aa87a938fb
egl_dri2: Fix usage of bool values
2011-05-31 15:13:36 -04:00
Benjamin Franzke
5bf6cc95c1
wayland-egl: Remove left-over headers and struct
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
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