From mboxrd@z Thu Jan 1 00:00:00 1970 From: Damien Lespiau Subject: Re: [RFC] drm/i915: Add variable gem object size support to i915 Date: Wed, 25 Jun 2014 14:34:38 +0100 Message-ID: <20140625133438.GD10084@strange.amr.corp.intel.com> References: <1398697289-5607-1-git-send-email-arun.siluvery@linux.intel.com> <20140625105133.GA3938@strange.amr.corp.intel.com> <20140625111454.GB3938@strange.amr.corp.intel.com> <53AAB6B1.7070107@linux.intel.com> <20140625125748.GA5656@strange.amr.corp.intel.com> <53AACE1C.6080509@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by gabe.freedesktop.org (Postfix) with ESMTP id 2D9AB6E08C for ; Wed, 25 Jun 2014 06:35:26 -0700 (PDT) Content-Disposition: inline In-Reply-To: <53AACE1C.6080509@linux.intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: Tvrtko Ursulin Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Wed, Jun 25, 2014 at 02:26:52PM +0100, Tvrtko Ursulin wrote: > >That's a good question to ask a GL team. In the light of sparse > >textures I think the region idea would be better. > > > >We would need to define what the coordinates mean, for instance: > > - 2D view of the buffer, and the kernel takes care of translating what > > it means for the underlying pages? > > - See the buffer object as an array of pages, and those numbers define > > a region of pages. > > This would mean kernel has to know about all possible tiling > formats? Would that be asking a bit too much (of the kernel)? Not if we see the buffer as an (2D) array of pages. > How (im)possible would it be to allocate backing store on demand, on > page by page basis, on write rather than on binding into address > space? I think Chris would be very upset to lose the performance benefit of pre-faulting the correct pages? -- Damien