summaryrefslogtreecommitdiff
path: root/linux-core
diff options
context:
space:
mode:
authorThomas Hellstrom <thomas-at-tungstengraphics-dot-com>2007-09-22 13:59:56 +0200
committerThomas Hellstrom <thomas-at-tungstengraphics-dot-com>2007-09-22 13:59:56 +0200
commit0774090d5b7d3eba734086b437021039bc19c365 (patch)
tree156081f64988833d9ebdd410d31eb0e6f0f4b079 /linux-core
parentbea727b8387f3094b9921004d7686a2d77184466 (diff)
Fix drm_bo.c compiling.
Diffstat (limited to 'linux-core')
-rw-r--r--linux-core/drm_bo.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/linux-core/drm_bo.c b/linux-core/drm_bo.c
index 1913df44..49a57a85 100644
--- a/linux-core/drm_bo.c
+++ b/linux-core/drm_bo.c
@@ -1515,13 +1515,6 @@ int drm_bo_do_validate(struct drm_buffer_object *bo,
if (ret)
goto out;
- if ((mask & flags & DRM_BO_FLAG_NO_EVICT) && !DRM_SUSER(DRM_CURPROC)) {
- DRM_ERROR
- ("DRM_BO_FLAG_NO_EVICT is only available to priviliged "
- "processes\n");
- return -EPERM;
- }
-
DRM_FLAG_MASKED(flags, bo->mem.mask, ~mask);
ret = drm_bo_new_mask(bo, flags, hint);
@@ -1706,7 +1699,7 @@ int drm_buffer_object_create(struct drm_device *dev,
}
bo->fence_class = 0;
- ret = driver->fence_type(bo, &bo->fence_type);
+ ret = driver->fence_type(bo, &bo->fence_class, &bo->fence_type);
if (ret) {
DRM_ERROR("Driver did not support given buffer permissions\n");
goto out_err;