[Mesa-dev] [PATCH] anv: intel: add softpin flag on imported BOs

Tapani Pälli tapani.palli at intel.com
Tue Jun 5 11:32:45 UTC 2018



On 05.06.2018 14:29, Lionel Landwerlin wrote:
> On 05/06/18 11:28, Lionel Landwerlin wrote:
>> Looks like we forgot to update this bit of the driver for softpin.
>>
>> Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
> 
> I guess :
> 
> Fixes: 4affeba1e9eb42 ("anv: Soft-pin everything else")

LGTM

Reviewed-by: Tapani Pälli <tapani.palli at intel.com>

>> ---
>>   src/intel/vulkan/anv_intel.c | 2 ++
>>   1 file changed, 2 insertions(+)
>>
>> diff --git a/src/intel/vulkan/anv_intel.c b/src/intel/vulkan/anv_intel.c
>> index 431cef5c6ac..06db5787a9c 100644
>> --- a/src/intel/vulkan/anv_intel.c
>> +++ b/src/intel/vulkan/anv_intel.c
>> @@ -76,6 +76,8 @@ VkResult anv_CreateDmaBufImageINTEL(
>>      uint64_t bo_flags = 0;
>>      if (device->instance->physicalDevice.supports_48bit_addresses)
>>         bo_flags |= EXEC_OBJECT_SUPPORTS_48B_ADDRESS;
>> +   if (device->instance->physicalDevice.use_softpin)
>> +      bo_flags |= EXEC_OBJECT_PINNED;
>>      result = anv_bo_cache_import(device, &device->bo_cache,
>>                                   pCreateInfo->fd, bo_flags, &mem->bo);
> 
> 
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list