iris: 3DPRIMITIVE fields
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 22 Jan 2018 05:19:26 +0000 (21:19 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:05 +0000 (10:26 -0800)
src/gallium/drivers/iris/iris_state.c

index 4e506b5431ed79ef806cbb8f3afef07e8b3ba74b..438da8a1b5f0512b268f95b9f69e61ac8c27014a 100644 (file)
@@ -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;