Re: [Mesa-dev] [PATCH 5/9] anv: Add vma_heap allocators in anv_device

2018-05-07 Thread Jason Ekstrand
On Mon, May 7, 2018 at 9:24 AM, Scott D Phillips wrote: > Jason Ekstrand writes: > > > On Wed, May 2, 2018 at 9:01 AM, Scott D Phillips < > scott.d.phill...@intel.com > >> wrote: > > > >> These will be used to assign virtual addresses to soft

Re: [Mesa-dev] [PATCH 5/9] anv: Add vma_heap allocators in anv_device

2018-05-07 Thread Scott D Phillips
Jason Ekstrand writes: > On Wed, May 2, 2018 at 9:01 AM, Scott D Phillips > wrote: > >> These will be used to assign virtual addresses to soft pinned >> buffers in a later patch. >> --- >> src/intel/vulkan/anv_device.c | 75

Re: [Mesa-dev] [PATCH 5/9] anv: Add vma_heap allocators in anv_device

2018-05-03 Thread Jason Ekstrand
On Wed, May 2, 2018 at 9:01 AM, Scott D Phillips wrote: > These will be used to assign virtual addresses to soft pinned > buffers in a later patch. > --- > src/intel/vulkan/anv_device.c | 75 ++ > >

Re: [Mesa-dev] [PATCH 5/9] anv: Add vma_heap allocators in anv_device

2018-05-02 Thread Chris Wilson
Quoting Scott D Phillips (2018-05-02 20:24:01) > Chris Wilson writes: > > > Quoting Scott D Phillips (2018-05-02 17:01:05) > >> +bool > >> +anv_vma_alloc(struct anv_device *device, struct anv_bo *bo) > >> +{ > >> + if (!(bo->flags & EXEC_OBJECT_PINNED)) > >> +

Re: [Mesa-dev] [PATCH 5/9] anv: Add vma_heap allocators in anv_device

2018-05-02 Thread Scott D Phillips
Chris Wilson writes: > Quoting Scott D Phillips (2018-05-02 17:01:05) >> +bool >> +anv_vma_alloc(struct anv_device *device, struct anv_bo *bo) >> +{ >> + if (!(bo->flags & EXEC_OBJECT_PINNED)) >> + return true; >> + >> + pthread_mutex_lock(>vma_mutex); >> + >>

Re: [Mesa-dev] [PATCH 5/9] anv: Add vma_heap allocators in anv_device

2018-05-02 Thread Chris Wilson
Quoting Scott D Phillips (2018-05-02 17:01:05) > +bool > +anv_vma_alloc(struct anv_device *device, struct anv_bo *bo) > +{ > + if (!(bo->flags & EXEC_OBJECT_PINNED)) > + return true; > + > + pthread_mutex_lock(>vma_mutex); > + > + bo->offset = 0; So bo are device scoped. There can only

[Mesa-dev] [PATCH 5/9] anv: Add vma_heap allocators in anv_device

2018-05-02 Thread Scott D Phillips
These will be used to assign virtual addresses to soft pinned buffers in a later patch. --- src/intel/vulkan/anv_device.c | 75 ++ src/intel/vulkan/anv_private.h | 11 +++ 2 files changed, 86 insertions(+) diff --git a/src/intel/vulkan/anv_device.c