From: Kenneth Graunke Date: Wed, 9 May 2018 07:35:14 +0000 (-0700) Subject: iris: fix VF INSTANCING length X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f6017da83febd1dcb070a4d5a96967e5587b70a1;p=mesa.git iris: fix VF INSTANCING length --- 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 */