gallium/vl: add prime support
authorDave Airlie <airlied@redhat.com>
Thu, 25 Jul 2013 03:31:26 +0000 (13:31 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 25 Jul 2013 22:42:00 +0000 (08:42 +1000)
commit19338157c97becac1e61cc51dc0904ddfab8e9da
tree2ade6516fb765de9a5d48a52eb013749b80d5b7e
parent0e9549e2bd57168086421468cbf1db0821c36730
gallium/vl: add prime support

This fixes the dri2 opening to check if DRI_PRIME is set,
and picks the correct drm device path to open, this along
with a change to libvdpau allows vdpauinfo to work at least,

Martin Peres tested with nouveau, and there seems to be a
further issue with final displaying, it only works sometimes,
but this patch is at least necessary to help debug further.

Signed-off-by: Dave Airlie <airlied@redhat.com>
Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Christian König <christian.koenig@amd.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=67283
Tested-by: Armin K. <krejzi@email.com>
src/gallium/auxiliary/vl/vl_winsys_dri.c