nvc0: make use of NVC0_COMPUTE_CLASS for GF110
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Sat, 10 Oct 2015 19:59:27 +0000 (21:59 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Sat, 10 Oct 2015 20:11:03 +0000 (22:11 +0200)
In theory, GF110+ should also support NVC8_COMPUTE_CLASS but, in practice,
a ILLEGAL_CLASS dmesg fail appears when using it.

This fixes compute support and MP performance counters on GF110.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/nvc0/nvc0_compute.c

index 47bd123621b75b918b0a7cd4fde5bfcf5fdad18d..96d753c79f3b113cf271de2e498abe38c5d9d3af 100644 (file)
@@ -37,12 +37,9 @@ nvc0_screen_compute_setup(struct nvc0_screen *screen,
 
    switch (dev->chipset & ~0xf) {
    case 0xc0:
-      if (dev->chipset == 0xc8)
-         obj_class = NVC8_COMPUTE_CLASS;
-      else
-         obj_class = NVC0_COMPUTE_CLASS;
-      break;
    case 0xd0:
+      /* In theory, GF110+ should also support NVC8_COMPUTE_CLASS but,
+       * in practice, a ILLEGAL_CLASS dmesg fail appears when using it. */
       obj_class = NVC0_COMPUTE_CLASS;
       break;
    default: