[Libva] [PATCH Intel-VA] Fix if issue of SLICE_TYPE_I statement in vme_pipeline_programing

Lim Siew Hoon siew.hoon.lim at intel.com
Tue Sep 8 19:10:58 PDT 2015


Signed-off-by: Lim Siew Hoon <siew.hoon.lim at intel.com>
Reviewed-by: Zhao, Yakui <yakui.zhao at intel.com>
---
 src/gen75_vme.c | 2 +-
 src/gen7_vme.c  | 2 +-
 src/gen8_vme.c  | 2 +-
 src/gen9_vme.c  | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/gen75_vme.c b/src/gen75_vme.c
index 0b8855d..a85d6b3 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 7b116ad..156e0d3 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 5dd502c..edf6060 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 736b13a..5f9b796 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)) {
-- 
2.1.0



More information about the Libva mailing list