From: Chris Wilson Subject: Re: [PATCH 19/29] drm/i915: turn bound_ggtt checks to bound_any Date: Sat, 3 Aug 2013 12:03:35 +0100 Message-ID: <20130803110335.GE4878@cantiga.alporthouse.com> References: <1375315222-4785-1-git-send-email-ben@bwidawsk.net> <1375315222-4785-20-git-send-email-ben@bwidawsk.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from fireflyinternet.com (s16502780.onlinehome-server.info [87.106.93.118]) by gabe.freedesktop.org (Postfix) with ESMTP id 8BC5DE67E5 for ; Sat, 3 Aug 2013 04:03:41 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1375315222-4785-20-git-send-email-ben@bwidawsk.net> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: Ben Widawsky Cc: Intel GFX List-Id: intel-gfx@lists.freedesktop.org On Wed, Jul 31, 2013 at 05:00:12PM -0700, Ben Widawsky wrote: > In some places, we want to know if an object is bound in any address > space, and not just the global GTT. This often applies when there is a > single global resource (object, pages, etc.) > > function | reason > -------------------------------------------------- > i915_gem_object_is_inactive | global object > i915_gem_object_put_pages | object's pages > 915_gem_object_unpin | global object > i915_gem_execbuffer_unreserve_object | temporary until we plumb vma > pread/pread | object's domain Most of these we want to operate on ggtt, so this change looks confused at best. -Chris -- Chris Wilson, Intel Open Source Technology Centre