nv50: record last access to temp and attr regs
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Sat, 23 May 2009 11:32:51 +0000 (13:32 +0200)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 28 May 2009 06:06:18 +0000 (16:06 +1000)
commitbcecb8ff66d2c002ac1273c0a9e9b2b9f9d3d43e
treefd6f19395151cf614ffb9ad02953bfa49b145886
parent7e7d3a87ec60f8e412d724c6586461501d420ec0
nv50: record last access to temp and attr regs

We now inspect the TGSI instructions in tx_prep to determine where
temps and FP attrs are last accessed.
This will enable us to reclaim some temporaries early and we also
use it to omit pre-loading FP attributes that aren't used.
src/gallium/drivers/nv50/nv50_program.c