t_dd_dmatmp: Use addition instead of subtraction in loop bounds
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 14 Sep 2015 18:59:22 +0000 (11:59 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 23 Sep 2015 16:56:46 +0000 (09:56 -0700)
commit25543d8ec506ef32599af6f5e0dd735e01b39909
tree747d7f30ced8414b52eaafa384a30f9567b53425
parentc0b3b2f7603eab210acdb2e654e5411fe912ca34
t_dd_dmatmp: Use addition instead of subtraction in loop bounds

This is used everywhere else in this file because it avoids problems
when count is zero (due to trimming).

No piglit regressions on i915 (G33) or radeon (Radeon 7500).

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=38109
Reviewed-by: Brian Paul <brianp@vmware.com>
Cc: Marius Predut <marius.predut@intel.com>
Cc: "10.6 11.0" <mesa-stable@lists.freedesktop.org>
src/mesa/tnl_dd/t_dd_dmatmp.h