From f6017da83febd1dcb070a4d5a96967e5587b70a1 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Wed, 9 May 2018 00:35:14 -0700 Subject: iris: fix VF INSTANCING length --- src/gallium/drivers/iris/iris_state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium') diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index 722540f7694..155ee917b7c 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -2474,7 +2474,7 @@ iris_upload_render_state(struct iris_context *ice, (1 + cso->count * GENX(VERTEX_ELEMENT_STATE_length))); for (int i = 0; i < cso->count; i++) { iris_batch_emit(batch, cso->vf_instancing[i], sizeof(uint32_t) * - (cso->count * GENX(3DSTATE_VF_INSTANCING_length))); + GENX(3DSTATE_VF_INSTANCING_length)); } for (int i = 0; i < cso->count; i++) { /* TODO: vertexid, instanceid support */ -- cgit v1.2.3