i965: re-emit index buffer state on a primitive reset option change.
Seems like we forget to update the index buffer (ib) status and
IndexedDrawCutIndexEnable (HSW and next) or CutIndexEnable (IVB and previous) flag is left unchanged it
leads to ignoring of glEnable/glDisable functions for GL_PRIMITIVE_RESTART
in some cases. The index buffer (ib) status should be re-emmited after the reset option change to avoid some unexpected behavior.
I am working on piglit test for this issue
to prevent regressions of this bug in future.
I tested this commit under Intel CI and there were no regressions:
@cc @jljusten @kwg @mareko
Signed-off-by: Andrii Simiklit firstname.lastname@example.org