[Mesa-dev] [PATCH] nvc0: make sure nvd7 gets NVC8_3D_CLASS

Ilia Mirkin imirkin at alum.mit.edu
Thu Dec 5 18:45:34 PST 2013


Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
---

It has the NVC8 class, at least according to the kernel driver's setup code.

 src/gallium/drivers/nouveau/nvc0/nvc0_screen.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c b/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c
index 2c3a697..0457e9f 100644
--- a/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c
+++ b/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c
@@ -656,10 +656,11 @@ nvc0_screen_create(struct nouveau_device *dev)
       obj_class = NVE4_3D_CLASS;
       break;
    case 0xd0:
+      obj_class = NVC8_3D_CLASS;
+      break;
    case 0xc0:
    default:
       switch (dev->chipset) {
-      case 0xd9:
       case 0xc8:
          obj_class = NVC8_3D_CLASS;
          break;
-- 
1.8.3.2



More information about the mesa-dev mailing list