From 2f100c6e31bc57940e2e30658f7acd68f83181ed Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Sun, 21 Jan 2018 21:19:26 -0800 Subject: [PATCH] iris: 3DPRIMITIVE fields --- src/gallium/drivers/iris/iris_state.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index 4e506b5431e..438da8a1b5f 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -1585,6 +1585,8 @@ iris_upload_render_state(struct iris_context *ice, iris_emit_cmd(batch, GENX(3DPRIMITIVE), prim) { prim.StartInstanceLocation = draw->start_instance; prim.InstanceCount = draw->instance_count; + prim.VertexCountPerInstance = draw->count; + prim.VertexAccessType = draw->index_size > 0 ? RANDOM : SEQUENTIAL; // XXX: this is probably bonkers. prim.StartVertexLocation = draw->start; -- 2.30.2