svga: reduce looping in svga_mark_surfaces_dirty()
authorBrian Paul <brianp@vmware.com>
Mon, 1 Aug 2016 22:30:14 +0000 (16:30 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 16 Aug 2016 14:24:52 +0000 (08:24 -0600)
commitced0dd0e9575c3eacd9a618c34175dde0463f393
tree7521edebae619820c1ac3a5fb77121d42c4569b2
parent88efaf987823802926c211401c401081a0e2f17a
svga: reduce looping in svga_mark_surfaces_dirty()

We don't need to loop over the max number of color buffers, just the
current number (which is usually one).

Tested with full Piglit run, Heaven 4.0, etc.

Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/gallium/drivers/svga/svga_surface.c