Re: [Mesa-dev] [PATCH v2 07/18] anv/allocator: Add a BO cache

2017-03-15 Thread Chris Wilson
On Wed, Mar 15, 2017 at 08:54:40AM -0700, Jason Ekstrand wrote: >On Wed, Mar 15, 2017 at 8:37 AM, Chris Wilson ><[1]ch...@chris-wilson.co.uk> wrote: > > On Wed, Mar 15, 2017 at 08:28:24AM -0700, Jason Ekstrand wrote: > >    On Wed, Mar 15, 2017 at 5:21 AM, Chris Wilson > > 

Re: [Mesa-dev] [PATCH v2 07/18] anv/allocator: Add a BO cache

2017-03-15 Thread Jason Ekstrand
On Wed, Mar 15, 2017 at 8:37 AM, Chris Wilson wrote: > On Wed, Mar 15, 2017 at 08:28:24AM -0700, Jason Ekstrand wrote: > >On Wed, Mar 15, 2017 at 5:21 AM, Chris Wilson > ><[1]ch...@chris-wilson.co.uk> wrote: > > > > On Wed, Mar 15, 2017 at 09:50:57AM +, Chris Wilson wrote: > >

Re: [Mesa-dev] [PATCH v2 07/18] anv/allocator: Add a BO cache

2017-03-15 Thread Chris Wilson
On Wed, Mar 15, 2017 at 08:28:24AM -0700, Jason Ekstrand wrote: >On Wed, Mar 15, 2017 at 5:21 AM, Chris Wilson ><[1]ch...@chris-wilson.co.uk> wrote: > > On Wed, Mar 15, 2017 at 09:50:57AM +, Chris Wilson wrote: > > On Tue, Mar 14, 2017 at 10:43:07PM -0700, Jason Ekstrand wrot

Re: [Mesa-dev] [PATCH v2 07/18] anv/allocator: Add a BO cache

2017-03-15 Thread Jason Ekstrand
On Wed, Mar 15, 2017 at 5:21 AM, Chris Wilson wrote: > On Wed, Mar 15, 2017 at 09:50:57AM +, Chris Wilson wrote: > > On Tue, Mar 14, 2017 at 10:43:07PM -0700, Jason Ekstrand wrote: > > > +void > > > +anv_bo_cache_release(struct anv_device *device, > > > + struct anv_bo_cac

Re: [Mesa-dev] [PATCH v2 07/18] anv/allocator: Add a BO cache

2017-03-15 Thread Chris Wilson
On Wed, Mar 15, 2017 at 09:50:57AM +, Chris Wilson wrote: > On Tue, Mar 14, 2017 at 10:43:07PM -0700, Jason Ekstrand wrote: > > +void > > +anv_bo_cache_release(struct anv_device *device, > > + struct anv_bo_cache *cache, > > + struct anv_bo *bo_in, > > +

Re: [Mesa-dev] [PATCH v2 07/18] anv/allocator: Add a BO cache

2017-03-15 Thread Chris Wilson
On Tue, Mar 14, 2017 at 10:43:07PM -0700, Jason Ekstrand wrote: > +void > +anv_bo_cache_release(struct anv_device *device, > + struct anv_bo_cache *cache, > + struct anv_bo *bo_in, > + VkAllocationCallbacks *alloc) > +{ > + assert(anv_bo

[Mesa-dev] [PATCH v2 07/18] anv/allocator: Add a BO cache

2017-03-14 Thread Jason Ekstrand
This cache allows us to easily ensure that we have a unique anv_bo for each gem handle. We'll need this in order to support multiple-import of memory objects and semaphores. v2 (Jason Ekstrand): - Reject BO imports if the size doesn't match the prime fd size as reported by lseek(). --- src/

[Mesa-dev] [PATCH v2 07/18] anv/allocator: Add a BO cache

2017-03-13 Thread Jason Ekstrand
This cache allows us to easily ensure that we have a unique anv_bo for each gem handle. We'll need this in order to support multiple-import of memory objects and semaphores. --- src/intel/vulkan/anv_allocator.c | 212 +++ src/intel/vulkan/anv_private.h | 26