Nouveau: build, link and use nv20.
authorPekka Paalanen <pq@iki.fi>
Sat, 8 Nov 2008 16:32:33 +0000 (18:32 +0200)
committerPekka Paalanen <pq@iki.fi>
Sat, 8 Nov 2008 16:32:33 +0000 (18:32 +0200)
Signed-off-by: Pekka Paalanen <pq@iki.fi>
configs/default
src/gallium/drivers/nouveau/nouveau_winsys.h
src/gallium/winsys/drm/nouveau/Makefile
src/gallium/winsys/drm/nouveau/nouveau_winsys.c
src/gallium/winsys/g3dvl/nouveau/Makefile

index 6c123cc3c55c9f6498c91d1ebbd128fa1d785eb1..7ea27b48ce4e9fe71ce15af34bb9bf4f82391d5c 100644 (file)
@@ -76,7 +76,7 @@ EGL_DRIVERS_DIRS = demo
 # Gallium directories and 
 GALLIUM_AUXILIARY_DIRS = draw translate cso_cache pipebuffer tgsi sct rtasm util
 GALLIUM_AUXILIARIES = $(foreach DIR,$(GALLIUM_AUXILIARY_DIRS),$(TOP)/src/gallium/auxiliary/$(DIR)/lib$(DIR).a)
-GALLIUM_DRIVER_DIRS = softpipe i915simple i965simple nv04 nv10 nv30 nv40 nv50 failover
+GALLIUM_DRIVER_DIRS = softpipe i915simple i965simple nv04 nv10 nv20 nv30 nv40 nv50 failover
 GALLIUM_DRIVERS = $(foreach DIR,$(GALLIUM_DRIVER_DIRS),$(TOP)/src/gallium/drivers/$(DIR)/lib$(DIR).a)
 GALLIUM_WINSYS_DIRS = xlib egl_xlib
 
index 48feeba309d24c860afcc72e96f877e78fa88bda..a89b056244df9c264c566cb474310af2b94fec91 100644 (file)
@@ -69,6 +69,12 @@ nv10_screen_create(struct pipe_winsys *ws, struct nouveau_winsys *);
 extern struct pipe_context *
 nv10_create(struct pipe_screen *, unsigned pctx_id);
 
+extern struct pipe_screen *
+nv20_screen_create(struct pipe_winsys *ws, struct nouveau_winsys *);
+
+extern struct pipe_context *
+nv20_create(struct pipe_screen *, unsigned pctx_id);
+
 extern struct pipe_screen *
 nv30_screen_create(struct pipe_winsys *ws, struct nouveau_winsys *);
 
index be630ff6d16c991c590d218169ac2e8b7a813a75..81562ca78d3224b6c46a5fb2d8f429f5a32be29a 100644 (file)
@@ -10,6 +10,7 @@ PIPE_DRIVERS = \
        $(TOP)/src/gallium/drivers/softpipe/libsoftpipe.a \
        $(TOP)/src/gallium/drivers/nv04/libnv04.a \
        $(TOP)/src/gallium/drivers/nv10/libnv10.a \
+       $(TOP)/src/gallium/drivers/nv20/libnv20.a \
        $(TOP)/src/gallium/drivers/nv30/libnv30.a \
        $(TOP)/src/gallium/drivers/nv40/libnv40.a \
        $(TOP)/src/gallium/drivers/nv50/libnv50.a
index 0878840dcc0ac1a2c25f945c5e214fc0be2b3719..364340e1d3debc2682507e31f90e7e2083344363 100644 (file)
@@ -101,10 +101,13 @@ nouveau_pipe_create(struct nouveau_context *nv)
 
        switch (chipset & 0xf0) {
        case 0x10:
-       case 0x20:
                hws_create = nv10_screen_create;
                hw_create = nv10_create;
                break;
+       case 0x20:
+               hws_create = nv20_screen_create;
+               hw_create = nv20_create;
+               break;
        case 0x30:
                hws_create = nv30_screen_create;
                hw_create = nv30_create;
index 5d11bde322b80768973f98fb378d8e2446584382..ff43327778a8fc4c20a2d23649fea6b14d534f95 100644 (file)
@@ -26,11 +26,12 @@ LDFLAGS             += -L${DRMDIR}/lib                      \
                   -L${GALLIUMDIR}/auxiliary/rtasm      \
                   -L${GALLIUMDIR}/auxiliary/cso_cache  \
                   -L${GALLIUMDIR}/drivers/nv10         \
+                  -L${GALLIUMDIR}/drivers/nv20         \
                   -L${GALLIUMDIR}/drivers/nv30         \
                   -L${GALLIUMDIR}/drivers/nv40         \
                   -L${GALLIUMDIR}/drivers/nv50
 
-LIBS           += -ldriclient -ldrm -lnv10 -lnv30 -lnv40 -lnv50 -ldraw -ltgsi -ltranslate -lrtasm -lcso_cache -lm
+LIBS           += -ldriclient -ldrm -lnv10 -lnv20 -lnv30 -lnv40 -lnv50 -ldraw -ltgsi -ltranslate -lrtasm -lcso_cache -lm
 
 #############################################