/hardware/google/gfxstream/guest/mesa/src/util/ |
D | u_debug.c | 322 namealign = MAX2(namealign, strlen(flags->name)); in debug_parse_flags_option() 433 for (; n = strcspn(s, ", "), *s; s += MAX2(1, n)) { in parse_debug_string() 462 for (; n = strcspn(s, ", "), *s; s += MAX2(1, n)) { in parse_enable_string() 495 for (unsigned n; n = strcspn(list, ","), *list; list += MAX2(1, n)) { in comma_separated_list_contains()
|
D | u_math.h | 632 #define MAX2( A, B ) ( (A)>(B) ? (A) : (B) ) macro 635 #define MAX3( A, B, C ) ((A) > (B) ? MAX2(A, C) : MAX2(B, C)) 722 return MAX2(1, value >> levels); in u_minify()
|
D | macros.h | 369 #define MAX2( A, B ) ( (A)>(B) ? (A) : (B) ) macro 373 #define MAX3( A, B, C ) ((A) > (B) ? MAX2(A, C) : MAX2(B, C))
|
D | ralloc.h | 497 gc_alloc_size(ctx, sizeof(type) + sizeof(type2) * (count), MAX2(alignof(type), alignof(type2))) 499 gc_zalloc_size(ctx, sizeof(type) + sizeof(type2) * (count), MAX2(alignof(type), alignof(type2)))
|
D | u_cpu_detect.c | 504 big_cap = MAX2(caps[i], big_cap); in get_cpu_topology() 737 available_cpus = MAX2(1, system_info.dwNumberOfProcessors); in _util_cpu_detect_once() 809 util_cpu_caps.nr_cpus = MAX2(1, available_cpus); in _util_cpu_detect_once() 810 total_cpus = MAX2(total_cpus, util_cpu_caps.nr_cpus); in _util_cpu_detect_once()
|
D | format_rgb9e5.h | 76 exp_shared = MAX2((maxrgb.u >> 23), -RGB9E5_EXP_BIAS - 1 + 127) + in float3_to_rgb9e5()
|
D | register_allocate.c | 334 int start = MAX2(0, (int)rc - class_b->contig_len + 1); in ra_set_finalize() 341 max_conflicts = MAX2(max_conflicts, conflicts); in ra_set_finalize() 369 max_conflicts = MAX2(max_conflicts, conflicts); in ra_set_finalize() 485 unsigned k1 = MAX2(n1, n2); in ra_get_adjacency_bit_index() 872 int start = MAX2(0, (int)n2->reg - c->contig_len + 1); in ra_compute_available_regs()
|
D | u_idalloc.c | 81 util_idalloc_resize(buf, MAX2(num_elements, 1) * 2); in util_idalloc_alloc()
|
D | dag.c | 74 edge->data = MAX2(edge->data, data); in dag_add_edge_max_data()
|
D | fossilize_db.c | 194 int64_t iterations = MAX2(DIV_ROUND_UP(timeout, 1000000), 1); in lock_file_with_timeout() 289 foz_dbs_ro += MAX2(1, n)) { in load_foz_dbs_ro()
|
D | u_queue.c | 370 num_threads = MAX2(num_threads, 1); in util_queue_adjust_num_threads() 434 process_len = MAX2(process_len, 0); in util_queue_init()
|
D | blob.c | 65 to_allocate = MAX2(to_allocate, blob->allocated + additional); in grow_to_fit()
|
D | mesa_cache_db.c | 488 buffer_size = MAX2(buffer_size, blob_file_size(entries[i]->size)); in mesa_db_compact() 793 if (!mesa_db_compact(db, MAX2(blob_size, mesa_cache_db_eviction_size(db)), in mesa_cache_db_entry_write()
|
D | ralloc.c | 801 align = MAX2(align, alignof(gc_block_header)); in gc_alloc_size()
|
/hardware/google/gfxstream/guest/mesa/src/vulkan/runtime/ |
D | vk_android.c | 338 STACK_ARRAY(VkPipelineStageFlags, stage_flags, MAX2(1, waitSemaphoreCount)); in vk_common_QueueSignalReleaseImageANDROID() 339 for (uint32_t i = 0; i < MAX2(1, waitSemaphoreCount); i++) in vk_common_QueueSignalReleaseImageANDROID()
|
D | vk_meta_clear.c | 372 render.samples = MAX2(render.samples, iview->image->samples); in vk_meta_clear_rendering() 390 render.samples = MAX2(render.samples, iview->image->samples); in vk_meta_clear_rendering() 403 render.samples = MAX2(render.samples, iview->image->samples); in vk_meta_clear_rendering()
|
D | vk_video.c | 1005 width_align = MAX2(width_align, VK_VIDEO_H264_MACROBLOCK_WIDTH); in vk_video_get_profile_alignments() 1006 height_align = MAX2(height_align, VK_VIDEO_H264_MACROBLOCK_HEIGHT); in vk_video_get_profile_alignments() 1009 width_align = MAX2(width_align, VK_VIDEO_H265_CTU_MAX_WIDTH); in vk_video_get_profile_alignments() 1010 height_align = MAX2(height_align, VK_VIDEO_H265_CTU_MAX_HEIGHT); in vk_video_get_profile_alignments()
|
/hardware/google/gfxstream/guest/mesa/src/util/format/ |
D | u_format_other.c | 279 dst[0] = (uint8_t)(((uint16_t)MAX2(r, 0)) * 0xff / 0x7f); /* r */ in util_format_r8g8bx_snorm_unpack_rgba_8unorm() 280 dst[1] = (uint8_t)(((uint16_t)MAX2(g, 0)) * 0xff / 0x7f); /* g */ in util_format_r8g8bx_snorm_unpack_rgba_8unorm()
|
D | u_format.c | 692 y_step = MAX2(dst_format_desc->block.height, src_format_desc->block.height); in util_format_translate() 693 x_step = MAX2(dst_format_desc->block.width, src_format_desc->block.width); in util_format_translate() 753 tmp_stride = MAX2(width, x_step) * 4 * sizeof *tmp_row; in util_format_translate() 784 tmp_stride = MAX2(width, x_step) * 4 * sizeof *tmp_row; in util_format_translate() 815 tmp_stride = MAX2(width, x_step) * 4 * sizeof *tmp_row; in util_format_translate() 845 tmp_stride = MAX2(width, x_step) * 4 * sizeof *tmp_row; in util_format_translate()
|
/hardware/google/gfxstream/guest/mesa/src/util/tests/ |
D | fast_idiv_by_const_test.cpp | 273 unsigned n_bits = bounded ? util_logbase2_64(MAX2(n, 1)) + 1 : bits; in random_udiv_add_sat_test() 290 unsigned n_bits = bounded ? util_logbase2_64(MAX2(n, 1)) + 1: bits; in random_udiv_mul_add_test()
|
/hardware/google/gfxstream/guest/mesa/src/vulkan/util/ |
D | vk_alloc.h | 202 ma->align = MAX2(ma->align, align); in vk_multialloc_add_size_align()
|
/hardware/google/gfxstream/guest/mesa/src/vulkan/wsi/ |
D | wsi_common_drm.c | 406 max_modifier_count = MAX2(max_modifier_count, num_modifiers[l]); in wsi_configure_native_image()
|
D | wsi_common_x11.c | 1359 int ret = poll(&pfds, 1, MAX2(rel_timeout / 1000 / 1000, 1u)); in x11_poll_for_special_event() 2639 num_images = MAX2(num_images, 5); in x11_surface_create_swapchain() 2641 num_images = MAX2(num_images, x11_get_min_image_count(wsi_device, wsi_conn->is_xwayland)); in x11_surface_create_swapchain()
|
D | wsi_common_display.c | 195 MAX2(wsi->vscan, 1) == MAX2(drm->vscan, 1) && in ICD_DEFINE_NONDISP_HANDLE_CASTS() 204 (double) MAX2(wsi->vscan, 1)); in wsi_display_mode_refresh()
|
D | wsi_common.c | 1286 MAX2(1, pPresentInfo->waitSemaphoreCount)); in wsi_common_queue_present() 1287 for (uint32_t s = 0; s < MAX2(1, pPresentInfo->waitSemaphoreCount); s++) in wsi_common_queue_present()
|