diff options
author | Xiang, Haihao <haihao.xiang@intel.com> | 2011-03-11 12:54:47 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2011-03-11 13:13:10 +0800 |
commit | 16f37687dfa3c4a3edde70a7cdacffa7b3b8d87e (patch) | |
tree | 246f6aea03cefa54023aba1b6dd203dc53195b54 | |
parent | f53201e2665597ea3f691dd694f18b2a11b9fbf9 (diff) |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |