mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
radeon-gallium: Stop using outdated ioctls.
This commit is contained in:
parent
c63bd15f81
commit
14378cbd2d
1 changed files with 3 additions and 11 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue