drm/radeon: add VCE ring query
authorChristian König <christian.koenig@amd.com>
Mon, 27 Jan 2014 17:16:06 +0000 (10:16 -0700)
committerChristian König <christian.koenig@amd.com>
Tue, 18 Feb 2014 15:11:24 +0000 (16:11 +0100)
Signed-off-by: Christian König <christian.koenig@amd.com>
drivers/gpu/drm/radeon/radeon_kms.c

index 0e078afc5db7cc80b48ddd739dfb6af0479286c3..ea018d53a85e1ffc5e9b7685dbae98db7b770909 100644 (file)
@@ -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;
                }