mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 06:03:36 -04:00
drm/amdgpu: rename context priority levels
Don't leak implementation details about how each priority behaves to
usermode. This allows greater flexibility in the future.
Squash into c2636dc53a
Signed-off-by: Andres Rodriguez <andresx7@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
52c6a62c64
commit
8bc4c256f4
2 changed files with 8 additions and 8 deletions
|
|
@ -172,12 +172,12 @@ union drm_amdgpu_bo_list {
|
|||
|
||||
/* Context priority level */
|
||||
#define AMDGPU_CTX_PRIORITY_UNSET -2048
|
||||
#define AMDGPU_CTX_PRIORITY_LOW_HW -1023
|
||||
#define AMDGPU_CTX_PRIORITY_LOW_SW -512
|
||||
#define AMDGPU_CTX_PRIORITY_VERY_LOW -1023
|
||||
#define AMDGPU_CTX_PRIORITY_LOW -512
|
||||
#define AMDGPU_CTX_PRIORITY_NORMAL 0
|
||||
/* Selecting a priority above NORMAL requires CAP_SYS_NICE or DRM_MASTER */
|
||||
#define AMDGPU_CTX_PRIORITY_HIGH_SW 512
|
||||
#define AMDGPU_CTX_PRIORITY_HIGH_HW 1023
|
||||
#define AMDGPU_CTX_PRIORITY_HIGH 512
|
||||
#define AMDGPU_CTX_PRIORITY_VERY_HIGH 1023
|
||||
|
||||
struct drm_amdgpu_ctx_in {
|
||||
/** AMDGPU_CTX_OP_* */
|
||||
|
|
|
|||
Loading…
Reference in a new issue