Skip to content

tu: invalidate vertex state before CP_DRAW_INDIRECT_MULTI

What does this MR do and why?

tu: invalidate vertex state before CP_DRAW_INDIRECT_MULTI

Before CP_DRAW_INDIRECT_MULTI, empty VS params are emitted if necessary.
VS state should also be invalidated through HLSQ_INVALIDATE_CMD in similar
fashion. This avoids incorrect vertex index computation that's caused by
the CP_LOAD_STATE6_GEOM emits from previous non-indirect draws.

Fixes two failing vkd3d-proton test cases on a750:
  test_vertex_id_dxbc
  test_vertex_id_dxil

Signed-off-by: Zan Dobersek <zdobersek@igalia.com>

Merge request reports

Loading