drm/amdgpu: rename GEM_OP_SET_INITIAL_DOMAIN -> GEM_OP_SET_PLACEMENT
authorMarek Olšák <marek.olsak@amd.com>
Wed, 27 May 2015 12:30:38 +0000 (14:30 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 4 Jun 2015 01:03:55 +0000 (21:03 -0400)
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
include/uapi/drm/amdgpu_drm.h

index c90b74da0027b973007bdd7115d24b66782b3ce0..ad5b9c676fd8b59ce19bea29313b3f4ee7aa8cf5 100644 (file)
@@ -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;
index 64a07ac3b4b96612a390b2397f291d59d505f06f..cd54891b1d5c9fd5289d1f7a736aa2f81fc2b306 100644 (file)
@@ -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