Lines Matching refs:new_impl
729 struct anv_fence_impl new_impl = { in anv_ImportFenceFdKHR() local
735 new_impl.type = ANV_FENCE_TYPE_SYNCOBJ; in anv_ImportFenceFdKHR()
737 new_impl.syncobj = anv_gem_syncobj_fd_to_handle(device, fd); in anv_ImportFenceFdKHR()
738 if (!new_impl.syncobj) in anv_ImportFenceFdKHR()
748 new_impl.type = ANV_FENCE_TYPE_SYNCOBJ; in anv_ImportFenceFdKHR()
750 new_impl.syncobj = anv_gem_syncobj_create(device, 0); in anv_ImportFenceFdKHR()
751 if (!new_impl.syncobj) in anv_ImportFenceFdKHR()
754 if (anv_gem_syncobj_import_sync_file(device, new_impl.syncobj, fd)) { in anv_ImportFenceFdKHR()
755 anv_gem_syncobj_destroy(device, new_impl.syncobj); in anv_ImportFenceFdKHR()
779 fence->temporary = new_impl; in anv_ImportFenceFdKHR()
782 fence->permanent = new_impl; in anv_ImportFenceFdKHR()
1010 struct anv_semaphore_impl new_impl = { in anv_ImportSemaphoreFdKHR() local
1017 new_impl.type = ANV_SEMAPHORE_TYPE_DRM_SYNCOBJ; in anv_ImportSemaphoreFdKHR()
1019 new_impl.syncobj = anv_gem_syncobj_fd_to_handle(device, fd); in anv_ImportSemaphoreFdKHR()
1020 if (!new_impl.syncobj) in anv_ImportSemaphoreFdKHR()
1023 new_impl.type = ANV_SEMAPHORE_TYPE_BO; in anv_ImportSemaphoreFdKHR()
1026 fd, &new_impl.bo); in anv_ImportSemaphoreFdKHR()
1030 if (new_impl.bo->size < 4096) { in anv_ImportSemaphoreFdKHR()
1031 anv_bo_cache_release(device, &device->bo_cache, new_impl.bo); in anv_ImportSemaphoreFdKHR()
1038 assert(!(new_impl.bo->flags & EXEC_OBJECT_ASYNC)); in anv_ImportSemaphoreFdKHR()
1054 new_impl = (struct anv_semaphore_impl) { in anv_ImportSemaphoreFdKHR()
1066 semaphore->temporary = new_impl; in anv_ImportSemaphoreFdKHR()
1069 semaphore->permanent = new_impl; in anv_ImportSemaphoreFdKHR()