Use the horizontal/vertical alignment for VPP surface on BDW
authorZhao Yakui <yakui.zhao@intel.com>
Tue, 16 Apr 2013 05:57:51 +0000 (13:57 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Thu, 27 Feb 2014 02:17:02 +0000 (10:17 +0800)
This is hardware requirement.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
src/i965_post_processing.c

index d0e4789..c329600 100755 (executable)
@@ -2011,6 +2011,11 @@ gen8_pp_set_surface_state(VADriverContextP ctx, struct i965_post_processing_cont
     ss->ss2.width = width - 1;
     ss->ss2.height = height - 1;
     ss->ss3.pitch = pitch - 1;
+
+    /* Always set 1(align 4 mode) per B-spec */
+    ss->ss0.vertical_alignment = 1;
+    ss->ss0.horizontal_alignment = 1;
+
     gen8_pp_set_surface_tiling(ss, tiling);
     gen8_render_set_surface_scs(ss);
     dri_bo_emit_reloc(ss_bo,