summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiang, Haihao <haihao.xiang@intel.com>2016-10-12 09:50:16 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2016-10-31 10:00:08 +0800
commit27b0f8aed6ee99d75e45f6a8904eddea9c7630e1 (patch)
tree93e43dae0ffd02e740740e7a3dc6c0fe89184372
parentcbd013536405ca07aad9e181e59b3d30b5bb55df (diff)
Add support for IYUV in vaCreateSurfaces()
Actually IYUV is indentical to I420. This fixes the failue reported by CreateSurfacesTest.SupportedPixelFormats in gtest before: [ FAILED ] CreateSurfacesTest.SupportedPixelFormats (0 ms) [----------] 1 test from CreateSurfacesTest (0 ms total) [----------] Global test environment tear-down [==========] 1 test from 1 test case ran. (2 ms total) [ PASSED ] 0 tests. [ FAILED ] 1 test, listed below: [ FAILED ] CreateSurfacesTest.SupportedPixelFormats after: [----------] 1 test from CreateSurfacesTest [ RUN ] CreateSurfacesTest.SupportedPixelFormats [ OK ] CreateSurfacesTest.SupportedPixelFormats (1 ms) [----------] 1 test from CreateSurfacesTest (1 ms total) [----------] Global test environment tear-down [==========] 1 test from 1 test case ran. (4 ms total) [ PASSED ] 1 test. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=98033 Tested-by: Eoff, Ullysses A <ullysses.a.eoff@intel.com> Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com> Reviewed-by: Eoff, Ullysses A <ullysses.a.eoff@intel.com> (cherry picked from commit 7ef5135054a3f6c6baff9c6dca4383079ff5f072)
-rw-r--r--src/i965_drv_video.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/i965_drv_video.c b/src/i965_drv_video.c
index c9357f5..33ef6e8 100644
--- a/src/i965_drv_video.c
+++ b/src/i965_drv_video.c
@@ -4146,6 +4146,7 @@ i965_check_alloc_surface_bo(VADriverContextP ctx,
case VA_FOURCC_YV12:
case VA_FOURCC_I420:
+ case VA_FOURCC_IYUV:
if (fourcc == VA_FOURCC_YV12) {
obj_surface->y_cr_offset = obj_surface->height;
obj_surface->y_cb_offset = obj_surface->height + obj_surface->height / 4;