i965: Only emit VF cache invalidations when the high bits changes
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 29 May 2018 16:28:07 +0000 (17:28 +0100)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 29 May 2018 19:16:26 +0000 (12:16 -0700)
commit3ac5fbadfd8644d30fce9ff267cb811ad157996a
treeea3f6f769d02150d016a9b20a94dfa392188f5a3
parente4fe2fd3bb26d52e64d98207692a4469f04fe1d5
i965: Only emit VF cache invalidations when the high bits changes

Commit 92f01fc5f914 ("i965: Emit VF cache invalidates for 48-bit
addressing bugs with softpin.") tried to only emit the VF invalidate if
the high bits changed, but it accidentally always set need_invalidate to
true; causing it to emit unconditionally emit the pipe control before
every primitive.

Fixes: 92f01fc5f914 ("i965: Emit VF cache invalidates for 48-bit addressing bugs with softpin.")
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=106708
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/genX_state_upload.c