Commit b0b7aaae authored by Xiang, Haihao's avatar Xiang, Haihao

i965_drv_video: Fixes the dimension of a surface on SandyBridge

Signed-off-by: default avatarXiang, Haihao <haihao.xiang@intel.com>
parent 8eac5719
...@@ -437,7 +437,7 @@ i965_CreateSurfaces(VADriverContextP ctx, ...@@ -437,7 +437,7 @@ i965_CreateSurfaces(VADriverContextP ctx,
obj_surface->orig_width = width; obj_surface->orig_width = width;
obj_surface->orig_height = height; 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->width = ALIGN(obj_surface->orig_width, 128);
obj_surface->height = ALIGN(obj_surface->orig_height, 32); obj_surface->height = ALIGN(obj_surface->orig_height, 32);
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment