vl/dri3: implement DRI3 BufferFromPixmap
authorLeo Liu <leo.liu@amd.com>
Mon, 9 May 2016 19:27:49 +0000 (15:27 -0400)
committerLeo Liu <leo.liu@amd.com>
Mon, 16 May 2016 20:28:51 +0000 (16:28 -0400)
commit8d7ac0a4e4db42190dcf260c1bc91e0b369e4df0
tree99ac7679e6f17a140bbffa276f1737795762d641
parent858b329c2cdf43269e083e0861eee2abbf802b4c
vl/dri3: implement DRI3 BufferFromPixmap

We also need render to the front buffer of temporary X pixmap,
this is the case of when we using opengl as video out for vaapi.
the basic implementation is to pass pixmap ID to X server, and
then X will return dma-buf fd, we will get the buffer object
through this dma-buf fd.

Signed-off-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
src/gallium/auxiliary/vl/vl_winsys_dri3.c