anv: Set 3DSTATE_VF_INSTANCING on the SVGS element

It probably doesn't matter because that buffer should have a stride of
zero.  However, it still seems like a good idea just to be safe.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5022>
This commit is contained in:
Jason Ekstrand 2020-05-12 22:31:54 -05:00 committed by Marge Bot
parent 723208988e
commit e3d8edf3e0

View file

@ -219,6 +219,12 @@ emit_vertex_input(struct anv_graphics_pipeline *pipeline,
#endif
};
GENX(VERTEX_ELEMENT_STATE_pack)(NULL, &p[1 + id_slot * 2], &element);
#if GEN_GEN >= 8
anv_batch_emit(&pipeline->base.batch, GENX(3DSTATE_VF_INSTANCING), vfi) {
vfi.VertexElementIndex = id_slot;
}
#endif
}
#if GEN_GEN >= 8