i965/fs: Add a new fs_inst::regs_written function.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 14 Feb 2012 20:43:21 +0000 (12:43 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 15 Feb 2012 19:44:05 +0000 (11:44 -0800)
commit8ab02b511882857a09fceed0e93bf4a0b25c17b2
tree9fe39aaa02c2f4b4ec31fbd068fa170f08cb4a57
parentc89b471f8cd3da6c07eb437caabb2e648027f8bb
i965/fs: Add a new fs_inst::regs_written function.

Certain instructions write more than one register.  Texturing, for
example, returns 4 registers.  (We set rlen to 4 even for TXS and float
shadow sampling.)  Some math functions return 2.  Most return 1.

The next commit introduces a use of this function.

NOTE: This is a candidate for the 8.0 branch (dependency of a fix).

Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_fs.h