From 6091dc470f4125435514ae91fb2a6229c4fe97da Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Thu, 26 Apr 2018 23:42:10 -0700 Subject: [PATCH] iris: proper length for VE packet? --- src/gallium/drivers/iris/iris_state.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index c1616606b4e..941080e5c9a 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -1418,7 +1418,9 @@ iris_create_vertex_elements(struct pipe_context *ctx, * - create SGV ones * - if those are necessary, use count + 1/2/3... OR in the length */ - iris_pack_command(GENX(3DSTATE_VERTEX_ELEMENTS), cso->vertex_elements, ve); + iris_pack_command(GENX(3DSTATE_VERTEX_ELEMENTS), cso->vertex_elements, ve) { + ve.DWordLength = 1 + GENX(VERTEX_ELEMENT_STATE_length) * count; + } uint32_t *ve_pack_dest = &cso->vertex_elements[1]; -- 2.30.2