nvc0: Use GP100_COMPUTE_CLASS on GP10B
authorMikko Perttunen <mperttunen@nvidia.com>
Thu, 15 Feb 2018 18:13:20 +0000 (20:13 +0200)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sat, 17 Feb 2018 19:16:10 +0000 (14:16 -0500)
GP10B requires the use of GP100_COMPUTE_CLASS instead of
GP104_COMPUTE_CLASS as is used for other non-GP100 chips.

Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/nvc0/nve4_compute.c

index f641f4777dfc187a4982d50f8bc073fd42875dd2..28460f8cbeb875d196e1cb1334a93fc7e9ca9a32 100644 (file)
@@ -59,7 +59,8 @@ nve4_screen_compute_setup(struct nvc0_screen *screen,
       obj_class = GM200_COMPUTE_CLASS;
       break;
    case 0x130:
-      obj_class = dev->chipset == 0x130 ? GP100_COMPUTE_CLASS : GP104_COMPUTE_CLASS;
+      obj_class = (dev->chipset == 0x130 || dev->chipset == 0x13b) ?
+                      GP100_COMPUTE_CLASS : GP104_COMPUTE_CLASS;
       break;
    default:
       NOUVEAU_ERR("unsupported chipset: NV%02x\n", dev->chipset);