From c7c69eb953822bbaf2075f9bea6f52d41212f5d3 Mon Sep 17 00:00:00 2001 From: Scott D Phillips Date: Mon, 25 Jul 2016 13:19:28 -0700 Subject: dri: return error for unimplemented surface formats Previously packed YUV422 surface were allowed to be renderd but got rendered improperly. Signed-off-by: Scott D Phillips --- src/i965_output_dri.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/i965_output_dri.c b/src/i965_output_dri.c index d36fec5..ae3bcf6 100644 --- a/src/i965_output_dri.c +++ b/src/i965_output_dri.c @@ -135,6 +135,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, + VA_STATUS_ERROR_UNIMPLEMENTED); _i965LockMutex(&i965->render_mutex); -- cgit v1.2.3