OSDN Git Service

i965: re-emit index buffer state on a reset option change.
authorAndrii Simiklit <andrii.simiklit@globallogic.com>
Fri, 25 Jan 2019 13:03:07 +0000 (15:03 +0200)
committerAndrii Simiklit <asimiklit.work@gmail.com>
Wed, 20 Feb 2019 18:27:56 +0000 (20:27 +0200)
commitf4f4ec941e1427142656e588244f378e469e996e
treee7aa6da2c5cd1131db92e63a0623be61aa0d9650
parentd6337b59f66eddedcba4853042007507c6d5171d
i965: re-emit index buffer state on a reset option change.

Seems like we forget to update the index buffer (ib) status and
IndexedDrawCutIndexEnable or CutIndexEnable 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.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=109451
Cc: <mesa-stable@lists.freedesktop.org>
Signed-off-by: Andrii Simiklit <andrii.simiklit@globallogic.com>
Signed-off-by: Andrii Simiklit <asimiklit.work@gmail.com>
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_draw_upload.c
src/mesa/drivers/dri/i965/genX_state_upload.c