• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

hardware/intel/intel-driver


Commit MetaInfo

Revisãoce682a73e2a248f1feae2d0aad8644afab4f0df6 (tree)
Hora2015-01-14 12:03:37
AutorJoe Konno <joe.konno@inte...>
CommiterZhao, Yakui

Mensagem de Log

BDW+: disable SGVS

BDW introduces separate packets for controlling instancing and system
generated values (eg vertex id and instance id). We don't use
instancing, but still need to disable sgvs to avoid undefined behaviour
when some other driver (mesa) uses it.

Signed-off-by: Joe Konno <joe.konno@intel.com>
Signed-off-by: Kristian Høgsberg <krh@bitplanet.net>
Reviewed-by: Daniel Charles <daniel.charles@intel.com>
(cherry picked from commit 4caa37b895d39af754e2b2307879752130731f56)

Mudança Sumário

Diff

--- a/src/gen8_render.c
+++ b/src/gen8_render.c
@@ -1001,6 +1001,10 @@ gen8_emit_vertex_element_state(VADriverContextP ctx)
10011001 OUT_BATCH(batch, i);
10021002 OUT_BATCH(batch, 0);
10031003 }
1004+
1005+ /* Disable system-generated values. */
1006+ OUT_BATCH(batch, GEN8_3DSTATE_VF_SGVS | (2 - 2));
1007+ OUT_BATCH(batch, 0);
10041008 }
10051009
10061010 static void
--- a/src/gen9_render.c
+++ b/src/gen9_render.c
@@ -936,6 +936,9 @@ gen9_emit_vertices(VADriverContextP ctx)
936936 OUT_BATCH(batch, 0);
937937 OUT_BATCH(batch, 0);
938938
939+ OUT_BATCH(batch, GEN8_3DSTATE_VF_SGVS | (2 - 2));
940+ OUT_BATCH(batch, 0);
941+
939942 BEGIN_BATCH(batch, 7);
940943 OUT_BATCH(batch, CMD_3DPRIMITIVE | (7 - 2));
941944 OUT_BATCH(batch,
--- a/src/i965_defines.h
+++ b/src/i965_defines.h
@@ -746,6 +746,8 @@
746746 #define _3DPRIM_LINESTRIP_CONT_BF 0x14
747747 #define _3DPRIM_TRIFAN_NOSTIPPLE 0x15
748748
749+#define GEN8_3DSTATE_VF_INSTANCING CMD(3, 0, 0x49)
750+#define GEN8_3DSTATE_VF_SGVS CMD(3, 0, 0x4a)
749751 #define GEN8_3DSTATE_VF_TOPOLOGY CMD(3, 0, 0x4b)
750752
751753 #define I965_TILEWALK_XMAJOR 0