freedreno: simplify device creation

Signed-off-by: Rob Clark <robclark@freedesktop.org>
freedreno: fix null ptr in error path

Signed-off-by: Rob Clark <robclark@freedesktop.org>
freedreno/kgsl: don't even bother trying CREATE_FD

Don't even bother trying DRM_KGSL_GEM_CREATE_FD.  It hasn't worked since
(afaict) 2.6.35 kernels.  And in some cases seems to cause some
problems.  Instead just allocate a minimum size dummy object (just for
purposes of having a handle) and then mmap the framebuffer as user-mem
(which is deprecated, but seems to still work.. and as far as I can tell
is the best option for now).

Signed-off-by: Rob Clark <robclark@freedesktop.org>
freedreno: Implement support for OpenFIMG DRM interface

This patch adds support for OpenFIMG DRM interface to Freedreno libdrm
code to reduce code duplication between Freedreno and OpenFIMG
projects, because semantics used by kernel side of both are nearly
identical.

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>