vl/dri3: add back buffers support
authorLeo Liu <leo.liu@amd.com>
Tue, 10 May 2016 19:11:18 +0000 (15:11 -0400)
committerLeo Liu <leo.liu@amd.com>
Mon, 16 May 2016 20:28:51 +0000 (16:28 -0400)
commite1223282dbfbce82072ac6ae6de182ebd60cd1c4
tree577fc6e4a25409f05619b4e09969e6e4c7f9f58a
parent69ba9be4d24757eaca263662148df1163bde3d86
vl/dri3: add back buffers support

This implements DRI3 PixmapFromBuffer. Create buffer objects, and
associate it to a dma-buf fd, and then pass this fd with a pixmap
ID to X server for creating pixmap object; also add a function
for wait events.

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