From: Kenneth Graunke Date: Mon, 22 Jan 2018 05:19:26 +0000 (-0800) Subject: iris: 3DPRIMITIVE fields X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2f100c6e31bc57940e2e30658f7acd68f83181ed;p=mesa.git iris: 3DPRIMITIVE fields --- 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;