i965_drv_video: Fixes the dimension of a surface on SandyBridge
authorXiang, Haihao <haihao.xiang@intel.com>
Fri, 11 Mar 2011 04:54:47 +0000 (12:54 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Fri, 11 Mar 2011 05:13:10 +0000 (13:13 +0800)
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
i965_drv_video/i965_drv_video.c

index 6e00239..31f19dd 100644 (file)
@@ -437,7 +437,7 @@ i965_CreateSurfaces(VADriverContextP ctx,
         obj_surface->orig_width = width;
         obj_surface->orig_height = height;
 
-        if (HAS_TILED_SURFACE(i965)) {
+        if (IS_GEN6(i965->intel.device_id)) {
             obj_surface->width = ALIGN(obj_surface->orig_width, 128);
             obj_surface->height = ALIGN(obj_surface->orig_height, 32);
         } else {