BACKPORT: drm/prime: expose capability flags for userspace.

This lets the kernel tell userspace if the device supports prime
import/export.

This is useful for -modesetting at least, but would be nice for other
drivers.

BUG=chromium:428125
TEST=mesa can now do dmabuf import on pineview but freon crashes later

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Dave Airlie <airlied@redhat.com>
(cherry picked from commit 4271a4090068f9dec3784205391c59540130b132)
Signed-off-by: Stéphane Marchesin <marcheu@chromium.org>

Change-Id: Ia8840e987faa72afa38f7d916ffa41f2cf6a8863
Reviewed-on: https://chromium-review.googlesource.com/263358
Reviewed-by: Ilja Friedel <ihf@chromium.org>
Tested-by: Stéphane Marchesin <marcheu@chromium.org>
Commit-Queue: Stéphane Marchesin <marcheu@chromium.org>
2 files changed