VEBOX: Fix image garbage at border when pro amp
authorLi Xiaowei <xiaowei.a.li@intel.com>
Wed, 19 Jun 2013 18:07:48 +0000 (02:07 +0800)
committerLi Xiaowei <xiaowei.a.li@intel.com>
Thu, 20 Jun 2013 09:11:05 +0000 (17:11 +0800)
Aligned width/height are required to be registered
to surface state, instead of original width/height

Signed-off-by: Li Xiaowei <xiaowei.a.li@intel.com>
src/gen75_vpp_vebox.c

index cb04fde..191a96f 100644 (file)
@@ -608,9 +608,9 @@ void hsw_veb_surface_state(VADriverContextP ctx, struct intel_vebox_context *pro
                   is_output);      // surface indentification.
 
     OUT_VEB_BATCH(batch,
-                  (proc_ctx->height_input - 1) << 18 |  // height . w3
-                  (proc_ctx->width_input) << 4  |       // width
-                  0);                                   // reserve
+                  (obj_surf->height - 1) << 18 |  // height . w3
+                  (obj_surf->width -1 )  << 4  |  // width
+                  0);                             // reserve
 
     OUT_VEB_BATCH(batch,
                   surface_format      << 28  |  // surface format, YCbCr420. w4