st/vdpau: use dri3 to directly send the buffer to X(v2)
authorNayan Deshmukh <nayan26deshmukh@gmail.com>
Wed, 11 Jan 2017 16:57:14 +0000 (22:27 +0530)
committerChristian König <christian.koenig@amd.com>
Tue, 17 Jan 2017 10:51:56 +0000 (11:51 +0100)
commit15bfdea99c7b487d2c38d6dd7b88fb44810ef75a
treed0ab8dd381618929e6912f0f356da62dbb31b333
parent0ef17d76bbbc9506d50138f1b4d79db8ef08ad6d
st/vdpau: use dri3 to directly send the buffer to X(v2)

this avoids an extra copy which occurs in case of dri2

v1.1: fallback to dri2 if dri3 fails to initialize
v2: add PIPE_BIND_SCANOUT to output buffers as they will
    be send to X server directly (Michel)

Suggested-by: Christian König <christian.koenig@amd.com>
Tested-by: Andy Furniss <adf.lists@gmail.com>
Signed-off-by: Nayan Deshmukh <nayan26deshmukh@gmail.com>
src/gallium/state_trackers/vdpau/output.c
src/gallium/state_trackers/vdpau/presentation.c