summaryrefslogtreecommitdiff
path: root/tools/null_state_gen
diff options
context:
space:
mode:
authorArun Siluvery <arun.siluvery@linux.intel.com>2015-07-31 16:27:07 +0100
committerMika Kuoppala <mika.kuoppala@intel.com>2015-08-13 15:20:32 +0300
commit59cdc16b1a6f069f944ff17851a59edf8f72d45d (patch)
treecc8c2ee8c48efc2ea464ca39c8181e6bf8f2c912 /tools/null_state_gen
parentdd82494724c1c11ceeeaac66a2ed0113ec13f8e4 (diff)
tools/null_state/gen9: Send atleast one valid component in VF state
A programming restriction exists for this instruction, atleast one component of one valid vertex element must be enabled. Cc: Ben Widawsky <benjamin.widawsky@intel.com> Cc: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Arun Siluvery <arun.siluvery@linux.intel.com> Reviewed-by: Ben Widawsky <benjamin.widawsky@intel.com> Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
Diffstat (limited to 'tools/null_state_gen')
-rw-r--r--tools/null_state_gen/intel_renderstate_gen9.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/null_state_gen/intel_renderstate_gen9.c b/tools/null_state_gen/intel_renderstate_gen9.c
index 6f808f81..b3766eab 100644
--- a/tools/null_state_gen/intel_renderstate_gen9.c
+++ b/tools/null_state_gen/intel_renderstate_gen9.c
@@ -440,7 +440,12 @@ int gen9_setup_null_render_state(struct intel_batchbuffer *batch)
/* Vertex buffers */
gen8_emit_vertex_buffers(batch);
gen8_emit_vertex_elements(batch);
- OUT_CMD(GEN9_3DSTATE_COMPONENT_PACKING, 5);
+
+ OUT_BATCH(GEN9_3DSTATE_COMPONENT_PACKING | 3);
+ OUT_BATCH(1);
+ OUT_BATCH(0);
+ OUT_BATCH(0);
+ OUT_BATCH(0);
OUT_BATCH(GEN6_3DSTATE_VF_STATISTICS | 1 /* Enable */);