aboutsummaryrefslogtreecommitdiff
path: root/linux-core/drm_bo.c
diff options
context:
space:
mode:
authorThomas Hellstrom <thomas-at-tungstengraphics-dot-com>2007-10-19 16:28:47 +0200
committerThomas Hellstrom <thomas-at-tungstengraphics-dot-com>2007-10-19 16:28:47 +0200
commit733ff568346e8fe40e9790f21f8b7efc659d5d12 (patch)
treeb5793660d312aecd1c0e86e2a103fdb08fa13acf /linux-core/drm_bo.c
parentcf2d1bba5513ae38d8efbaf50251fc136ed1d414 (diff)
No fence_class argument on drmBOSetStatus since it's not
associated with a particular command submission.
Diffstat (limited to 'linux-core/drm_bo.c')
-rw-r--r--linux-core/drm_bo.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/linux-core/drm_bo.c b/linux-core/drm_bo.c
index 89c014e3..cc4743dc 100644
--- a/linux-core/drm_bo.c
+++ b/linux-core/drm_bo.c
@@ -1524,7 +1524,9 @@ EXPORT_SYMBOL(drm_bo_do_validate);
int drm_bo_handle_validate(struct drm_file * file_priv, uint32_t handle,
uint32_t fence_class,
- uint64_t flags, uint64_t mask, uint32_t hint,
+ uint64_t flags, uint64_t mask,
+ uint32_t hint,
+ int use_old_fence_class,
struct drm_bo_info_rep * rep,
struct drm_buffer_object **bo_rep)
{
@@ -1537,10 +1539,12 @@ int drm_bo_handle_validate(struct drm_file * file_priv, uint32_t handle,
bo = drm_lookup_buffer_object(file_priv, handle, 1);
mutex_unlock(&dev->struct_mutex);
- if (!bo) {
+ if (!bo)
return -EINVAL;
- }
-
+
+ if (use_old_fence_class)
+ fence_class = bo->fence_class;
+
/*
* Only allow creator to change shared buffer mask.
*/
@@ -1780,6 +1784,7 @@ int drm_bo_setstatus_ioctl(struct drm_device *dev,
req->flags,
req->mask,
req->hint | DRM_BO_HINT_DONT_FENCE,
+ 1,
rep, NULL);
if (ret)