i965_drv_video: associate the derived image with the surface
authorXiang, Haihao <haihao.xiang@intel.com>
Mon, 11 Apr 2011 01:04:37 +0000 (09:04 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Mon, 11 Apr 2011 01:12:16 +0000 (09:12 +0800)
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
i965_drv_video/i965_drv_video.c

index 4a7397f..b325ce6 100644 (file)
@@ -1638,6 +1638,7 @@ VAStatus i965_DeriveImage(VADriverContextP ctx,
 
     *out_image = *image;
     obj_surface->flags |= SURFACE_DERIVED;
+    obj_image->derived_surface = surface;
 
     return VA_STATUS_SUCCESS;