i965/fs: Fix message register allocation in FB writes.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 29 Jun 2011 23:47:30 +0000 (16:47 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 6 Jul 2011 18:12:17 +0000 (11:12 -0700)
commiteafc74d7d4982a835ac43c73963dda9982652464
tree897212ee602f738f7fe41090e24dd5f3f882ce40
parentf747d03b1d3aa4e63417bd8486909f63b4a33be4
i965/fs: Fix message register allocation in FB writes.

Commit 6750226e6d915742ebf96bae2cfcdd287b85db35 bumped the base MRF to
m2 instead of m0, but failed to adjust inst->mlen, which was being set
to the highest MRF.  Subtracting the base MRF solves the issue.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp