diff options
author | Xiang, Haihao <haihao.xiang@intel.com> | 2010-11-09 13:30:39 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2010-12-06 12:50:04 +0800 |
commit | 24701e5083649539d6a57f8d8aa0ec916eaf27c8 (patch) | |
tree | 96bec6e9b53355ba04bae0c21f6d78e27de9c4a6 | |
parent | 0ef92974a7b99b5b382aa08fbdad7210fb9bb4ab (diff) | |
download | libva-24701e5083649539d6a57f8d8aa0ec916eaf27c8.tar.gz |
i965_drv_video: fix surface dimension
It is needed for Y-tiled surface
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
-rw-r--r-- | i965_drv_video/i965_drv_video.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/i965_drv_video/i965_drv_video.c b/i965_drv_video/i965_drv_video.c index b617684..b9c5ce3 100644 --- a/i965_drv_video/i965_drv_video.c +++ b/i965_drv_video/i965_drv_video.c @@ -417,8 +417,8 @@ 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, 16); - obj_surface->height = ALIGN(obj_surface->orig_height, 16); + obj_surface->width = ALIGN(obj_surface->orig_width, 128); + obj_surface->height = ALIGN(obj_surface->orig_height, 32); obj_surface->size = SIZE_YUV420(obj_surface->width, obj_surface->height); obj_surface->flags = SURFACE_REFERENCED; obj_surface->bo = NULL; |