summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorXiang, Haihao <haihao.xiang@intel.com>2013-09-13 10:12:53 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2013-09-23 10:44:07 +0800
commit944b61f7e9e8c7026cd59fb28583ea36535c48f4 (patch)
treea1fc32d31d4a484a9cef6068b0eda98963fba7b8 /src
parentd2512dededcc45e27957b597a9379450aa755cab (diff)
VPP: track the frame sequence for DI on IVB
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com> (cherry picked from commit c008b4222d593594330fbb087204ff53722f9765)
Diffstat (limited to 'src')
-rwxr-xr-xsrc/i965_post_processing.c3
-rwxr-xr-xsrc/i965_post_processing.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/src/i965_post_processing.c b/src/i965_post_processing.c
index 4bd0a4b..c3dc953 100755
--- a/src/i965_post_processing.c
+++ b/src/i965_post_processing.c
@@ -3782,6 +3782,8 @@ gen7_pp_nv12_dndi_initialize(VADriverContextP ctx, struct i965_post_processing_c
dst_surface->flags = I965_SURFACE_FLAG_FRAME;
+ pp_dndi_context->frame_order = (pp_dndi_context->frame_order + 1) % 2;
+
return VA_STATUS_SUCCESS;
}
@@ -5350,6 +5352,7 @@ i965_post_processing_context_init(VADriverContextP ctx,
pp_context->pp_inline_parameter = calloc(sizeof(struct pp_inline_parameter), 1);
}
+ pp_context->pp_dndi_context.frame_order = -1;
pp_context->batch = batch;
}
diff --git a/src/i965_post_processing.h b/src/i965_post_processing.h
index fbe684c..052b573 100755
--- a/src/i965_post_processing.h
+++ b/src/i965_post_processing.h
@@ -95,6 +95,7 @@ struct pp_dndi_context
int dest_w;
int dest_h;
dri_bo *stmm_bo;
+ int frame_order; /* -1 for the first frame */
};
struct pp_dn_context