auxiliary/vl: use vl_*_screen_create stubs when building w/o platform
authorEmil Velikov <emil.velikov@collabora.com>
Tue, 2 May 2017 16:53:17 +0000 (17:53 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 19 May 2017 18:46:41 +0000 (19:46 +0100)
commit369e5dd939b4af6c653d6cbbe9be257a9c2c950e
treec30ed65c3c5d4c56c245d333f06f1f5aadfcc0dd
parent05043e0e8e0bd5e3019f480557d452b4c165f8f2
auxiliary/vl: use vl_*_screen_create stubs when building w/o platform

Provide a dummy stub when the user has opted w/o said platform, thus
we can build the binaries without unnecessarily requiring X11/other
headers.

In order to avoid build and link-time issues, we remove the HAVE_DRI3
guards in the VA and VDPAU state-trackers.

With this change st/va will return VA_STATUS_ERROR_ALLOCATION_FAILED
instead of VA_STATUS_ERROR_UNIMPLEMENTED. That is fine since upstream
users of libva such as vlc and mpv do little error checking, let
alone distinguish between the two.

Cc: Leo Liu <leo.liu@amd.com>
Cc: Guttula, Suresh <Suresh.Guttula@amd.com>
Cc: mesa-stable@lists.freedesktop.org
Cc: Christian König <christian.koenig@amd.com>
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
src/gallium/auxiliary/Makefile.am
src/gallium/auxiliary/Makefile.sources
src/gallium/auxiliary/vl/vl_winsys.h
src/gallium/state_trackers/va/context.c
src/gallium/state_trackers/vdpau/device.c