i965/gs: Check newly-generated GS-out VUE map against correct stage
authorChris Forbes <chrisf@ijw.co.nz>
Sat, 28 Feb 2015 06:57:20 +0000 (19:57 +1300)
committerChris Forbes <chrisf@ijw.co.nz>
Sat, 28 Feb 2015 22:13:35 +0000 (11:13 +1300)
commitb51ff50a767cc78d678ed3d2c25995f5c4194fea
tree24eaec1c4a0d2ea1ca0f8a462911cc9c040dc8cf
parent213c41bf5d7911a0964c43ccc4192ab3672d0ea5
i965/gs: Check newly-generated GS-out VUE map against correct stage

Previously, we compared our new GS-out VUE map to the existing *VS*-out
VUE map, which is bogus.

This would mostly manifest as redundant dirty flagging where the GS is
in use but the VS and GS output layouts differ; but there is a scary
case where we would fail to flag a GS-out layout change if it happened
to match the VS-out layout.

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Cc: "10.5, 10.4" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=88885
src/mesa/drivers/dri/i965/brw_gs.c