OSDN Git Service

nouveau: hook in nv30.
authorStephane Marchesin <marchesin@icps.u-strasbg.fr>
Fri, 15 Feb 2008 01:25:17 +0000 (02:25 +0100)
committerStephane Marchesin <marchesin@icps.u-strasbg.fr>
Fri, 15 Feb 2008 01:26:03 +0000 (02:26 +0100)
src/mesa/drivers/dri/nouveau_winsys/Makefile
src/mesa/drivers/dri/nouveau_winsys/nouveau_winsys.c
src/mesa/pipe/nouveau/nouveau_winsys.h

index f547ec4..59ba561 100644 (file)
@@ -8,6 +8,7 @@ MINIGLX_SOURCES =
 
 PIPE_DRIVERS = \
        $(TOP)/src/mesa/pipe/softpipe/libsoftpipe.a \
+       $(TOP)/src/mesa/pipe/nv40/libnv30.a \
        $(TOP)/src/mesa/pipe/nv40/libnv40.a \
        $(TOP)/src/mesa/pipe/nv50/libnv50.a
 
index 8ffe89f..1494bd4 100644 (file)
@@ -80,6 +80,9 @@ nouveau_pipe_create(struct nouveau_context *nv)
                return NULL;
 
        switch (nv->chipset & 0xf0) {
+       case 0x30:
+               hw_create = nv30_create;
+               break;
        case 0x40:
        case 0x60:
                hw_create = nv40_create;
index 0b394cf..818ae9a 100644 (file)
@@ -50,6 +50,9 @@ struct nouveau_winsys {
 };
 
 extern struct pipe_context *
+nv30_create(struct pipe_winsys *, struct nouveau_winsys *, unsigned chipset);
+
+extern struct pipe_context *
 nv40_create(struct pipe_winsys *, struct nouveau_winsys *, unsigned chipset);
 
 extern struct pipe_context *