diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2011-04-26 13:27:43 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2011-04-27 17:03:56 +1000 |
commit | 6565945b60922211c299968ba66a66617af32c9f (patch) | |
tree | fca477c8c1d8da6f918898fa6f1b75888779f47f /drivers/gpu | |
parent | 834f0c353ae430c1a6ce023c9b77bbd3ff9241a7 (diff) | |
download | blackbird-op-linux-6565945b60922211c299968ba66a66617af32c9f.tar.gz blackbird-op-linux-6565945b60922211c299968ba66a66617af32c9f.zip |
drm/radeon/kms: add info query for tile pipes
needed by mesa for htile setup.
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_kms.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_kms.c b/drivers/gpu/drm/radeon/radeon_kms.c index bf7d4c061451..871df0376b1c 100644 --- a/drivers/gpu/drm/radeon/radeon_kms.c +++ b/drivers/gpu/drm/radeon/radeon_kms.c @@ -221,6 +221,19 @@ int radeon_info_ioctl(struct drm_device *dev, void *data, struct drm_file *filp) return -EINVAL; } break; + case RADEON_INFO_NUM_TILE_PIPES: + if (rdev->family >= CHIP_CAYMAN) + value = rdev->config.cayman.max_tile_pipes; + else if (rdev->family >= CHIP_CEDAR) + value = rdev->config.evergreen.max_tile_pipes; + else if (rdev->family >= CHIP_RV770) + value = rdev->config.rv770.max_tile_pipes; + else if (rdev->family >= CHIP_R600) + value = rdev->config.r600.max_tile_pipes; + else { + return -EINVAL; + } + break; default: DRM_DEBUG_KMS("Invalid request %d\n", info->request); return -EINVAL; |