Skip to content

Commit

Permalink
drm/amdgpu: rename GEM_OP_SET_INITIAL_DOMAIN -> GEM_OP_SET_PLACEMENT
Browse files Browse the repository at this point in the history
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
  • Loading branch information
Marek Olšák authored and Alex Deucher committed Jun 4, 2015
1 parent aeb0aea commit d8f65a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ int amdgpu_gem_op_ioctl(struct drm_device *dev, void *data,
r = -EFAULT;
break;
}
case AMDGPU_GEM_OP_SET_INITIAL_DOMAIN:
case AMDGPU_GEM_OP_SET_PLACEMENT:
if (amdgpu_ttm_tt_has_userptr(robj->tbo.ttm)) {
r = -EPERM;
break;
Expand Down
4 changes: 2 additions & 2 deletions include/uapi/drm/amdgpu_drm.h
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,8 @@ struct drm_amdgpu_gem_op {
uint64_t value; /* input or return value */
};

#define AMDGPU_GEM_OP_GET_GEM_CREATE_INFO 0
#define AMDGPU_GEM_OP_SET_INITIAL_DOMAIN 1
#define AMDGPU_GEM_OP_GET_GEM_CREATE_INFO 0
#define AMDGPU_GEM_OP_SET_PLACEMENT 1

#define AMDGPU_VA_OP_MAP 1
#define AMDGPU_VA_OP_UNMAP 2
Expand Down

0 comments on commit d8f65a2

Please sign in to comment.