i965: set size of txf_mcs payload vgrf properly
authorChris Forbes <chrisf@ijw.co.nz>
Sat, 4 Jan 2014 02:27:54 +0000 (15:27 +1300)
committerChris Forbes <chrisf@ijw.co.nz>
Sat, 4 Jan 2014 07:24:29 +0000 (20:24 +1300)
commita61ae2aa01c9b1976ba4107c1564e0c3f94aea4d
tree284039fd2752d242a77badf6687bfcc4b5b96865
parenteb212c5a302f0122a13b36dfdf07e91f951ae2e7
i965: set size of txf_mcs payload vgrf properly

Previously we left the size of this vgrf as 1, which caused register
allocation to be subtly broken. If we were lucky we would explode in
the post-alloc instruction scheduler; if we were unlucky we'd just stomp
on someone else and get broken rendering.

Fixes crash when running `tesseract` with the following settings:

   msaa 4
   glineardepth 0

Also fixes the piglit test:

  arb_sample_shading-builtin-gl-sample-id

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Cc: Anuj Phogat <anuj.phogat@gmail.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=72859
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp