summaryrefslogtreecommitdiff
path: root/lib/rendercopy_gen9.c
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2013-02-27 14:57:34 +0000
committerDamien Lespiau <damien.lespiau@intel.com>2014-09-30 12:21:02 +0100
commite5b850cb340a7dde8e6907a6de28d0ba825d1cb2 (patch)
tree640ae7a223d10b201ef04ccced85be97c84db0c8 /lib/rendercopy_gen9.c
parentaa7f9cf881a50370cdf49c6210d8224c32943d24 (diff)
rendercopy/skl: Set the 3DSTATE_VF state
This is to ensure the "Component Packing Enable" bit is set to 0. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> Signed-off-by: Ben Widawsky <benjamin.widawsky@intel.com>
Diffstat (limited to 'lib/rendercopy_gen9.c')
-rw-r--r--lib/rendercopy_gen9.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/rendercopy_gen9.c b/lib/rendercopy_gen9.c
index 97ed541d..ae4893f9 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);