summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2018-01-21 21:09:30 -0800
committerKenneth Graunke <[email protected]>2019-02-21 10:26:05 -0800
commitb3646e2b48c7650b80539607589832b1ee9ff70d (patch)
treefe98dc915f1d05253a41c28e6370857e05a3edea /src
parent317263ab11a329844a1c601bbae7cfb609d71a18 (diff)
iris: fix VF instancing length so we don't get garbage in batch
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/iris/iris_state.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c
index 9ccc37fd982..4e506b5431e 100644
--- a/src/gallium/drivers/iris/iris_state.c
+++ b/src/gallium/drivers/iris/iris_state.c
@@ -1498,8 +1498,8 @@ iris_upload_render_state(struct iris_context *ice,
iris_batch_emit(batch, cso->vertex_elements, sizeof(uint32_t) *
(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(cso->vf_instancing[0]));
+ iris_batch_emit(batch, cso->vf_instancing[i], sizeof(uint32_t) *
+ (cso->count * GENX(3DSTATE_VF_INSTANCING_length)));
}
for (int i = 0; i < cso->count; i++) {
/* TODO: vertexid, instanceid support */