提交 1ddce27d 编写于 作者: M Michel Dänzer 提交者: Alex Deucher

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

This is required to properly calculate the tiling parameters
in userspace.
Signed-off-by: NMichel Dänzer <michel.daenzer@amd.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 3a118989
...@@ -340,7 +340,7 @@ int radeon_info_ioctl(struct drm_device *dev, void *data, struct drm_file *filp) ...@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册