Skip to content

Commit

Permalink
drm/i915: Ensure that if we ever try to pin+fence it is mappable.
Browse files Browse the repository at this point in the history
When merging Daniel's full-gtt patches I had a set of tweaks which I
thought I had undone. I was half right...

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=31286
Reported-by: jinjin.wang@intel.com
Reported-by: Alexey Fisher <bug-track@fisher-privat.net>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
  • Loading branch information
Chris Wilson committed Nov 3, 2010
1 parent 27153f7 commit 085ce26
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions drivers/gpu/drm/i915/i915_gem.c
Original file line number Diff line number Diff line change
Expand Up @@ -4151,6 +4151,7 @@ i915_gem_object_pin(struct drm_gem_object *obj, uint32_t alignment,
int ret;

BUG_ON(obj_priv->pin_count == DRM_I915_GEM_OBJECT_MAX_PIN_COUNT);
BUG_ON(need_fence && !mappable);
WARN_ON(i915_verify_lists(dev));

if (obj_priv->gtt_space != NULL) {
Expand Down
3 changes: 2 additions & 1 deletion drivers/gpu/drm/i915/intel_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -1462,7 +1462,8 @@ intel_pin_and_fence_fb_obj(struct drm_device *dev,
}

ret = i915_gem_object_pin(obj, alignment,
!pipelined, obj_priv->tiling_mode);
!pipelined || obj_priv->tiling_mode,
obj_priv->tiling_mode);
if (ret)
return ret;

Expand Down

0 comments on commit 085ce26

Please sign in to comment.