From: Zhao Yakui <yakui.z...@intel.com>

Signed-off-by: Zhao Yakui <yakui.z...@intel.com>
Signed-off-by: Ben Widawsky <benjamin.widaw...@intel.com>
Signed-off-by: Damien Lespiau <damien.lesp...@intel.com>
---
 lib/gen8_media.h      | 3 +++
 lib/media_fill_gen9.c | 3 ++-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/lib/gen8_media.h b/lib/gen8_media.h
index 1214cd1..d1df8b9 100644
--- a/lib/gen8_media.h
+++ b/lib/gen8_media.h
@@ -371,4 +371,7 @@ struct gen8_surface_state
        } ss15;
 };
 
+
+#define GEN9_PIPELINE_SELECTION_MASK           (3 << 8)
+
 #endif /* GEN8_MEDIA_H */
diff --git a/lib/media_fill_gen9.c b/lib/media_fill_gen9.c
index a067221..df0407d 100644
--- a/lib/media_fill_gen9.c
+++ b/lib/media_fill_gen9.c
@@ -362,7 +362,8 @@ gen9_media_fillfunc(struct intel_batchbuffer *batch,
 
        /* media pipeline */
        batch->ptr = batch->buffer;
-       OUT_BATCH(GEN8_PIPELINE_SELECT | PIPELINE_SELECT_MEDIA);
+       OUT_BATCH(GEN8_PIPELINE_SELECT | PIPELINE_SELECT_MEDIA |
+                       GEN9_PIPELINE_SELECTION_MASK);
        gen9_emit_state_base_address(batch);
 
        gen8_emit_vfe_state(batch);
-- 
1.8.3.1

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to