drm/amdgpu: add VPE RING TYPE definition
authorHuang Rui <ray.huang@amd.com>
Sat, 23 Apr 2022 14:15:43 +0000 (22:15 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 31 Aug 2023 20:33:09 +0000 (16:33 -0400)
Add RING TYPE for Video Processing Engine.

Signed-off-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h

index e2ab303..5b3e354 100644 (file)
@@ -44,6 +44,7 @@ struct amdgpu_vm;
 #define AMDGPU_MAX_COMPUTE_RINGS       8
 #define AMDGPU_MAX_VCE_RINGS           3
 #define AMDGPU_MAX_UVD_ENC_RINGS       2
+#define AMDGPU_MAX_VPE_RINGS           2
 
 enum amdgpu_ring_priority_level {
        AMDGPU_RING_PRIO_0,
@@ -77,6 +78,7 @@ enum amdgpu_ring_type {
        AMDGPU_RING_TYPE_VCN_DEC        = AMDGPU_HW_IP_VCN_DEC,
        AMDGPU_RING_TYPE_VCN_ENC        = AMDGPU_HW_IP_VCN_ENC,
        AMDGPU_RING_TYPE_VCN_JPEG       = AMDGPU_HW_IP_VCN_JPEG,
+       AMDGPU_RING_TYPE_VPE            = AMDGPU_HW_IP_VPE,
        AMDGPU_RING_TYPE_KIQ,
        AMDGPU_RING_TYPE_MES
 };