[Libva] [Libva-intel-driver PATCH 05/25] Skl: Flush batch buffer like that on Gen8

Xiang, Haihao haihao.xiang at intel.com
Mon Nov 17 20:45:11 PST 2014


From: Zhao Yakui <yakui.zhao at intel.com>

Signed-off-by: Zhao Yakui <yakui.zhao at intel.com>
Signed-off-by: Xiang, Haihao <haihao.xiang at intel.com>
---
 src/intel_batchbuffer.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/intel_batchbuffer.c b/src/intel_batchbuffer.c
index c6d3769..37755e5 100644
--- a/src/intel_batchbuffer.c
+++ b/src/intel_batchbuffer.c
@@ -185,9 +185,10 @@ intel_batchbuffer_emit_mi_flush(struct intel_batchbuffer *batch)
 
     if (IS_GEN6(intel->device_info) ||
         IS_GEN7(intel->device_info) ||
-        IS_GEN8(intel->device_info)) {
+        IS_GEN8(intel->device_info) ||
+        IS_GEN9(intel->device_info)) {
         if (batch->flag == I915_EXEC_RENDER) {
-            if (IS_GEN8(intel->device_info)) {
+            if (IS_GEN8(intel->device_info) || IS_GEN9(intel->device_info)) {
                 BEGIN_BATCH(batch, 6);
                 OUT_BATCH(batch, CMD_PIPE_CONTROL | (6 - 2));
 
-- 
1.9.1



More information about the Libva mailing list