nvc0: add maxwell class
authorBen Skeggs <bskeggs@redhat.com>
Fri, 9 May 2014 05:55:49 +0000 (15:55 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 14 May 2014 23:54:16 +0000 (09:54 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/nv_object.xml.h
src/gallium/drivers/nouveau/nvc0/nvc0_screen.c

index 95210c5e156142c992767ae72a2cf7b6218ad8ef..4c93e6564838980d07e2a5dea1e86fa3fa723840 100644 (file)
@@ -190,6 +190,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 #define NVC8_3D_CLASS                                          0x00009297
 #define NVE4_3D_CLASS                                          0x0000a097
 #define NVF0_3D_CLASS                                          0x0000a197
+#define GM107_3D_CLASS                                         0x0000b097
 #define NV50_2D_CLASS                                          0x0000502d
 #define NVC0_2D_CLASS                                          0x0000902d
 #define NV50_COMPUTE_CLASS                                     0x000050c0
index 58d42f9b29757e6ba75560b1ed3809d8d45c2ba6..ccf2374d474b7a284ed0f5390ca998fb9fcb2941 100644 (file)
@@ -685,6 +685,9 @@ nvc0_screen_create(struct nouveau_device *dev)
    PUSH_DATA (push, screen->fence.bo->offset + 16);
 
    switch (dev->chipset & ~0xf) {
+   case 0x110:
+      obj_class = GM107_3D_CLASS;
+      break;
    case 0x100:
    case 0xf0:
       obj_class = NVF0_3D_CLASS;