Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
#define GM107_3D_CLASS 0x0000b097
#define GM200_3D_CLASS 0x0000b197
#define GP100_3D_CLASS 0x0000c097
+#define GP102_3D_CLASS 0x0000c197
#define NV50_2D_CLASS 0x0000502d
#define NVC0_2D_CLASS 0x0000902d
#define NV50_COMPUTE_CLASS 0x000050c0
switch (dev->chipset & ~0xf) {
case 0x130:
- obj_class = GP100_3D_CLASS;
+ switch (dev->chipset) {
+ case 0x130:
+ obj_class = GP100_3D_CLASS;
+ break;
+ default:
+ obj_class = GP102_3D_CLASS;
+ break;
+ }
break;
case 0x120:
obj_class = GM200_3D_CLASS;