summaryrefslogtreecommitdiff
path: root/drivers/gpu
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2014-01-27 21:16:06 +0400
committerChristian König <christian.koenig@amd.com>2014-02-18 19:11:24 +0400
commitf7ba8b04b22d7c74898f53a0e118f31b9d40dcc2 (patch)
tree2a37658deb1db9997e7ff486f8b51f6fa8c29859 /drivers/gpu
parentd93f79376f210e0b19da57a3dc841ba332daa9d0 (diff)
downloadlinux-f7ba8b04b22d7c74898f53a0e118f31b9d40dcc2.tar.xz
drm/radeon: add VCE ring query
Signed-off-by: Christian König <christian.koenig@amd.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/radeon/radeon_kms.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_kms.c b/drivers/gpu/drm/radeon/radeon_kms.c
index 0e078afc5db7..ea018d53a85e 100644
--- a/drivers/gpu/drm/radeon/radeon_kms.c
+++ b/drivers/gpu/drm/radeon/radeon_kms.c
@@ -433,6 +433,9 @@ static int radeon_info_ioctl(struct drm_device *dev, void *data, struct drm_file
case RADEON_CS_RING_UVD:
*value = rdev->ring[R600_RING_TYPE_UVD_INDEX].ready;
break;
+ case RADEON_CS_RING_VCE:
+ *value = rdev->ring[TN_RING_TYPE_VCE1_INDEX].ready;
+ break;
default:
return -EINVAL;
}