This is to ensure the "Component Packing Enable" bit is set to 0. Signed-off-by: Damien Lespiau <damien.lespiau@xxxxxxxxx> Signed-off-by: Ben Widawsky <benjamin.widawsky@xxxxxxxxx> --- lib/gen9_render.h | 1 + lib/rendercopy_gen9.c | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/gen9_render.h b/lib/gen9_render.h index 170b1fc..6de4a91 100644 --- a/lib/gen9_render.h +++ b/lib/gen9_render.h @@ -3,5 +3,6 @@ #include "gen8_render.h" +#define GEN7_3DSTATE_VF GEN6_3D(3, 0, 0x0c) #endif diff --git a/lib/rendercopy_gen9.c b/lib/rendercopy_gen9.c index 97ed541..ae4893f 100644 --- a/lib/rendercopy_gen9.c +++ b/lib/rendercopy_gen9.c @@ -19,7 +19,7 @@ #include "intel_batchbuffer.h" #include "intel_io.h" #include "rendercopy.h" -#include "gen8_render.h" +#include "gen9_render.h" #include "intel_reg.h" #include "igt_aux.h" @@ -821,6 +821,9 @@ static void gen8_emit_vf_topology(struct intel_batchbuffer *batch) /* Vertex elements MUST be defined before this according to spec */ static void gen8_emit_primitive(struct intel_batchbuffer *batch, uint32_t offset) { + OUT_BATCH(GEN7_3DSTATE_VF | (2 - 2)); + OUT_BATCH(0); + OUT_BATCH(GEN8_3DSTATE_VF_INSTANCING | (3 - 2)); OUT_BATCH(0); OUT_BATCH(0); -- 1.8.3.1 _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/intel-gfx