Set render surface alignment on BDW
authorZhao Yakui <yakui.zhao@intel.com>
Fri, 1 Mar 2013 02:38:14 +0000 (10:38 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Thu, 27 Feb 2014 02:04:12 +0000 (10:04 +0800)
This is the requirement per B-spec.

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

index 0235659..b1714a6 100644 (file)
@@ -916,6 +916,10 @@ gen8_render_set_surface_state(
 
     ss->ss3.pitch = pitch - 1;
 
+    /* Always set 1(align 4 mode) per B-spec */
+    ss->ss0.vertical_alignment = 1;
+    ss->ss0.horizontal_alignment = 1;
+
     dri_bo_get_tiling(bo, &tiling, &swizzle);
     gen8_render_set_surface_tiling(ss, tiling);
 }