diff options
author | Keith Packard <keithp@keithp.com> | 2008-05-02 12:28:49 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2008-05-02 12:29:17 -0700 |
commit | 39e20bcd5f4bf9fedac80188fda2e9fcab2f0360 (patch) | |
tree | 7349a479090d3fd8917ec775610fc304834e1b4b /linux-core/i915_gem.c | |
parent | 49e8e3372afcf5fab9ffef5691d87ad8bc19599a (diff) |
Add name/open ioctls, separate handle and pointer ref counts.
Names are just another unique integer set (from another idr object).
Names are removed when the user refernces (handles) are all destroyed --
this required that handles for objects be counted separately from
internal kernel references (so that we can tell when the handles are all
gone).
Diffstat (limited to 'linux-core/i915_gem.c')
-rw-r--r-- | linux-core/i915_gem.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/linux-core/i915_gem.c b/linux-core/i915_gem.c index 16bb3923..2ac74b4b 100644 --- a/linux-core/i915_gem.c +++ b/linux-core/i915_gem.c @@ -105,8 +105,10 @@ i915_gem_object_bind_to_gtt(struct drm_gem_object *obj, unsigned alignment) if (alignment == 0) alignment = PAGE_SIZE; - if (alignment & (PAGE_SIZE - 1)) + if (alignment & (PAGE_SIZE - 1)) { + DRM_ERROR("Invalid object alignment requested %u\n", alignment); return -EINVAL; + } free_space = drm_memrange_search_free(&dev_priv->mm.gtt_space, obj->size, |