drm/nvc0/gr: import and use our own fuc by default
authorBen Skeggs <bskeggs@redhat.com>
Wed, 25 May 2011 08:32:44 +0000 (18:32 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 23 Jun 2011 05:57:38 +0000 (15:57 +1000)
commit0411de854898a2402cf4bd915bed7ec9a6b76f9a
tree52678d0557377674a78b95211adb36dba1ecde9b
parentf8522fc80f2e0392fc44b069f61721bd25907270
drm/nvc0/gr: import and use our own fuc by default

The ability to use NVIDIA's fuc has been retained *temporarily* in order
to better debug any issues that may be lingering in our initial attempt
at writing this ucode.  Once I'm fairly confident we're okay, it'll be
removed.

There's a number of things not implemented by this fuc currently, but
most of it is sets of state that our context setup would not have used
anyway.  No doubt we'll find out what they're for at some point, and
implement it if required.

This has been tested on 0xc0/0xc4 thus far, and from what I could tell
it worked as well as NVIDIA's.  It's also been tested on 0xc1, but even
with NVIDIA's fuc that chipset doesn't work correctly with nouveau yet.

0xc3/0xc8/0xce should in theory be supported too, but I don't have the
hardware to check that.

There's no doubt numerous bugs to squash yet, please report any!

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_drv.c
drivers/gpu/drm/nouveau/nouveau_drv.h
drivers/gpu/drm/nouveau/nvc0_graph.c
drivers/gpu/drm/nouveau/nvc0_graph.fuc [new file with mode: 0644]
drivers/gpu/drm/nouveau/nvc0_grgpc.fuc [new file with mode: 0644]
drivers/gpu/drm/nouveau/nvc0_grgpc.fuc.h [new file with mode: 0644]
drivers/gpu/drm/nouveau/nvc0_grhub.fuc [new file with mode: 0644]
drivers/gpu/drm/nouveau/nvc0_grhub.fuc.h [new file with mode: 0644]