different (hopefully somewhat sensible) error code.
This has the added benefit that out-of-gtt can be distinguish from
broken fence accounting by simply looking at the ioctl return code.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
---
drivers/gpu/drm/i915/i915_gem.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
@@ -2735,7 +2735,7 @@ i915_gem_object_get_fence(struct drm_i915_gem_object *obj,
reg = i915_find_fence_reg(dev, pipelined);
if (reg == NULL)
- return -ENOSPC;
+ return -EDEADLK;
if ((old = reg->obj)) {
drm_gem_object_reference(&old->base);