iris: fix VF INSTANCING length
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 9 May 2018 07:35:14 +0000 (00:35 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:06 +0000 (10:26 -0800)
src/gallium/drivers/iris/iris_state.c

index 722540f769452f2b2f04df6bf521e7e61fca4362..155ee917b7c992e2fa0004507e1d775205347bfb 100644 (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 */