Home
last modified time | relevance | path

Searched refs:unlikely (Results 1 – 25 of 53) sorted by relevance

123

/hardware/google/gfxstream/guest/mesa/src/util/
Dralloc.c122 if (unlikely(block == NULL)) in ralloc_size()
193 if (unlikely(ptr == NULL)) in reralloc_size()
203 if (unlikely(ptr == NULL)) in rerzalloc_size()
307 if (unlikely(ptr == NULL)) in ralloc_steal()
323 if (unlikely(old_ctx == NULL)) in ralloc_adopt()
330 if (unlikely(old_info->child == NULL)) in ralloc_adopt()
352 if (unlikely(ptr == NULL)) in ralloc_parent()
372 if (unlikely(str == NULL)) in ralloc_strdup()
388 if (unlikely(str == NULL)) in ralloc_strndup()
408 if (unlikely(both == NULL)) in cat()
[all …]
Du_call_once.h40 if (unlikely(!p_atomic_read_relaxed(&flag->called))) { in util_call_once()
61 if (unlikely(!p_atomic_read_relaxed(&flag->called))) { in util_call_once_data()
Du_debug.h388 if (unlikely(!p_atomic_read_relaxed(&initialized))) { \
412 if (unlikely(!p_atomic_read_relaxed(&initialized))) { \
427 if (unlikely(!p_atomic_read_relaxed(&initialized))) { \
442 if (unlikely(!p_atomic_read_relaxed(&initialized))) { \
Du_cpu_detect.h186 if (unlikely(!p_atomic_read(&_util_cpu_caps_state.detect_done))) in util_get_cpu_caps()
Du_dynarray.h125 if (unlikely(nelts > UINT_MAX / eltsize)) in util_dynarray_resize_bytes()
152 if (unlikely(ngrow > (UINT_MAX / eltsize) || in util_dynarray_grow_bytes()
Dsparse_array.c136 if (unlikely(!root)) { in util_sparse_array_get()
180 if (unlikely(!child)) { in util_sparse_array_get()
Dstring_buffer.c122 if (unlikely(len < 0 || str->length + len + 1 < str->length)) in _mesa_string_buffer_vprintf()
Du_queue.h161 if (unlikely(!util_queue_fence_is_signalled(fence))) in util_queue_fence_wait()
Dmacros.h66 # define unlikely(x) __builtin_expect(!!(x), 0) macro
69 # define unlikely(x) (x) macro
/hardware/google/gfxstream/guest/mesa/src/vulkan/runtime/
Dvk_queue.c224 if (unlikely(submit->_wait_points[i] != NULL)) { in vk_queue_submit_cleanup()
233 if (unlikely(submit->_signal_points[i] != NULL)) { in vk_queue_submit_cleanup()
329 if (unlikely(result != VK_SUCCESS)) { in vk_queue_submit_final()
379 if (unlikely(result != VK_SUCCESS)) in vk_queue_submit_final()
433 if (unlikely(result != VK_SUCCESS)) { in vk_queue_flush()
486 if (unlikely(result != VK_SUCCESS)) { in vk_queue_submit_thread_func()
492 if (unlikely(result != VK_SUCCESS)) { in vk_queue_submit_thread_func()
633 if (unlikely(submit == NULL)) in vk_queue_submit()
786 if (unlikely(result != VK_SUCCESS)) in vk_queue_submit()
806 if (unlikely(result != VK_SUCCESS)) in vk_queue_submit()
[all …]
Dvk_semaphore.c401 if (unlikely(pSignalInfo->value == 0)) { in vk_common_SignalSemaphore()
407 if (unlikely(result != VK_SUCCESS)) in vk_common_SignalSemaphore()
412 if (unlikely(result != VK_SUCCESS)) in vk_common_SignalSemaphore()
447 if (unlikely(semaphore->type == VK_SEMAPHORE_TYPE_TIMELINE)) { in vk_common_ImportSemaphoreWin32HandleKHR()
562 if (unlikely(semaphore->type == VK_SEMAPHORE_TYPE_TIMELINE)) { in vk_common_ImportSemaphoreFdKHR()
657 if (unlikely(semaphore->type != VK_SEMAPHORE_TYPE_BINARY)) { in vk_common_GetSemaphoreFdKHR()
680 if (unlikely(result != VK_SUCCESS)) in vk_common_GetSemaphoreFdKHR()
685 if (unlikely(result != VK_SUCCESS)) in vk_common_GetSemaphoreFdKHR()
702 if (unlikely(result != VK_SUCCESS)) in vk_common_GetSemaphoreFdKHR()
Dvk_sync.c251 if (unlikely(result == VK_TIMEOUT)) in vk_sync_wait()
339 if (unlikely(result == VK_TIMEOUT)) in vk_sync_wait_many()
354 if (unlikely(result != VK_SUCCESS)) in vk_sync_import_opaque_fd()
371 if (unlikely(result != VK_SUCCESS)) in vk_sync_export_opaque_fd()
411 if (unlikely(result != VK_SUCCESS)) in vk_sync_import_win32_handle()
428 if (unlikely(result != VK_SUCCESS)) in vk_sync_export_win32_handle()
Dvk_meta_draw_rects.c236 if (unlikely(result != VK_SUCCESS)) in create_vertex_buffer()
241 if (unlikely(result != VK_SUCCESS)) in create_vertex_buffer()
284 if (unlikely(result != VK_SUCCESS)) { in vk_meta_draw_volume()
324 if (unlikely(result != VK_SUCCESS)) { in vk_meta_draw_rects()
Dvk_fence.c435 if (unlikely(result != VK_SUCCESS)) in vk_common_GetFenceFdKHR()
448 if (unlikely(result != VK_SUCCESS)) in vk_common_GetFenceFdKHR()
453 if (unlikely(result != VK_SUCCESS)) in vk_common_GetFenceFdKHR()
470 if (unlikely(result != VK_SUCCESS)) in vk_common_GetFenceFdKHR()
Dvk_sync_timeline.c137 if (unlikely(result != VK_SUCCESS)) in vk_sync_timeline_alloc_point_locked()
157 if (unlikely(result != VK_SUCCESS)) { in vk_sync_timeline_alloc_point_locked()
167 if (unlikely(result != VK_SUCCESS)) in vk_sync_timeline_alloc_point_locked()
372 if (unlikely(result != VK_SUCCESS)) in vk_sync_timeline_signal_locked()
375 if (unlikely(value <= timeline->highest_past)) { in vk_sync_timeline_signal_locked()
Dvk_log.c93 if (unlikely(objects[i] == NULL)) { in __vk_log_impl()
98 if (unlikely(!objects[i]->client_visible)) { in __vk_log_impl()
115 if (unlikely(!instance) || in __vk_log_impl()
Dvk_object.c178 if (unlikely(device->swapchain_private == NULL)) { in get_swapchain_private_data_locked()
191 if (unlikely(entry == NULL)) { in get_swapchain_private_data_locked()
256 if (unlikely(result != VK_SUCCESS)) in vk_object_base_set_private_data()
Dvk_command_pool.c105 if (unlikely(result != VK_SUCCESS)) { in vk_common_CreateCommandPool()
207 if (unlikely(result != VK_SUCCESS)) in vk_common_AllocateCommandBuffers()
Dvk_command_buffer.h234 unlikely((command_buffer)->record_result != VK_SUCCESS)
Dvk_device.h347 if (unlikely(lost && !device->_lost.reported)) in vk_device_is_lost()
Dvk_meta.c496 if (unlikely(result != VK_SUCCESS)) in vk_meta_create_graphics_pipeline()
564 if (unlikely(result != VK_SUCCESS)) in vk_meta_create_buffer()
584 if (unlikely(result != VK_SUCCESS)) in vk_meta_create_image_view()
Dvk_meta_clear.c244 if (unlikely(result != VK_SUCCESS)) { in vk_meta_clear_attachments()
251 if (unlikely(result != VK_SUCCESS)) { in vk_meta_clear_attachments()
458 if (unlikely(result != VK_SUCCESS)) { in clear_image_level_layers()
/hardware/google/gfxstream/guest/mesa/src/util/perf/
Dcpu_trace.h21 if (unlikely(util_perfetto_is_category_enabled(category))) \
27 if (unlikely(util_perfetto_is_category_enabled(category))) \
/hardware/google/graphics/common/hwc3/
DUtil.h56 if (err) [[unlikely]] return err; \
/hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/appendices/
DVK_KHR_descriptor_update_template.adoc25 For those cases it is also not unlikely that all information required to

123