freedreno/a3xx/compiler: use max_reg rather than file_count
authorRob Clark <robclark@freedesktop.org>
Tue, 20 Aug 2013 17:54:01 +0000 (13:54 -0400)
committerRob Clark <robclark@freedesktop.org>
Sat, 24 Aug 2013 17:23:32 +0000 (13:23 -0400)
commit2effac5a67d8ed91802f96d2c59c0a5e1574e3f6
treec81296135e1accbfff63c1761daf59ffe2c7aab0
parentaee1ed708ac5fa4a5db47dc84be4aae00af9d0f0
freedreno/a3xx/compiler: use max_reg rather than file_count

Our current (rather naive) register assignment is based on mapping
different register files (INPUT, OUTPUT, TEMP, CONST, etc) based on the
max register index of the preceding file.  But in some cases, the lowest
used register in a file might not be zero.  In which case
file_count[file] != file_max[file] + 1.

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