radeon-gallium: Stop using outdated ioctls.
authorCorbin Simpson <MostAwesomeDude@gmail.com>
Wed, 19 Aug 2009 00:47:06 +0000 (17:47 -0700)
committerCorbin Simpson <MostAwesomeDude@gmail.com>
Wed, 19 Aug 2009 04:25:53 +0000 (21:25 -0700)
src/gallium/winsys/drm/radeon/core/radeon_r300.c

index d6bb77dc7e86772de52c3f6bbd6fecf389591f0e..d723876221906a7cfc36250e0dbe67d43cbceabe 100644 (file)
@@ -143,17 +143,9 @@ static void do_ioctls(struct r300_winsys* winsys, int fd)
     info.request = RADEON_INFO_NUM_GB_PIPES;
     retval = drmCommandWriteRead(fd, DRM_RADEON_INFO, &info, sizeof(info));
     if (retval) {
-        fprintf(stderr, "%s: New ioctl for GB pipe count failed "
-                "(error number %d), trying classic ioctl...\n",
-                __FUNCTION__, retval);
-        gp.param = RADEON_PARAM_NUM_GB_PIPES;
-        retval = drmCommandWriteRead(fd, DRM_RADEON_GETPARAM, &gp,
-                sizeof(gp));
-        if (retval) {
-            fprintf(stderr, "%s: Failed to get GB pipe count, "
-                    "error number %d\n", __FUNCTION__, retval);
-            exit(1);
-        }
+        fprintf(stderr, "%s: Failed to get GB pipe count, "
+                "error number %d\n", __FUNCTION__, retval);
+        exit(1);
     }
     winsys->gb_pipes = target;