summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2017-04-11 19:43:38 +0200
committerXiang, Haihao <haihao.xiang@intel.com>2017-06-12 13:09:03 +0800
commit02d99779ac0edbd665d65f2ef65e8b2b5d4db4c7 (patch)
tree0fdf74b47cd840bceeb76181b6de0e187692e957 /src
parent0f0acb85ba86ea7764106bcedbff17d75e00f83d (diff)
downloadlibva-intel-driver-02d99779ac0edbd665d65f2ef65e8b2b5d4db4c7.tar.gz
dri: error for more unimplemented surface formats
Such as commit 396bf01a, RGB formats are not display correctly in X11. Hence, return unimplemented error. Fixes #131 Signed-off-by: Víctor Manuel Jáquez Leal <vjaquez@igalia.com> (cherry picked from commit 00bfd094947e3fe52c524b89b572c6cddaa7d1a9)
Diffstat (limited to 'src')
-rw-r--r--src/i965_output_dri.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/i965_output_dri.c b/src/i965_output_dri.c
index 33a32397..d9aeb37e 100644
--- a/src/i965_output_dri.c
+++ b/src/i965_output_dri.c
@@ -35,7 +35,7 @@
typedef struct dri_drawable *(*dri_get_drawable_func)(
VADriverContextP ctx, XID drawable);
typedef union dri_buffer *(*dri_get_rendering_buffer_func)(
- VADriverContextP ctx, struct dri_drawable *d);
+ VADriverContextP ctx, struct dri_drawable *d);
typedef void (*dri_swap_buffer_func)(
VADriverContextP ctx, struct dri_drawable *d);
@@ -142,7 +142,9 @@ i965_put_surface_dri(
obj_surface = SURFACE(surface);
ASSERT_RET(obj_surface && obj_surface->bo, VA_STATUS_SUCCESS);
ASSERT_RET(obj_surface->fourcc != VA_FOURCC_YUY2 &&
- obj_surface->fourcc != VA_FOURCC_UYVY,
+ obj_surface->fourcc != VA_FOURCC_UYVY &&
+ obj_surface->fourcc != VA_FOURCC_RGBX &&
+ obj_surface->fourcc != VA_FOURCC_BGRX,
VA_STATUS_ERROR_UNIMPLEMENTED);
_i965LockMutex(&i965->render_mutex);