freedreno/lowering: fix token calculation for lowering
authorRob Clark <robclark@freedesktop.org>
Tue, 30 Sep 2014 20:53:24 +0000 (16:53 -0400)
committerRob Clark <robclark@freedesktop.org>
Tue, 30 Sep 2014 20:56:15 +0000 (16:56 -0400)
commit01ff0b28b3d56d1703e37f6f186b7fce77955103
tree701973dd25806f679e3a5ce56254999505a399a8
parent408aa46ca8586c9687dd237b8cd2fefed33ab6ad
freedreno/lowering: fix token calculation for lowering

Indirect registers consume an additional token.  Try to clean up the
token calculation math a bit, and fix it at the same time.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/freedreno/freedreno_lowering.c