Mesa (master): nvc0: add maxwell class

Ben Skeggs darktama at kemper.freedesktop.org
Wed May 14 23:55:03 UTC 2014


Module: Mesa
Branch: master
Commit: 9306c3470f0963b7bda47f01b64605f61e5e5c44
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9306c3470f0963b7bda47f01b64605f61e5e5c44

Author: Ben Skeggs <bskeggs at redhat.com>
Date:   Fri May  9 15:55:49 2014 +1000

nvc0: add maxwell class

Signed-off-by: Ben Skeggs <bskeggs at redhat.com>
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>

---

 src/gallium/drivers/nouveau/nv_object.xml.h    |    1 +
 src/gallium/drivers/nouveau/nvc0/nvc0_screen.c |    3 +++
 2 files changed, 4 insertions(+)

diff --git a/src/gallium/drivers/nouveau/nv_object.xml.h b/src/gallium/drivers/nouveau/nv_object.xml.h
index 95210c5..4c93e65 100644
--- a/src/gallium/drivers/nouveau/nv_object.xml.h
+++ b/src/gallium/drivers/nouveau/nv_object.xml.h
@@ -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
diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c b/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c
index 58d42f9..ccf2374 100644
--- a/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c
+++ b/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c
@@ -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;




More information about the mesa-commit mailing list