summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLim Siew Hoon <siew.hoon.lim@intel.com>2015-09-09 10:10:58 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2015-09-09 12:42:14 +0800
commit6f2ea35f5caaf39e81617e7087f20f4885b51985 (patch)
tree39d156039b1e3b5634b99a034d86c063b6419b91 /src
parent2d42512bd6b7382c5effe21a5f9999742d98db88 (diff)
downloadlibva-intel-driver-6f2ea35f5caaf39e81617e7087f20f4885b51985.tar.gz
Fix if issue of SLICE_TYPE_I statement in vme_pipeline_programing
Signed-off-by: Lim Siew Hoon <siew.hoon.lim@intel.com> Reviewed-by: Zhao, Yakui <yakui.zhao@intel.com>
Diffstat (limited to 'src')
-rw-r--r--src/gen75_vme.c2
-rw-r--r--src/gen7_vme.c2
-rw-r--r--src/gen8_vme.c2
-rw-r--r--src/gen9_vme.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/gen75_vme.c b/src/gen75_vme.c
index 0b8855d1..a85d6b3e 100644
--- a/src/gen75_vme.c
+++ b/src/gen75_vme.c
@@ -593,7 +593,7 @@ static void gen75_vme_pipeline_programing(VADriverContextP ctx,
}
if ((pSliceParameter->slice_type == SLICE_TYPE_I) ||
- (pSliceParameter->slice_type == SLICE_TYPE_I)) {
+ (pSliceParameter->slice_type == SLICE_TYPE_SI)) {
kernel_shader = VME_INTRA_SHADER;
} else if ((pSliceParameter->slice_type == SLICE_TYPE_P) ||
(pSliceParameter->slice_type == SLICE_TYPE_SP)) {
diff --git a/src/gen7_vme.c b/src/gen7_vme.c
index 7b116adc..156e0d3c 100644
--- a/src/gen7_vme.c
+++ b/src/gen7_vme.c
@@ -615,7 +615,7 @@ static void gen7_vme_pipeline_programing(VADriverContextP ctx,
}
if ((pSliceParameter->slice_type == SLICE_TYPE_I) ||
- (pSliceParameter->slice_type == SLICE_TYPE_I)) {
+ (pSliceParameter->slice_type == SLICE_TYPE_SI)) {
kernel_shader = AVC_VME_INTRA_SHADER;
} else if ((pSliceParameter->slice_type == SLICE_TYPE_P) ||
(pSliceParameter->slice_type == SLICE_TYPE_SP)) {
diff --git a/src/gen8_vme.c b/src/gen8_vme.c
index 5dd502c8..edf6060c 100644
--- a/src/gen8_vme.c
+++ b/src/gen8_vme.c
@@ -666,7 +666,7 @@ static void gen8_vme_pipeline_programing(VADriverContextP ctx,
}
if ((pSliceParameter->slice_type == SLICE_TYPE_I) ||
- (pSliceParameter->slice_type == SLICE_TYPE_I)) {
+ (pSliceParameter->slice_type == SLICE_TYPE_SI)) {
kernel_shader = VME_INTRA_SHADER;
} else if ((pSliceParameter->slice_type == SLICE_TYPE_P) ||
(pSliceParameter->slice_type == SLICE_TYPE_SP)) {
diff --git a/src/gen9_vme.c b/src/gen9_vme.c
index 736b13a3..5f9b796b 100644
--- a/src/gen9_vme.c
+++ b/src/gen9_vme.c
@@ -710,7 +710,7 @@ static void gen9_vme_pipeline_programing(VADriverContextP ctx,
}
if ((pSliceParameter->slice_type == SLICE_TYPE_I) ||
- (pSliceParameter->slice_type == SLICE_TYPE_I)) {
+ (pSliceParameter->slice_type == SLICE_TYPE_SI)) {
kernel_shader = VME_INTRA_SHADER;
} else if ((pSliceParameter->slice_type == SLICE_TYPE_P) ||
(pSliceParameter->slice_type == SLICE_TYPE_SP)) {