8567d02682
Previously, if first draw call with wasn't indexed but pipeline had primitive restart enabled - primitive restart would be disabled for draw calls, even indexed, that follow. However, prim restart index works in non-indexed draw calls, but since we don't emit fresh PC_RESTART_INDEX for them - they may use stale value if prim restart is enabled for non-indexed draw calls. So we have track the switch between indexed and non-indexed draw calls and emit PC_PRIMITIVE_CNTL_0 for them. Fixes car rear window in Need for Speed: Most Wanted (2012) Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27821>