Mesa (master): nvc0: use PascalB for most Pascal boards

Ben Skeggs darktama at kemper.freedesktop.org
Tue Feb 21 00:03:16 UTC 2017


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

Author: Ben Skeggs <bskeggs at redhat.com>
Date:   Tue Feb 21 10:01:16 2017 +1000

nvc0: use PascalB for most Pascal boards

Signed-off-by: Ben Skeggs <bskeggs at redhat.com>

---

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

diff --git a/src/gallium/drivers/nouveau/nv_object.xml.h b/src/gallium/drivers/nouveau/nv_object.xml.h
index c7e0a39..f200c9c 100644
--- a/src/gallium/drivers/nouveau/nv_object.xml.h
+++ b/src/gallium/drivers/nouveau/nv_object.xml.h
@@ -194,6 +194,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 #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
diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c b/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c
index 30efac8..6a67b26 100644
--- a/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c
+++ b/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c
@@ -898,7 +898,14 @@ nvc0_screen_create(struct nouveau_device *dev)
 
    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;




More information about the mesa-commit mailing list