summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2018-01-21 21:19:26 -0800
committerKenneth Graunke <[email protected]>2019-02-21 10:26:05 -0800
commit2f100c6e31bc57940e2e30658f7acd68f83181ed (patch)
tree62c891a364fb0cf6f21f562f26bfad7ea26a7284 /src/gallium/drivers
parentb3646e2b48c7650b80539607589832b1ee9ff70d (diff)
iris: 3DPRIMITIVE fields
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/iris/iris_state.c2
1 files changed, 2 insertions, 0 deletions
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;