radeonsi: Fix primitive restart when index changes
authorJames Legg <jlegg@feralinteractive.com>
Tue, 4 Oct 2016 13:30:11 +0000 (14:30 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 4 Oct 2016 13:57:37 +0000 (15:57 +0200)
commite33f31d61f5e9019f8b0bac0378dfb8fd1147421
tree8ff577d346d838a4715ab4de88bea9c83867f459
parent338d3c0b0f9c56e68c31ff542513fb7fa9f1c099
radeonsi: Fix primitive restart when index changes

If primitive restart is enabled for two consecutive draws which use
different primitive restart indices, then the first draw's primitive
restart index was incorrectly used for the second draw.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=98025

Cc: 11.1 11.2 12.0 <mesa-stable@lists.freedesktop.org>
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_state_draw.c