Fix pinned buffer fence class.
authorThomas Hellstrom <thomas-at-tungstengraphics-dot-com>
Sat, 22 Sep 2007 12:30:55 +0000 (14:30 +0200)
committerThomas Hellstrom <thomas-at-tungstengraphics-dot-com>
Sat, 22 Sep 2007 12:30:55 +0000 (14:30 +0200)
linux-core/drm_bo.c

index b46d036..717e5da 100644 (file)
@@ -1995,7 +1995,7 @@ drm_bo_set_pin(struct drm_device *dev, struct drm_buffer_object *bo,
                /* Validate the buffer into its pinned location, with no
                 * pending fence.
                 */
-               ret = drm_buffer_object_validate(bo, 0, 0, 0);
+               ret = drm_buffer_object_validate(bo, bo->fence_class, 0, 0);
                if (ret) {
                        mutex_unlock(&bo->mutex);
                        return ret;