From: Xiang, Haihao Date: Fri, 11 Mar 2011 03:10:48 +0000 (+0800) Subject: i965_drv_video: only use tiled surface for NV12 on SandyBridge X-Git-Tag: libva-1.0.11~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c91f72c806577f8437ef5d02e21bd5443a2c9c32;p=profile%2Fivi%2Flibva.git i965_drv_video: only use tiled surface for NV12 on SandyBridge Signed-off-by: Xiang, Haihao --- diff --git a/i965_drv_video/i965_drv_video.c b/i965_drv_video/i965_drv_video.c index 2fc2378..6e00239 100644 --- a/i965_drv_video/i965_drv_video.c +++ b/i965_drv_video/i965_drv_video.c @@ -59,7 +59,8 @@ #define HAS_VC1(ctx) (IS_GEN6((ctx)->intel.device_id) && (ctx)->intel.has_bsd) -#define HAS_TILED_SURFACE(ctx) (IS_GEN6((ctx)->intel.device_id)) +#define HAS_TILED_SURFACE(ctx) (IS_GEN6((ctx)->intel.device_id) && \ + (ctx)->render_state.interleaved_uv) enum { I965_SURFACETYPE_RGBA = 1, @@ -436,7 +437,7 @@ i965_CreateSurfaces(VADriverContextP ctx, obj_surface->orig_width = width; obj_surface->orig_height = height; - if (IS_GEN6(i965->intel.device_id)) { + if (HAS_TILED_SURFACE(i965)) { obj_surface->width = ALIGN(obj_surface->orig_width, 128); obj_surface->height = ALIGN(obj_surface->orig_height, 32); } else {