From b0b7aaae0a9e8ae8a3dc586e150a7d31a3a47218 Mon Sep 17 00:00:00 2001 From: "Xiang, Haihao" Date: Fri, 11 Mar 2011 12:54:47 +0800 Subject: [PATCH] i965_drv_video: Fixes the dimension of a surface on SandyBridge Signed-off-by: Xiang, Haihao --- i965_drv_video/i965_drv_video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i965_drv_video/i965_drv_video.c b/i965_drv_video/i965_drv_video.c index 6e00239..31f19dd 100644 --- a/i965_drv_video/i965_drv_video.c +++ b/i965_drv_video/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 { -- 2.7.4