History log of /external/mesa3d/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
044de40cb0c6af54d99252f55145972780362afa 17-Jul-2012 Tom Stellard <thomas.stellard@amd.com> pipe_loader: Try to connect with the X server before probing pciids v2

When X is running it is neccesary for pipe_loader to authenticate with
DRM, in order to be able to use the device.

This makes it possible to run OpenCL programs while X is running.

v2:
- Fix C++ style comments
- Drop Xlib-xcb dependency
- Close the X connection when done
- Split auth code into separate function

Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
/external/mesa3d/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c
03e3bc4ba56f1021899a5f773b6ec21893619e3a 16-May-2012 Francisco Jerez <currojerez@riseup.net> gallium/auxiliary/pipe-loader: Fix usage of anonymous union.

Anonymous unions aren't part of the C99 standard. Fixes build on GCC
versions older than 4.6.

https://bugs.freedesktop.org/show_bug.cgi?id=50001

Reported-by: Michael Lange <michaell@gmx.org>
/external/mesa3d/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c
e1364530622a26f11c79694429cf84418a0b7ef7 25-Apr-2012 Francisco Jerez <currojerez@riseup.net> gallium: Add pipe loader for device enumeration and driver multiplexing.

The goal is to have a uniform interface to create winsys and
pipe_screen instances for any driver, exposing the device enumeration
capabilities that might be supported by the operating system (for now
there's a "drm" back-end using udev and a "sw" back-end that always
returns the same built-in devices).

The typical use case of this library will be:
>
> struct pipe_loader_device devs[n];
> struct pipe_screen *screen;
>
> pipe_loader_probe(&devs, n);
>[pick some device from the array...]
>
> screen = pipe_loader_create_screen(dev, library_search_path);
>[do something with screen...]
>
> screen->destroy(screen);
> pipe_loader_release(&devs, N);
>

A part of the code was taken from targets/gbm/pipe_loader.c, which
will be removed and replaced with calls into this library by a future
commit.
/external/mesa3d/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c