summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiang, Haihao <haihao.xiang@intel.com>2013-09-29 13:16:29 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2013-11-13 15:28:22 +0800
commitf29cbb7e5ea5b92d2bc8de2c7237a7c5704b0cc1 (patch)
tree0caf86672abdbc1451d6a09c28c1cdb182d17d6c
parentc68c6a0c57555acc1e3aa3f4320d1254f45bdc21 (diff)
downloadlibva-intel-driver-f29cbb7e5ea5b92d2bc8de2c7237a7c5704b0cc1.tar.gz
libva-intel-driver-f29cbb7e5ea5b92d2bc8de2c7237a7c5704b0cc1.tar.bz2
libva-intel-driver-f29cbb7e5ea5b92d2bc8de2c7237a7c5704b0cc1.zip
Fix the reference for list1
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com> (cherry picked from commit a45edbef143808ee925ef7708c516e6df21fa36b)
-rw-r--r--src/gen6_vme.c3
-rw-r--r--src/gen75_vme.c3
-rw-r--r--src/gen7_vme.c3
3 files changed, 3 insertions, 6 deletions
diff --git a/src/gen6_vme.c b/src/gen6_vme.c
index 1345466..e1403d2 100644
--- a/src/gen6_vme.c
+++ b/src/gen6_vme.c
@@ -245,10 +245,9 @@ gen6_vme_surface_setup(VADriverContextP ctx,
if (slice_obj_surface && slice_obj_surface->bo) {
obj_surface = slice_obj_surface;
} else {
- obj_surface = encode_state->reference_objects[0];
+ obj_surface = encode_state->reference_objects[1];
}
- obj_surface = encode_state->reference_objects[1];
if (obj_surface && obj_surface->bo)
gen6_vme_source_surface_state(ctx, 2, obj_surface, encoder_context);
}
diff --git a/src/gen75_vme.c b/src/gen75_vme.c
index e9ddf0b..b1596fa 100644
--- a/src/gen75_vme.c
+++ b/src/gen75_vme.c
@@ -306,10 +306,9 @@ gen75_vme_surface_setup(VADriverContextP ctx,
if (slice_obj_surface && slice_obj_surface->bo) {
obj_surface = slice_obj_surface;
} else {
- obj_surface = encode_state->reference_objects[0];
+ obj_surface = encode_state->reference_objects[1];
}
- obj_surface = encode_state->reference_objects[1];
if (obj_surface && obj_surface->bo)
gen75_vme_source_surface_state(ctx, 2, obj_surface, encoder_context);
}
diff --git a/src/gen7_vme.c b/src/gen7_vme.c
index 2f167ab..8594b0f 100644
--- a/src/gen7_vme.c
+++ b/src/gen7_vme.c
@@ -291,10 +291,9 @@ gen7_vme_surface_setup(VADriverContextP ctx,
if (slice_obj_surface && slice_obj_surface->bo) {
obj_surface = slice_obj_surface;
} else {
- obj_surface = encode_state->reference_objects[0];
+ obj_surface = encode_state->reference_objects[1];
}
- obj_surface = encode_state->reference_objects[1];
if (obj_surface && obj_surface->bo)
gen7_vme_source_surface_state(ctx, 2, obj_surface, encoder_context);
}