From: Xiang, Haihao Date: Fri, 11 Mar 2011 04:54:47 +0000 (+0800) Subject: i965_drv_video: Fixes the dimension of a surface on SandyBridge X-Git-Tag: 1.0_branch~303 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=16f37687dfa3c4a3edde70a7cdacffa7b3b8d87e;p=profile%2Fivi%2Fvaapi-intel-driver.git i965_drv_video: Fixes the dimension of a surface on SandyBridge Signed-off-by: Xiang, Haihao --- diff --git a/i965_drv_video.c b/i965_drv_video.c index 6e00239..31f19dd 100644 --- a/i965_drv_video.c +++ b/i965_drv_video.c @@ -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 {