diff options
author | Scott D Phillips <scott.d.phillips@intel.com> | 2016-07-25 13:19:28 -0700 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2016-07-27 15:49:10 +0800 |
commit | c7c69eb953822bbaf2075f9bea6f52d41212f5d3 (patch) | |
tree | dbdeeb735bb32eb87718fc32623fecfa81539bfd | |
parent | 51ad826fcc0d2512f7ef74e807e4b8526663fc28 (diff) |
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 <scott.d.phillips@intel.com>
-rw-r--r-- | src/i965_output_dri.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); |