summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiang, Haihao <haihao.xiang@intel.com>2011-03-11 12:54:47 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2011-03-11 13:13:10 +0800
commitb0b7aaae0a9e8ae8a3dc586e150a7d31a3a47218 (patch)
treee026cffdf1b7a900d37d12a7ef7df81ae08d6896
parent8eac571934b59512258d735bb2d59b1100120f9e (diff)
downloadlibva-b0b7aaae0a9e8ae8a3dc586e150a7d31a3a47218.tar.gz
i965_drv_video: Fixes the dimension of a surface on SandyBridge
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
-rw-r--r--i965_drv_video/i965_drv_video.c2
1 files changed, 1 insertions, 1 deletions
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 {