[Libva] [Libva-intel-driver PATCH 16/25] Rendering/SKL: Update the 3DSTATE_SBE command for 3D pipeline

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


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

This is based on the hardware spec.

Signed-off-by: Zhao Yakui <yakui.zhao at intel.com>
---
 src/gen9_render.c  | 6 ++++--
 src/i965_defines.h | 5 +++++
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/src/gen9_render.c b/src/gen9_render.c
index bfcb0d3..a6ea612 100644
--- a/src/gen9_render.c
+++ b/src/gen9_render.c
@@ -1337,8 +1337,8 @@ gen9_emit_sf_state(VADriverContextP ctx)
     ADVANCE_BATCH(batch);
 
 
-    BEGIN_BATCH(batch, 4);
-    OUT_BATCH(batch, GEN7_3DSTATE_SBE | (4 - 2));
+    BEGIN_BATCH(batch, 6);
+    OUT_BATCH(batch, GEN7_3DSTATE_SBE | (6 - 2));
     OUT_BATCH(batch,
 	      (GEN8_SBE_FORCE_URB_ENTRY_READ_LENGTH) |
 	      (GEN8_SBE_FORCE_URB_ENTRY_READ_OFFSET) |
@@ -1347,6 +1347,8 @@ gen9_emit_sf_state(VADriverContextP ctx)
               (1 << GEN8_SBE_URB_ENTRY_READ_OFFSET_SHIFT));
     OUT_BATCH(batch, 0);
     OUT_BATCH(batch, 0);
+    OUT_BATCH(batch, GEN9_SBE_ACTIVE_COMPONENT_XYZW);
+    OUT_BATCH(batch, 0);
     ADVANCE_BATCH(batch);
 
     /* SBE for backend setup */
diff --git a/src/i965_defines.h b/src/i965_defines.h
index 8cb94ff..4fa929a 100755
--- a/src/i965_defines.h
+++ b/src/i965_defines.h
@@ -859,4 +859,9 @@
 #define GEN9_MEDIA_DOP_GATE_ON              (1 << 4)
 #define GEN9_MEDIA_DOP_GATE_OFF             (0 << 4)
 
+#define GEN9_SBE_ACTIVE_COMPONENT_NONE          0
+#define GEN9_SBE_ACTIVE_COMPONENT_XY            1
+#define GEN9_SBE_ACTIVE_COMPONENT_XYZ           2
+#define GEN9_SBE_ACTIVE_COMPONENT_XYZW          3
+
 #endif /* _I965_DEFINES_H_ */
-- 
1.9.1



More information about the Libva mailing list