diff options
author | Xiang, Haihao <haihao.xiang@intel.com> | 2010-04-08 15:46:16 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2010-04-08 15:52:11 +0800 |
commit | aad1c493fbea72510d909bd012414239e0229fda (patch) | |
tree | 360343e7d62683db714a9d327fe281052b1ad83c | |
parent | 0f6802397d6e1ad6543d72a90c11558d2ff7dcfe (diff) |
i965_drv_video: surface width/height is 16Btye aligned.
-rw-r--r-- | i965_drv_video/i965_drv_video.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/i965_drv_video/i965_drv_video.c b/i965_drv_video/i965_drv_video.c index c902834..6ec4392 100644 --- a/i965_drv_video/i965_drv_video.c +++ b/i965_drv_video/i965_drv_video.c @@ -364,9 +364,9 @@ i965_CreateSurfaces(VADriverContextP ctx, surfaces[i] = surfaceID; obj_surface->status = VASurfaceReady; obj_surface->subpic = VA_INVALID_ID; - obj_surface->width = width; - obj_surface->height = height; - obj_surface->size = SIZE_YUV420(width, height); + obj_surface->width = ALIGN(width, 16); + obj_surface->height = ALIGN(height, 16); + obj_surface->size = SIZE_YUV420(obj_surface->width, obj_surface->height); obj_surface->bo = dri_bo_alloc(i965->intel.bufmgr, "vaapi surface", obj_surface->size, |