Home
last modified time | relevance | path

Searched refs:MAX2 (Results 1 – 25 of 27) sorted by relevance

12

/hardware/google/gfxstream/guest/mesa/src/util/
Du_debug.c322 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()
Du_math.h632 #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()
Dmacros.h369 #define MAX2( A, B ) ( (A)>(B) ? (A) : (B) ) macro
373 #define MAX3( A, B, C ) ((A) > (B) ? MAX2(A, C) : MAX2(B, C))
Dralloc.h497 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)))
Du_cpu_detect.c504 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()
Dformat_rgb9e5.h76 exp_shared = MAX2((maxrgb.u >> 23), -RGB9E5_EXP_BIAS - 1 + 127) + in float3_to_rgb9e5()
Dregister_allocate.c334 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()
Du_idalloc.c81 util_idalloc_resize(buf, MAX2(num_elements, 1) * 2); in util_idalloc_alloc()
Ddag.c74 edge->data = MAX2(edge->data, data); in dag_add_edge_max_data()
Dfossilize_db.c194 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()
Du_queue.c370 num_threads = MAX2(num_threads, 1); in util_queue_adjust_num_threads()
434 process_len = MAX2(process_len, 0); in util_queue_init()
Dblob.c65 to_allocate = MAX2(to_allocate, blob->allocated + additional); in grow_to_fit()
Dmesa_cache_db.c488 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()
Dralloc.c801 align = MAX2(align, alignof(gc_block_header)); in gc_alloc_size()
/hardware/google/gfxstream/guest/mesa/src/vulkan/runtime/
Dvk_android.c338 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()
Dvk_meta_clear.c372 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()
Dvk_video.c1005 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/
Du_format_other.c279 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()
Du_format.c692 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/
Dfast_idiv_by_const_test.cpp273 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/
Dvk_alloc.h202 ma->align = MAX2(ma->align, align); in vk_multialloc_add_size_align()
/hardware/google/gfxstream/guest/mesa/src/vulkan/wsi/
Dwsi_common_drm.c406 max_modifier_count = MAX2(max_modifier_count, num_modifiers[l]); in wsi_configure_native_image()
Dwsi_common_x11.c1359 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()
Dwsi_common_display.c195 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()
Dwsi_common.c1286 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()

12