radeon: enable xpress chipsets
authorDave Airlie <airlied@nx6125b.(none)>
Sun, 6 May 2007 21:06:08 +0000 (07:06 +1000)
committerDave Airlie <airlied@nx6125b.(none)>
Sun, 6 May 2007 21:06:08 +0000 (07:06 +1000)
glxgears and googleearth now run so that seems like a good start

Thanks to Aapo Tahkola for doing the 3D work on this so far, I got lost
after the GART changes.

src/mesa/drivers/dri/r300/r300_context.c
src/mesa/drivers/dri/r300/radeon_context.c
src/mesa/drivers/dri/radeon/radeon_screen.c

index c58cef65476d0522b3efa161cbb1e8350a6b5611..265b8defd84b68c29e458678cac1132153d507b8 100644 (file)
@@ -187,6 +187,9 @@ GLboolean r300CreateContext(const __GLcontextModes * glVisual,
        if (!r300)
                return GL_FALSE;
 
+       if (!(screen->chip_flags & RADEON_CHIPSET_TCL))
+               hw_tcl_on = future_hw_tcl_on = 0;
+
        /* Parse configuration files.
         * Do this here so that initialMaxAnisotropy is set before we create
         * the default textures.
index 9b3f89050764f22bb901bd9b7a02d8cc27e59b1e..e9634b427a66970695817f7d1c48bf1882ab2413 100644 (file)
@@ -90,9 +90,15 @@ static const GLubyte *radeonGetString(GLcontext * ctx, GLenum name)
                offset = driGetRendererString(buffer, chipname, DRIVER_DATE,
                                              agp_mode);
 
+               if (IS_R300_CLASS(radeon->radeonScreen)) {
                sprintf(&buffer[offset], " %sTCL",
+                       (radeon->radeonScreen->chip_flags & RADEON_CHIPSET_TCL)
+                       ? "" : "NO-");
+               } else {
+                       sprintf(&buffer[offset], " %sTCL",
                        !(radeon->TclFallback & RADEON_TCL_FALLBACK_TCL_DISABLE)
                        ? "" : "NO-");
+               }
 
                return (GLubyte *) buffer;
        }
index b0c8fae2859487d729d5b3484cd22df828b509fa..b476864d0353bc7d214b0c77c736ab394579c0d3 100644 (file)
@@ -656,8 +656,7 @@ radeonCreateScreen( __DRIscreenPrivate *sPriv )
    case PCI_CHIP_RC410_5A61:
    case PCI_CHIP_RC410_5A62:
       screen->chip_family = CHIP_FAMILY_RS400;
-      fprintf(stderr, "Warning, xpress200 detected. Won't work.\n");
-      return NULL;
+      fprintf(stderr, "Warning, xpress200 detected.\n");
       break;
 
    default: