[Libva] [Libva-intel-driver PATCH 19/25] SKL: Set the 3DSTATE_VF/3DSTATE_VF_INSTANCING

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


To ensure the "Component Packing Enable" bit is set to 0

Signed-off-by: Xiang, Haihao <haihao.xiang at intel.com>
Acked-by: Zhao Yakui <yakui.zhao at intel.com>
---
 src/gen9_render.c  | 7 +++++++
 src/i965_defines.h | 3 +++
 2 files changed, 10 insertions(+)

diff --git a/src/gen9_render.c b/src/gen9_render.c
index 62759e6..7723bc8 100644
--- a/src/gen9_render.c
+++ b/src/gen9_render.c
@@ -929,6 +929,13 @@ gen9_emit_vertices(VADriverContextP ctx)
               _3DPRIM_RECTLIST);
     ADVANCE_BATCH(batch);
 
+    OUT_BATCH(batch, GEN7_3DSTATE_VF | (2 - 2));
+    OUT_BATCH(batch, 0);
+
+    OUT_BATCH(batch, GEN8_3DSTATE_VF_INSTANCING | (3 - 2));
+    OUT_BATCH(batch, 0);
+    OUT_BATCH(batch, 0);
+
     BEGIN_BATCH(batch, 7);
     OUT_BATCH(batch, CMD_3DPRIMITIVE | (7 - 2));
     OUT_BATCH(batch,
diff --git a/src/i965_defines.h b/src/i965_defines.h
index 4fa929a..4b19119 100755
--- a/src/i965_defines.h
+++ b/src/i965_defines.h
@@ -327,6 +327,9 @@
 #define GEN7_3DSTATE_SAMPLER_STATE_POINTERS_HS          CMD(3, 0, 0x2c)
 #define GEN7_3DSTATE_SAMPLER_STATE_POINTERS_DS          CMD(3, 0, 0x2d)
 
+#define GEN7_3DSTATE_VF                                 CMD(3, 0, 0x0c)
+#define GEN8_3DSTATE_VF_INSTANCING                      CMD(3, 0, 0x49)
+
 #define MFX(pipeline, op, sub_opa, sub_opb)     \
     (3 << 29 |                                  \
      (pipeline) << 27 |                         \
-- 
1.9.1



More information about the Libva mailing list