mesa: Avoid flagging _NEW_VIEWPORT on redundant viewport updates.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 26 Sep 2014 22:13:30 +0000 (15:13 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 1 Oct 2014 08:08:26 +0000 (01:08 -0700)
commit95073a2dca03a48f4c77bc846a4a6d1f0eb81ae6
treeeaa1a41937548e88046fb66282beb28d9f2e0c60
parent0a1730200e91b6ad62cdf04bb1ec02cb1e96056a
mesa: Avoid flagging _NEW_VIEWPORT on redundant viewport updates.

Cuts the number of i965 color calculator viewport uploads by 100x
(11017983 -> 113385) in 'x11perf -gc' with Glamor in Xephyr.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/main/viewport.c