diff options
| author | Satyajit Sahu <[email protected]> | 2021-08-27 06:28:45 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2021-09-01 20:55:11 +0000 |
| commit | 0ad29a4eb13577ff5c7e5d545d4a49c79052ffb0 (patch) | |
| tree | 329086174952819d83f35b4600404834d505aa28 /drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | |
| parent | drm/amdgpu/vce: set the priority for each ring (diff) | |
| download | kernel-0ad29a4eb13577ff5c7e5d545d4a49c79052ffb0.tar.gz kernel-0ad29a4eb13577ff5c7e5d545d4a49c79052ffb0.zip | |
drm/amdgpu/vcn: set the priority for each encode ring
VCN has multiple rings. Set the proper priority level for each
encode ring while initializing.
Signed-off-by: Satyajit Sahu <[email protected]>
Reviewed-by: Christian König <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c index 008a308a4eca..561296a85b43 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c @@ -949,3 +949,17 @@ error: return r; } + +enum amdgpu_ring_priority_level amdgpu_vcn_get_enc_ring_prio(int ring) +{ + switch(ring) { + case 0: + return AMDGPU_RING_PRIO_0; + case 1: + return AMDGPU_RING_PRIO_1; + case 2: + return AMDGPU_RING_PRIO_2; + default: + return AMDGPU_RING_PRIO_0; + } +} |
