r600g: fixup trig functions when input is a literal
authorDave Airlie <airlied@redhat.com>
Tue, 31 Aug 2010 01:42:01 +0000 (11:42 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 31 Aug 2010 01:44:34 +0000 (11:44 +1000)
commitbe7816f2b7f0b064a47fb3f101477ad5dba74017
tree5fd0161b14ba7469f9c0d7d66b9381e9d7b9fda6
parentee0153f891bb75ee14db579e6628d592032d6801
r600g: fixup trig functions when input is a literal

So as the trig functions used up the literal spots for the PI work, if the arg0 was an immediate
we'd hit failure, so copy the literal before starting.

add some tracking of max temp used to avoid trashing temp regs.

5 more piglits, fp1 COS,SCS,SIN tests
src/gallium/drivers/r600/r600_shader.c