iris: fix VF INSTANCING length

This commit is contained in:
Kenneth Graunke 2018-05-09 00:35:14 -07:00
parent 7fb7704b2e
commit f6017da83f

View file

@ -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 */