i915g: simplify math in constants emission
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 25 Feb 2011 17:03:16 +0000 (18:03 +0100)
committerJakob Bornecrantz <wallbraker@gmail.com>
Sat, 26 Feb 2011 14:35:24 +0000 (15:35 +0100)
commit1df1e0841de7da9587e8b1f5d43304627305d22d
tree42fc6e55fd6fd0c104851ae9e1cb76ad0c1188b6
parentacc290aff0944c3b5d1a5f40b67ddade6d2a6894
i915g: simplify math in constants emission

The old code even falls apart for nr == 0 (which is caught earlier, but)!

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
src/gallium/drivers/i915/i915_state_emit.c