drm/nvc0/gr: fix some bugs in grctx generation
authorBen Skeggs <bskeggs@redhat.com>
Mon, 11 Jul 2011 05:40:43 +0000 (15:40 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 9 Nov 2011 23:01:12 +0000 (09:01 +1000)
commitaf6d9fe5368aadd8f0f3647b38405ffcd3ed5f81
tree3c023f22e23a12253e8b9eece904bf66c8a5a939
parent80859760daa01fb38497aa6326a32a16489d8c97
drm/nvc0/gr: fix some bugs in grctx generation

Most serious is for chips with only 1 TPC, we'd get stuck in an infinite
loop.  The fix here will slightly change the setup for all other chipsets
too, but, it shouldn't matter too much, and this all needs figuring out
and likely redone anyway.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvc0_grctx.c