Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1ddce27d authored by Michel Dänzer's avatar Michel Dänzer Committed by Alex Deucher
Browse files

drm/radeon/cik: Return backend map information to userspace



This is required to properly calculate the tiling parameters
in userspace.

Signed-off-by: default avatarMichel Dänzer <michel.daenzer@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 3a118989
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -340,7 +340,7 @@ int radeon_info_ioctl(struct drm_device *dev, void *data, struct drm_file *filp)
		break;
		break;
	case RADEON_INFO_BACKEND_MAP:
	case RADEON_INFO_BACKEND_MAP:
		if (rdev->family >= CHIP_BONAIRE)
		if (rdev->family >= CHIP_BONAIRE)
			return -EINVAL;
			*value = rdev->config.cik.backend_map;
		else if (rdev->family >= CHIP_TAHITI)
		else if (rdev->family >= CHIP_TAHITI)
			*value = rdev->config.si.backend_map;
			*value = rdev->config.si.backend_map;
		else if (rdev->family >= CHIP_CAYMAN)
		else if (rdev->family >= CHIP_CAYMAN)