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 pinned
> >> buffers in a later patch.
> >> ---
> >>
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 ++
>>
>> src/intel/vulkan/anv
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 ++
>
> src/intel/vulkan/anv_private.h | 11 +++
> 2 files
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))
> >> + return true;
> >> +
> >> +
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(&device->vma_mutex);
>> +
>> + bo->offset = 0;
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(&device->vma_mutex);
> +
> + bo->offset = 0;
So bo are device scoped. There c
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 b/s