[Libva] [PATCH 5/8 965 driver] fallback to sw in i965_PutImage when fourcc are same

Zhao Halley halley.zhao at intel.com
Tue Jun 26 00:32:01 PDT 2012


---
 src/i965_drv_video.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/i965_drv_video.c b/src/i965_drv_video.c
index fdf517b..903b853 100755
--- a/src/i965_drv_video.c
+++ b/src/i965_drv_video.c
@@ -3152,8 +3152,10 @@ i965_PutImage(VADriverContextP ctx,
 {
     struct i965_driver_data *i965 = i965_driver_data(ctx);
     VAStatus va_status = VA_STATUS_SUCCESS;
+    struct object_surface *obj_surface = SURFACE(surface);
+    struct object_image *obj_image = IMAGE(image);
 
-    if (HAS_ACCELERATED_PUTIMAGE(i965))
+    if (HAS_ACCELERATED_PUTIMAGE(i965) && obj_image->image.format.fourcc != obj_surface->fourcc)
         va_status = i965_hw_putimage(ctx,
                                      surface,
                                      image,
-- 
1.7.4.1



More information about the Libva mailing list