iris: proper length for VE packet?
This commit is contained in:
parent
64a3f7423a
commit
6091dc470f
|
@ -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];
|
||||
|
||||
|
|
Loading…
Reference in New Issue