Lines Matching defs:result

347    int result;
351 result = default_value;
355 result = strtol(str, &endptr, 0);
358 result = default_value;
362 return result;
662 VkResult result;
704 result = vk_error(instance, VK_ERROR_OUT_OF_HOST_MEMORY);
714 result = vk_physical_device_init(&device->vk, &instance->vk, NULL, &dispatch_table);
715 if (result != VK_SUCCESS) {
735 result = vk_errorf(instance, VK_ERROR_INITIALIZATION_FAILED, "failed to initialize winsys");
765 result = vk_errorf(instance, VK_ERROR_INCOMPATIBLE_DRIVER,
796 result = vk_errorf(instance, VK_ERROR_INITIALIZATION_FAILED, "cannot generate UUID");
868 result = vk_errorf(instance, VK_ERROR_INITIALIZATION_FAILED,
877 result = vk_errorf(instance, VK_ERROR_INITIALIZATION_FAILED,
898 result = radv_init_wsi(device);
899 if (result != VK_SUCCESS) {
900 vk_error(instance, result);
928 return result;
1105 VkResult result;
1119 result = vk_instance_init(&instance->vk, &extensions_supported, &dispatch_table,
1121 if (result != VK_SUCCESS) {
1123 return vk_error(instance, result);
1174 VkResult result = VK_SUCCESS;
1183 result = radv_physical_device_try_create(instance, NULL, &pdevice);
1184 if (result != VK_SUCCESS)
1185 return result;
1208 result = radv_physical_device_try_create(instance, devices[i], &pdevice);
1210 if (result == VK_ERROR_INCOMPATIBLE_DRIVER) {
1211 result = VK_SUCCESS;
1216 if (result != VK_SUCCESS)
1226 return result;
1236 VkResult result = radv_enumerate_physical_devices(instance);
1237 if (result != VK_SUCCESS)
1238 return result;
1259 VkResult result = radv_enumerate_physical_devices(instance);
1260 if (result != VK_SUCCESS)
1261 return result;
2860 VkResult result = vk_queue_init(&queue->vk, &device->vk, create_info, idx);
2861 if (result != VK_SUCCESS)
2862 return result;
2931 VkResult result;
2933 result = device->ws->buffer_create(
2938 if (result != VK_SUCCESS)
2939 return vk_error(device, result);
2941 result = device->ws->buffer_make_resident(device->ws, device->border_color_data.bo, true);
2942 if (result != VK_SUCCESS)
2943 return vk_error(device, result);
3058 VkResult result;
3077 result = radv_CreateImage(radv_device_to_handle(device), &image_create_info,
3079 if (result != VK_SUCCESS)
3080 return result;
3089 result = radv_CreateBuffer(radv_device_to_handle(device), &buffer_create_info,
3091 if (result != VK_SUCCESS)
3108 result = radv_AllocateMemory(radv_device_to_handle(device), &alloc_info,
3110 if (result != VK_SUCCESS)
3120 result = radv_BindBufferMemory2(radv_device_to_handle(device), 1, &bind_info);
3121 if (result != VK_SUCCESS)
3137 return result;
3310 VkResult result;
3446 result =
3448 if (result != VK_SUCCESS) {
3450 return result;
3500 result = device->ws->ctx_create(device->ws, priority, &device->hw_ctx[priority]);
3501 if (result != VK_SUCCESS)
3515 result = VK_ERROR_OUT_OF_HOST_MEMORY;
3524 result = radv_queue_init(device, &device->queues[qfi][q], q, queue_create, global_priority);
3525 if (result != VK_SUCCESS)
3659 result = radv_device_init_meta(device);
3660 if (result != VK_SUCCESS)
3667 result = radv_device_init_border_color(device);
3668 if (result != VK_SUCCESS)
3673 result = radv_device_init_vs_prologs(device);
3674 if (result != VK_SUCCESS)
3688 result = radv_CreatePipelineCache(radv_device_to_handle(device), &ci, NULL, &pc);
3689 if (result != VK_SUCCESS)
3702 result =
3706 if (result != VK_SUCCESS)
3712 result = VK_ERROR_OUT_OF_HOST_MEMORY;
3717 result = VK_ERROR_INITIALIZATION_FAILED;
3765 return result;
4370 VkResult result = VK_SUCCESS;
4378 result = ws->buffer_create(ws, scratch_size, 4096, RADEON_DOMAIN_VRAM, ring_bo_flags,
4380 if (result != VK_SUCCESS)
4389 result = ws->buffer_create(ws, compute_scratch_size, 4096, RADEON_DOMAIN_VRAM, ring_bo_flags,
4391 if (result != VK_SUCCESS)
4396 result = ws->buffer_create(ws, needs->esgs_ring_size, 4096, RADEON_DOMAIN_VRAM, ring_bo_flags,
4398 if (result != VK_SUCCESS)
4403 result = ws->buffer_create(ws, needs->gsvs_ring_size, 4096, RADEON_DOMAIN_VRAM, ring_bo_flags,
4405 if (result != VK_SUCCESS)
4410 result = ws->buffer_create(
4413 if (result != VK_SUCCESS)
4426 result = ws->buffer_create(ws, device->physical_device->task_info.bo_size_bytes, 256,
4429 if (result != VK_SUCCESS)
4432 result = radv_initialise_task_control_buffer(device, task_rings_bo);
4433 if (result != VK_SUCCESS)
4439 result =
4443 if (result != VK_SUCCESS)
4453 result = ws->buffer_create(ws, 256, 4, RADEON_DOMAIN_GDS, ring_bo_flags,
4455 if (result != VK_SUCCESS)
4462 result = ws->buffer_create(ws, 4, 1, RADEON_DOMAIN_OA, ring_bo_flags,
4464 if (result != VK_SUCCESS)
4488 result = ws->buffer_create(
4492 if (result != VK_SUCCESS)
4540 result = VK_ERROR_OUT_OF_HOST_MEMORY;
4612 result = ws->cs_finalize(cs);
4613 if (result != VK_SUCCESS)
4690 return vk_error(queue, result);
4755 VkResult result = device->ws->cs_finalize(cs);
4756 if (result != VK_SUCCESS) {
4775 VkResult result;
4783 result = device->ws->buffer_virtual_bind(device->ws, buffer->bo,
4786 if (result != VK_SUCCESS)
4787 return result;
4798 VkResult result;
4806 result = device->ws->buffer_virtual_bind(device->ws, image->bindings[0].bo,
4809 if (result != VK_SUCCESS)
4810 return result;
4822 VkResult result;
4863 result = device->ws->buffer_virtual_bind(device->ws, image->bindings[0].bo, offset, size,
4865 if (result != VK_SUCCESS)
4866 return result;
4872 result = device->ws->buffer_virtual_bind(device->ws,
4875 if (result != VK_SUCCESS)
4876 return result;
5020 VkResult result = radv_sparse_buffer_bind_memory(device, submission->buffer_binds + i);
5021 if (result != VK_SUCCESS)
5022 return result;
5026 VkResult result =
5028 if (result != VK_SUCCESS)
5029 return result;
5033 VkResult result = radv_sparse_image_bind_memory(device, submission->image_binds + i);
5034 if (result != VK_SUCCESS)
5035 return result;
5069 VkResult result = VK_SUCCESS;
5073 result = VK_ERROR_OUT_OF_HOST_MEMORY;
5077 result = radv_update_ace_preambles(queue);
5078 if (result != VK_SUCCESS)
5119 result = queue->device->ws->cs_submit(
5123 if (result != VK_SUCCESS)
5142 return result;
5153 VkResult result;
5156 result = radv_update_preambles(&queue->state, queue->device, submission->command_buffers,
5158 if (result != VK_SUCCESS)
5159 return result;
5191 result = VK_ERROR_OUT_OF_HOST_MEMORY;
5197 result = radv_queue_submit_with_ace(queue, submission, cs_array, cmd_buffer_count, cs_offset,
5225 result = queue->device->ws->cs_submit(
5229 if (result != VK_SUCCESS)
5249 return result;
5256 VkResult result;
5258 result = radv_queue_submit_bind_sparse_memory(queue->device, submission);
5259 if (result != VK_SUCCESS)
5266 result = radv_queue_submit_empty(queue, submission);
5268 result = radv_queue_submit_normal(queue, submission);
5272 if (result != VK_SUCCESS && result != VK_ERROR_DEVICE_LOST) {
5280 result = vk_device_set_lost(&queue->device->vk, "vkQueueSubmit() failed");
5282 return result;
5296 VkResult result = queue->device->ws->cs_submit(ctx, 1, &submit, 0, NULL, 0, NULL, false);
5297 if (result != VK_SUCCESS)
5435 VkResult result;
5522 result = radv_import_ahb_memory(device, mem, priority, ahb_import_info);
5523 if (result != VK_SUCCESS)
5527 result = radv_create_ahb_memory(device, mem, priority, pAllocateInfo);
5528 if (result != VK_SUCCESS)
5533 result = device->ws->buffer_from_fd(device->ws, import_info->fd, priority, &mem->bo, NULL);
5534 if (result != VK_SUCCESS) {
5552 result = radv_image_create_layout(device, create_info, NULL, mem->image);
5553 if (result != VK_SUCCESS) {
5560 result = device->ws->buffer_from_ptr(device->ws, host_ptr_info->pHostPointer,
5562 if (result != VK_SUCCESS) {
5598 result = VK_ERROR_OUT_OF_DEVICE_MEMORY;
5605 result = device->ws->buffer_create(device->ws, alloc_size,
5609 if (result != VK_SUCCESS) {
5624 result = device->ws->buffer_make_resident(device->ws, mem->bo, true);
5625 if (result != VK_SUCCESS)
5637 return result;
5811 UNUSED VkResult result;
5818 result = radv_CreateImage(device, pInfo->pCreateInfo, NULL, &image);
5819 assert(result == VK_SUCCESS);
5945 VkResult result;
5962 result = device->ws->buffer_create(
5966 if (result != VK_SUCCESS) {
5968 return vk_error(device, result);
6090 VkResult result =
6093 if (result != VK_SUCCESS) {
6095 return vk_error(device, result);
6222 uint32_t result = S_028C78_MAX_UNCOMPRESSED_BLOCK_SIZE(max_uncompressed_block_size) |
6228 result |= S_028C78_INDEPENDENT_128B_BLOCKS_GFX11(independent_128b_blocks) |
6232 result |= S_028C78_INDEPENDENT_128B_BLOCKS_GFX10(independent_128b_blocks);
6235 return result;
7387 bool result = true;
7391 result = radv_thread_trace_set_pstate(device, true);
7392 if (result)
7397 return result;
7415 bool result = radv_device_acquire_performance_counters(device);
7416 return result ? VK_SUCCESS : VK_ERROR_UNKNOWN;