summaryrefslogtreecommitdiff
path: root/src/gallium/winsys/drm
diff options
context:
space:
mode:
authorCorbin Simpson <MostAwesomeDude@gmail.com>2009-08-18 17:47:06 -0700
committerCorbin Simpson <MostAwesomeDude@gmail.com>2009-08-18 21:25:53 -0700
commit14378cbd2df79d7695757b4fcb7a3ca2b1d964fe (patch)
tree7e47432d5faf196d8faf85835b2a47b827bca5d4 /src/gallium/winsys/drm
parentc63bd15f81cecfb421ff798a3e2d0f82b90331db (diff)
radeon-gallium: Stop using outdated ioctls.
Diffstat (limited to 'src/gallium/winsys/drm')
-rw-r--r--src/gallium/winsys/drm/radeon/core/radeon_r300.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/gallium/winsys/drm/radeon/core/radeon_r300.c b/src/gallium/winsys/drm/radeon/core/radeon_r300.c
index d6bb77dc7e..d723876221 100644
--- a/src/gallium/winsys/drm/radeon/core/radeon_r300.c
+++ b/src/gallium/winsys/drm/radeon/core/radeon_r300.c
@@ -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;