drm/freedreno
Emil Velikov ea1786416c freedreno: zero is a valid fd number, treat it as such
Abeit quite unlikely to get hit by this bug here, let just fix it.

v2: Correct conditional (do not call ioctl(DRM_IOCTL_PRIME_HANDLE_TO_FD)
when we already have the fd).
v3: Fix kgsl_pipe.c, suggested by Thierry.

Cc: freedreno@lists.freedesktop.org
Cc: Rob Clark <robdclark@gmail.com>
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Thierry Reding <thierry.reding@gmail.com>
2015-07-16 16:41:38 +01:00
..
kgsl freedreno: zero is a valid fd number, treat it as such 2015-07-16 16:41:38 +01:00
msm freedreno: zero is a valid fd number, treat it as such 2015-07-16 16:41:38 +01:00
Android.mk android: remove LOCAL_COPY_HEADERS* variables 2015-03-20 17:02:56 +00:00
Makefile.am freedreno: link against CLOCK_LIB 2015-04-29 17:30:17 +00:00
Makefile.sources configure/freedreno: make KGSL support optional 2015-01-18 13:18:33 -05:00
README freedreno: add freedreno DRM 2013-02-14 12:13:15 -05:00
freedreno-symbol-check freedreno: add symbols test 2015-04-28 11:18:43 +01:00
freedreno_bo.c freedreno: zero is a valid fd number, treat it as such 2015-07-16 16:41:38 +01:00
freedreno_device.c drm: remove drm_public macro 2015-04-28 11:19:15 +01:00
freedreno_drmif.h freedreno: add dmabuf import/export helpers 2014-09-21 22:16:37 -04:00
freedreno_pipe.c drm: remove drm_public macro 2015-04-28 11:19:15 +01:00
freedreno_priv.h drm: rename libdrm{,_macros}.h 2015-04-28 11:19:15 +01:00
freedreno_ringbuffer.c drm: remove drm_public macro 2015-04-28 11:19:15 +01:00
freedreno_ringbuffer.h freedreno: allow IB to different ringbuffer 2014-01-07 11:33:54 -05:00
libdrm_freedreno.pc.in freedreno: add freedreno DRM 2013-02-14 12:13:15 -05:00
list.h freedreno: add freedreno DRM 2013-02-14 12:13:15 -05:00

README

Note that current msm kernel driver is a bit strange.  It provides a
DRM interface for GEM, which is basically sufficient to have DRI2
working.  But it does not provide KMS.  And interface to 2d and 3d
cores is via different other devices (/dev/kgsl-*).  This is not
quite how I'd write a DRM driver, but at this stage it is useful for
xf86-video-freedreno and fdre (and eventual gallium driver) to be
able to work on existing kernel driver from QCOM, to allow to
capture cmdstream dumps from the binary blob drivers without having
to reboot.  So libdrm_freedreno attempts to hide most of the crazy.
The intention is that when there is a proper kernel driver, it will
be mostly just changes in libdrm_freedreno to adapt the gallium
driver and xf86-video-freedreno (ignoring the fbdev->KMS changes).

So don't look at freedreno as an example of how to write a libdrm
module or a DRM driver.. it is just an attempt to paper over a non-
standard kernel driver architecture.