summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/egl/drm
Commit message (Collapse)AuthorAgeFilesLines
* st/egl: use loader util libEmil Velikov2014-01-181-42/+2
| | | | | | Signed-off-by: Emil Velikov <[email protected]> Reviewed-by: Rob Clark <[email protected]> Reviewed-by: Kristian Høgsberg <[email protected]>
* gallium-egl: Commit the rest of the native_wayland_drm_bufmgr_helper v2 patchKristian Høgsberg2013-08-072-4/+2
| | | | | | | | I missed Anders v2 on the list which fixed non-wayland compilation: http://lists.freedesktop.org/archives/mesa-dev/2013-July/042062.html Signed-off-by: Kristian Høgsberg <[email protected]>
* gallium-egl: Simplify native_wayland_drm_bufmgr_helper interfaceAnder Conselvan de Oliveira2013-08-072-49/+5
| | | | | | | | | | | | | | | | | | | | | The helper provides a series of functions to easy the implementation of the WL_bind_wayland_display extension on different platforms. But even with the helpers there was still a bit of duplicated code between platforms, with the drm authentication being the only part that differs. This patch changes the bufmgr interface to provide a self contained object with a create function that takes a drm authentication callback as an argument. That way all the helper functions are made static and the "_helper" suffix was removed from the sources file name. This change also removes the mix of Wayland client and server code in the wayland drm platform source file. All the uses of libwayland-server are now contained in native_wayland_drm_bufmgr.c. Changes to the drm platform are only compile tested. Signed-off-by: Ander Conselvan de Oliveira <[email protected]>
* mesa: remove outdated version lines in commentsRico Schüller2013-06-053-3/+0
| | | | Signed-off-by: Brian Paul <[email protected]>
* gallium-egl: Fix compile errors introduced in de315f76aKristian Høgsberg2013-03-191-1/+1
| | | | | | | | The commit changed API in a helper library shared by both egl_dri2 and the gallium egl state tracker, but only egl_dri2 was updated to use the new interface. Tested-by: Giulio Camuffo <[email protected]>
* st/egl/drm: only unref the udev device if neededTobias Droste2012-12-111-4/+5
| | | | | | | | | | | Fixes compiler warning: drm/native_drm.c: In function ‘native_create_display’: drm/native_drm.c:180:21: warning: ‘device’ may be used uninitialized in this function [-Wmaybe-uninitialized] drm/native_drm.c:157:24: note: ‘device’ was declared here Signed-off-by: Tobias Droste <[email protected]> Reviewed-by: Alex Deucher <[email protected]>
* Remove useless checks for NULL before freeingMatt Turner2012-09-052-8/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Same as earlier commit, except for "FREE" This patch has been generated by the following Coccinelle semantic patch: // Remove useless checks for NULL before freeing // // free (NULL) is a no-op, so there is no need to avoid it @@ expression E; @@ + FREE (E); + E = NULL; - if (unlikely (E != NULL)) { - FREE(E); ( - E = NULL; | - E = 0; ) ... - } @@ expression E; type T; @@ + FREE ((T) E); + E = NULL; - if (unlikely (E != NULL)) { - FREE((T) E); ( - E = NULL; | - E = 0; ) ... - } @@ expression E; @@ + FREE (E); - if (unlikely (E != NULL)) { - FREE (E); - } @@ expression E; type T; @@ + FREE ((T) E); - if (unlikely (E != NULL)) { - FREE ((T) E); - } Reviewed-by: Brian Paul <[email protected]>
* gallium-egl: Move wayland query_buffer implementationKristian Høgsberg2012-07-191-1/+2
| | | | | | | Move it to native_wayland_drm_bufmgr_helper.c which only gets compiled when wayland is enabled and which already includes the right headers. Signed-off-by: Kristian Høgsberg <[email protected]>
* egl/drm: Include errno.hJosé Fonseca2012-03-111-0/+1
| | | | Fixes scons build.
* Set close on exec flag FD_CLOEXECDavid Fries2012-03-111-1/+10
| | | | | | | | | Set the close on exec flag when opening dri character devices, so they will be closed and free any resouces allocated in exec. Signed-off-by: David Fries <[email protected]> Reviewed-by: Adam Jackson <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
* st/egl: Move drm_display_authenticate into HAVE_WAYLAND_BACKEND section.Vinson Lee2012-02-201-9/+9
| | | | | | | | | Fixes this GCC warning. native_drm.c:153:1: warning: ‘drm_display_authenticate’ defined but not used [-Wunused-function] Signed-off-by: Vinson Lee <[email protected]> Reviewed-by: José Fonseca <[email protected]>
* st/egl: add native_present_controlChia-I Wu2011-09-081-6/+4
| | | | | | 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.
* egl/gbm: Fix EGL_DEFAULT_DISPLAYBenjamin Franzke2011-08-042-5/+22
|
* egl: Fix Terminate with shared gbm screensBenjamin Franzke2011-06-271-0/+2
| | | | NOTE: This is a candidate for the 7.11 branch.
* st/egl: reorganize backend initializationChia-I Wu2011-06-252-14/+14
| | | | | | | 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().
* st/egl: make native_buffer interface typedChia-I Wu2011-06-241-20/+3
| | | | | | 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.
* st/egl: Hookup gbm for drm backendBenjamin Franzke2011-06-233-41/+76
|
* targets/egl: Support driver name lookup using pci listsBenjamin Franzke2011-06-071-31/+2
| | | | | | Make use of this in drm and wayland st/egl backends. Reviewed-by: Alex Deucher <[email protected]>
* st/egl: Implement EGL_WL_bind_wayland_display for x11,drm,waylandBenjamin Franzke2011-05-132-0/+117
|
* gallium: remove the geom_flags param from is_format_supportedMarek Olšák2011-03-111-1/+1
|
* st/egl: Implement swapbuffer throttlingThomas Hellstrom2011-03-011-3/+12
| | | | | | | | | | | | | | | When doing copy swapbuffers using drm, throttle on outstanding copy operations. Introduces a new environment variable, EGL_THROTTLE_FENCES that the user can use to indicate the desired number of outstanding swapbuffers, or disable throttling using EGL_THROTTLE_FENCES=0. This can and perhaps should be extended to the pageflip case as well, since with some hardware pageflips can be pipelined. In case the pageflip syncs, the throttle operation will be a no-op anyway. Update copyright notices. Signed-off-by: Thomas Hellstrom <[email protected]>
* st/egl/drm: Rework swapbuffersThomas Hellstrom2011-03-012-7/+32
| | | | | | | | Use the pageflip ioctl when available. Otherwise, or when the backbuffer contents need to be preserved, fall back to a copy operation. Signed-off-by: Thomas Hellstrom <[email protected]>
* st/egl: Move the copy context to the native display structureThomas Hellstrom2011-03-011-2/+1
| | | | | | | | This makes it usable also for native helpers. Also add inline functions to access the context and to uninit the native display structure. Signed-off-by: Thomas Hellstrom <[email protected]>
* st/egl: Downgrade warning to debug when we can't create a drm screenKristian Høgsberg2011-01-261-1/+1
| | | | We try to load a DRI driver if this fails so don't confuse users.
* egl: Improve driver selection.Chia-I Wu2011-01-131-3/+11
| | | | | | | | | | | | | | | | | | | | | | | The idea is to be able to match a driver using the following order try egl_gallium with hw renderer try egl_dri2 try egl_gallium with sw renderer try egl_glx given the module list egl_gallium egl_dri2 egl_glx For that, UseFallback initialization option is added. The module list is matched twice: with the option unset and with the option set. In the first pass, egl_gallium skips its sw renderer and egl_glx rejects to initialize since UseFallback is not set. In the second pass, egl_gallium skips its hw renderer and egl_dri2 rejects to initialize since UseFallback is set. The process stops at the first driver that initializes the display.
* r300g: cleanup winsysMarek Olšák2010-12-051-1/+1
|
* st/egl: Use native_display_buffer for EGL_MESA_drm_image.Chia-I Wu2010-11-031-0/+24
| | | | | native_display_buffer is just a wrapper to resource_{from,get}_handle for drm backend.
* st/egl: Remove flush_frontbuffer and swap_buffers.Chia-I Wu2010-11-031-2/+0
| | | | | They are deprecated by native_surface::present and there is no user of them.
* st/egl: Add native_surface::present callback.Chia-I Wu2010-11-032-0/+30
| | | | | | | The callback presents the given attachment to the native engine. It allows the swap behavior and interval to be controlled. It will replace native_surface::flush_frontbuffer and native_surface::swap_buffers shortly.
* st/egl: Fix native_mode refresh mode.Chia-I Wu2010-10-231-2/+2
| | | | Define the unit to match _EGLMode's.
* st/egl: s/kms/drm/ on the drm backend.Chia-I Wu2010-09-193-303/+303
| | | | s/kms/drm/, s/kdpy/drmdpy/, and so forth.
* st/egl: Rename kms backend to drm.Chia-I Wu2010-09-193-0/+1005
The main use of the backend is to support EGL_MESA_drm_display. drm should be a better name.