summaryrefslogtreecommitdiff
path: root/src/gen9_mfd.c
diff options
context:
space:
mode:
authorXiang, Haihao <haihao.xiang@intel.com>2014-06-19 23:23:30 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2014-12-14 00:42:17 +0800
commit6dc5b8bc2ba06e2dc48ee1277c250ca579058d21 (patch)
tree39ac1d401ad53a9fd443468d9151386be0510e41 /src/gen9_mfd.c
parentd19b00df1c9cc6eb31ceb466a07ba23ae6b4cc43 (diff)
HEVC: Add the frame store array
The function to update the frame store index will be added later Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com> (cherry picked from commit e758dcb38b37773df7253bc2ea7910adaf31258d)
Diffstat (limited to 'src/gen9_mfd.c')
-rw-r--r--src/gen9_mfd.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gen9_mfd.c b/src/gen9_mfd.c
index 0cd6a56..44e9c8f 100644
--- a/src/gen9_mfd.c
+++ b/src/gen9_mfd.c
@@ -253,6 +253,7 @@ gen9_hcpd_context_init(VADriverContextP ctx, struct object_config *object_config
{
struct intel_driver_data *intel = intel_driver_data(ctx);
struct gen9_hcpd_context *gen9_hcpd_context = calloc(1, sizeof(struct gen9_hcpd_context));
+ int i;
if (!gen9_hcpd_context)
return NULL;
@@ -261,6 +262,12 @@ gen9_hcpd_context_init(VADriverContextP ctx, struct object_config *object_config
gen9_hcpd_context->base.run = gen9_hcpd_decode_picture;
gen9_hcpd_context->base.batch = intel_batchbuffer_new(intel, I915_EXEC_VEBOX, 0);
+ for (i = 0; i < ARRAY_ELEMS(gen9_hcpd_context->reference_surfaces); i++) {
+ gen9_hcpd_context->reference_surfaces[i].surface_id = VA_INVALID_ID;
+ gen9_hcpd_context->reference_surfaces[i].frame_store_id = -1;
+ gen9_hcpd_context->reference_surfaces[i].obj_surface = NULL;
+ }
+
return (struct hw_context *)gen9_hcpd_context;
}