summaryrefslogtreecommitdiffstats
path: root/include/uapi
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2014-08-07 09:36:02 +0200
committerAlex Deucher <alexander.deucher@amd.com>2014-08-11 11:04:25 -0400
commit2a84a4476d6e13de72472f6ca4338aed0a8269b8 (patch)
treea39411c8cb0dfca623e12801511818a82cd4d74a /include/uapi
parentddd00e33e17a62c5f44377ab42e7562ccfae7bd1 (diff)
downloadlinux-stable-2a84a4476d6e13de72472f6ca4338aed0a8269b8.tar.gz
linux-stable-2a84a4476d6e13de72472f6ca4338aed0a8269b8.tar.bz2
linux-stable-2a84a4476d6e13de72472f6ca4338aed0a8269b8.zip
drm/radeon: add userptr flag to directly validate the BO to GTT
This way we test userptr availability at BO creation time instead of first use. Signed-off-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/drm/radeon_drm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/drm/radeon_drm.h b/include/uapi/drm/radeon_drm.h
index 9720e1a36848..5dc61c2d4c73 100644
--- a/include/uapi/drm/radeon_drm.h
+++ b/include/uapi/drm/radeon_drm.h
@@ -817,6 +817,7 @@ struct drm_radeon_gem_create {
*/
#define RADEON_GEM_USERPTR_READONLY (1 << 0)
#define RADEON_GEM_USERPTR_ANONONLY (1 << 1)
+#define RADEON_GEM_USERPTR_VALIDATE (1 << 2)
struct drm_radeon_gem_userptr {
uint64_t addr;