The surface and image have the same fourcc now, it is unnecessary to check
it is interleaved.

Signed-off-by: Xiang, Haihao <haihao.xi...@intel.com>
---
 src/i965_drv_video.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/src/i965_drv_video.c b/src/i965_drv_video.c
index 8724125..d6beb8f 100644
--- a/src/i965_drv_video.c
+++ b/src/i965_drv_video.c
@@ -3976,15 +3976,9 @@ i965_sw_getimage(VADriverContextP ctx,
     switch (obj_image->image.format.fourcc) {
     case VA_FOURCC_YV12:
     case VA_FOURCC_I420:
-        /* I420 is native format for MPEG-2 decoded surfaces */
-        if (render_state->interleaved_uv)
-            goto operation_failed;
         get_image_i420(obj_image, image_data, obj_surface, rect);
         break;
     case VA_FOURCC_NV12:
-        /* NV12 is native format for H.264 decoded surfaces */
-        if (!render_state->interleaved_uv)
-            goto operation_failed;
         get_image_nv12(obj_image, image_data, obj_surface, rect);
         break;
     case VA_FOURCC_YUY2:
-- 
1.9.1

_______________________________________________
Libva mailing list
Libva@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libva

Reply via email to