Lines Matching defs:result

418    VkResult result = anv_init_meminfo(device, fd);
419 if (result != VK_SUCCESS)
420 return result;
741 VkResult result;
759 result = vk_error(instance, VK_ERROR_INCOMPATIBLE_DRIVER);
774 result = vk_errorf(instance, VK_ERROR_INCOMPATIBLE_DRIVER,
783 result = vk_error(instance, VK_ERROR_OUT_OF_HOST_MEMORY);
793 result = vk_physical_device_init(&device->vk, &instance->vk,
796 if (result != VK_SUCCESS) {
797 vk_error(instance, result);
813 result = vk_errorf(device, VK_ERROR_INITIALIZATION_FAILED,
820 result = vk_errorf(device, VK_ERROR_INITIALIZATION_FAILED,
826 result = vk_errorf(device, VK_ERROR_INITIALIZATION_FAILED,
833 result = vk_errorf(device, VK_ERROR_INITIALIZATION_FAILED,
843 result = vk_errorf(device, VK_ERROR_INITIALIZATION_FAILED,
849 result = vk_errorf(device, VK_ERROR_INITIALIZATION_FAILED,
884 result = anv_physical_device_init_heaps(device, fd);
885 if (result != VK_SUCCESS)
963 result = vk_error(instance, VK_ERROR_OUT_OF_HOST_MEMORY);
975 result = anv_physical_device_init_uuids(device);
976 if (result != VK_SUCCESS)
1004 result = anv_init_wsi(device);
1005 if (result != VK_SUCCESS)
1052 return result;
1109 VkResult result;
1127 result = vk_instance_init(&instance->vk, &instance_extensions,
1129 if (result != VK_SUCCESS) {
1131 return vk_error(NULL, result);
1186 VkResult result = VK_SUCCESS;
1193 result = anv_physical_device_try_create(instance, devices[i],
1196 if (result == VK_ERROR_INCOMPATIBLE_DRIVER) {
1197 result = VK_SUCCESS;
1202 if (result != VK_SUCCESS)
1211 return result;
1223 VkResult result = anv_enumerate_physical_devices(instance);
1224 if (result != VK_SUCCESS)
1225 return result;
1247 VkResult result = anv_enumerate_physical_devices(instance);
1248 if (result != VK_SUCCESS)
1249 return result;
2949 VkResult result = anv_device_alloc_bo(device, "trivial-batch", 4096,
2953 if (result != VK_SUCCESS)
2954 return result;
3079 VkResult result;
3138 result = vk_device_init(&device->vk, &physical_device->vk,
3140 if (result != VK_SUCCESS)
3167 result = vk_error(device, VK_ERROR_INITIALIZATION_FAILED);
3205 result = vk_error(device, VK_ERROR_INITIALIZATION_FAILED);
3222 result = vk_error(device, VK_ERROR_OUT_OF_HOST_MEMORY);
3239 result = anv_queue_init(device, &device->queues[device->queue_count],
3241 if (result != VK_SUCCESS)
3250 result = vk_error(device, VK_ERROR_INITIALIZATION_FAILED);
3282 result = vk_error(device, VK_ERROR_NOT_PERMITTED_KHR);
3300 result = vk_error(device, VK_ERROR_INITIALIZATION_FAILED);
3306 result = vk_error(device, VK_ERROR_INITIALIZATION_FAILED);
3311 result = vk_error(device, VK_ERROR_INITIALIZATION_FAILED);
3316 result = vk_error(device, VK_ERROR_INITIALIZATION_FAILED);
3321 result = anv_bo_cache_init(&device->bo_cache, device);
3322 if (result != VK_SUCCESS)
3331 result = anv_state_pool_init(&device->general_state_pool, device,
3334 if (result != VK_SUCCESS)
3337 result = anv_state_pool_init(&device->dynamic_state_pool, device,
3340 if (result != VK_SUCCESS)
3356 result = anv_state_pool_init(&device->instruction_state_pool, device,
3359 if (result != VK_SUCCESS)
3362 result = anv_state_pool_init(&device->surface_state_pool, device,
3365 if (result != VK_SUCCESS)
3372 result = anv_state_pool_init(&device->binding_table_pool, device,
3380 result = anv_state_pool_init(&device->binding_table_pool, device,
3386 if (result != VK_SUCCESS)
3396 result = anv_device_alloc_bo(device, "workaround", 4096,
3402 if (result != VK_SUCCESS)
3422 result = anv_device_alloc_bo(device, "ray queries",
3427 if (result != VK_SUCCESS)
3431 result = anv_device_init_trivial_batch(device);
3432 if (result != VK_SUCCESS)
3474 result = anv_genX(&device->info, init_device_state)(device);
3475 if (result != VK_SUCCESS)
3482 result = vk_error(device, VK_ERROR_OUT_OF_HOST_MEMORY);
3495 result = vk_error(device, VK_ERROR_OUT_OF_HOST_MEMORY);
3499 result = anv_device_init_rt_shaders(device);
3500 if (result != VK_SUCCESS) {
3501 result = vk_error(device, VK_ERROR_OUT_OF_HOST_MEMORY);
3574 return result;
3782 VkResult result = VK_SUCCESS;
3906 result = anv_import_ahw_memory(_device, mem, ahw_import_info);
3907 if (result != VK_SUCCESS)
3912 result = anv_create_ahw_memory(_device, mem, pAllocateInfo);
3913 if (result != VK_SUCCESS)
3929 result = anv_device_import_bo(device, fd_info->fd, alloc_flags,
3931 if (result != VK_SUCCESS)
3943 result = vk_errorf(device, VK_ERROR_INVALID_EXTERNAL_HANDLE,
3968 result = vk_error(device, VK_ERROR_INVALID_EXTERNAL_HANDLE);
3975 result = anv_device_import_bo_from_host_ptr(device,
3981 if (result != VK_SUCCESS)
3996 result = anv_device_alloc_bo(device, "user", pAllocateInfo->allocationSize,
3998 if (result != VK_SUCCESS)
4009 result = anv_device_set_bo_tiling(device, mem->bo,
4012 if (result != VK_SUCCESS) {
4024 result = vk_errorf(device, VK_ERROR_OUT_OF_DEVICE_MEMORY,
4040 return result;
4209 VkResult result = anv_device_map_bo(device, mem->bo, map_offset,
4211 if (result != VK_SUCCESS)
4212 return result;