From aad1c493fbea72510d909bd012414239e0229fda Mon Sep 17 00:00:00 2001 From: "Xiang, Haihao" Date: Thu, 8 Apr 2010 15:46:16 +0800 Subject: [PATCH] i965_drv_video: surface width/height is 16Btye aligned. --- i965_drv_video/i965_drv_video.c | 6 +++--- 1 file 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, -- 2.7.4