nvc0: do not break 3D state by pushing MS coordinates on Fermi
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 19 Oct 2016 22:41:00 +0000 (00:41 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 20 Oct 2016 17:59:08 +0000 (19:59 +0200)
commit42273edf79c2500957f51690499aa3405cc689db
tree7035a08d580a1601e825b516b6ba31c16e72a8cf
parent24e15aa198401d5e8d937d6f8a24757e08820d79
nvc0: do not break 3D state by pushing MS coordinates on Fermi

Long story short, 3D and CP are aliased on Fermi and initializing
compute after pushing the MS sample coordinate offsets seems to
corrupt 3D state for weird reasons.

I still don't have the faintest clue what is going on, but
this seems to only affect Fermi generation. A possible fix
could be to use two different channels, one for 3D and one
for CP.

This fixes a bunch of regressions pinpointed by piglit.

Fixes: "nvc0: fix up image support for allowing multiple samples"
Cc: "13.0" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/nvc0/nvc0_screen.c