Commit c91f72c8 authored by Xiang, Haihao's avatar Xiang, Haihao

i965_drv_video: only use tiled surface for NV12 on SandyBridge

Signed-off-by: default avatarXiang, Haihao <haihao.xiang@intel.com>
parent 79172c79
...@@ -59,7 +59,8 @@ ...@@ -59,7 +59,8 @@
#define HAS_VC1(ctx) (IS_GEN6((ctx)->intel.device_id) && (ctx)->intel.has_bsd) #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 { enum {
I965_SURFACETYPE_RGBA = 1, I965_SURFACETYPE_RGBA = 1,
...@@ -436,7 +437,7 @@ i965_CreateSurfaces(VADriverContextP ctx, ...@@ -436,7 +437,7 @@ i965_CreateSurfaces(VADriverContextP ctx,
obj_surface->orig_width = width; obj_surface->orig_width = width;
obj_surface->orig_height = height; 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->width = ALIGN(obj_surface->orig_width, 128);
obj_surface->height = ALIGN(obj_surface->orig_height, 32); obj_surface->height = ALIGN(obj_surface->orig_height, 32);
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment