diff options
author | Xiang, Haihao <haihao.xiang@intel.com> | 2010-11-10 10:48:12 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2010-12-06 12:50:05 +0800 |
commit | 9c534ca92252906562434db324563672e7aee5c4 (patch) | |
tree | d4f62d711f6c643402a17c557a067e7cc08e92fa /i965_drv_video | |
parent | a6f89af4d9cbda069a539fe8294f4bd10f3c4be7 (diff) |
i965_drv_video: Currently only use tiled-Y surfaces on Sandybridge
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Diffstat (limited to 'i965_drv_video')
-rw-r--r-- | i965_drv_video/i965_drv_video.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/i965_drv_video/i965_drv_video.c b/i965_drv_video/i965_drv_video.c index b9c5ce3..f0466ad 100644 --- a/i965_drv_video/i965_drv_video.c +++ b/i965_drv_video/i965_drv_video.c @@ -417,8 +417,15 @@ i965_CreateSurfaces(VADriverContextP ctx, obj_surface->subpic = VA_INVALID_ID; obj_surface->orig_width = width; obj_surface->orig_height = height; - obj_surface->width = ALIGN(obj_surface->orig_width, 128); - obj_surface->height = ALIGN(obj_surface->orig_height, 32); + + 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 { + obj_surface->width = ALIGN(obj_surface->orig_width, 16); + obj_surface->height = ALIGN(obj_surface->orig_height, 16); + } + obj_surface->size = SIZE_YUV420(obj_surface->width, obj_surface->height); obj_surface->flags = SURFACE_REFERENCED; obj_surface->bo = NULL; |