summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2014-01-27 18:16:06 +0100
committerChristian König <christian.koenig@amd.com>2014-02-18 16:11:24 +0100
commitf7ba8b04b22d7c74898f53a0e118f31b9d40dcc2 (patch)
tree2a37658deb1db9997e7ff486f8b51f6fa8c29859
parentdrm/radeon: initial VCE support v4 (diff)
downloadlinux-f7ba8b04b22d7c74898f53a0e118f31b9d40dcc2.tar.xz
linux-f7ba8b04b22d7c74898f53a0e118f31b9d40dcc2.zip
drm/radeon: add VCE ring query
Signed-off-by: Christian König <christian.koenig@amd.com>
-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;
}