diff options
author | Kenneth Graunke <[email protected]> | 2018-04-26 23:42:10 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-02-21 10:26:06 -0800 |
commit | 6091dc470f4125435514ae91fb2a6229c4fe97da (patch) | |
tree | f14fa0a9d9214d43e60e12df4ebd354414b29255 | |
parent | 64a3f7423a96732bec8d54316a21c082b17b3460 (diff) |
iris: proper length for VE packet?
-rw-r--r-- | src/gallium/drivers/iris/iris_state.c | 4 |
1 files changed, 3 insertions, 1 deletions
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]; |