iris: proper length for VE packet?

This commit is contained in:
Kenneth Graunke 2018-04-26 23:42:10 -07:00
parent 64a3f7423a
commit 6091dc470f
1 changed files with 3 additions and 1 deletions

View File

@ -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];