gallium/tgsi: Don't declare temps individually when they are all similar.
authorJosé Fonseca <jfonseca@vmware.com>
Fri, 29 Jun 2012 20:18:24 +0000 (21:18 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Mon, 2 Jul 2012 11:14:53 +0000 (12:14 +0100)
commitf5c41e16d7b09e7c342bff8ec5888db88c071be3
tree57fea8954eb687832cb665c4646a8e65d90a2144
parente75fe7ba088fbdc0bdf07e074fee94d52cdd4868
gallium/tgsi: Don't declare temps individually when they are all similar.

tgsi_ureg was recently enhanced to support local temporaries, and as result
temps are declared individually.

This change avoids many TEMP register declarations on common shaders.

(And fixes performance regression due to mismatches against performance
sensitive shaders.)

Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/tgsi/tgsi_ureg.c