Fixes tests which use secondary command buffers.
Fixes:
ef04caea9b8 ("anv: Implement Mesh Shading pipeline")
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16493>
#endif
} else {
assert(anv_pipeline_is_mesh(pipeline));
+
+ /* BSpec 46303 forbids both 3DSTATE_MESH_CONTROL.MeshShaderEnable
+ * and 3DSTATE_STREAMOUT.SOFunctionEnable to be 1.
+ */
+ anv_batch_emit(&pipeline->base.batch, GENX(3DSTATE_STREAMOUT), so) {}
+
#if GFX_VERx10 >= 125
emit_task_state(pipeline);
emit_mesh_state(pipeline);