Home
last modified time | relevance | path

Searched refs:MIN2 (Results 1 – 25 of 28) sorted by relevance

12

/hardware/google/gfxstream/guest/mesa/src/util/format/
Du_format_rgtc.c49 const unsigned h = MIN2(height - y, bh); in util_format_rgtc1_unorm_unpack_r_8unorm()
51 const unsigned w = MIN2(width - x, bw); in util_format_rgtc1_unorm_unpack_r_8unorm()
73 const unsigned h = MIN2(height - y, bh); in util_format_rgtc1_unorm_unpack_rgba_8unorm()
75 const unsigned w = MIN2(width - x, bw); in util_format_rgtc1_unorm_unpack_rgba_8unorm()
121 const unsigned h = MIN2(height - y, 4); in util_format_rgtc1_unorm_unpack_rgba_float()
123 const unsigned w = MIN2(width - x, 4); in util_format_rgtc1_unorm_unpack_rgba_float()
201 const unsigned h = MIN2(height - y, bh); in util_format_rgtc1_snorm_unpack_r_8snorm()
203 const unsigned w = MIN2(width - x, bw); in util_format_rgtc1_snorm_unpack_r_8snorm()
253 const unsigned h = MIN2(height - y, 4); in util_format_rgtc1_snorm_unpack_rgba_float()
255 const unsigned w = MIN2(width - x, 4); in util_format_rgtc1_snorm_unpack_rgba_float()
[all …]
Dformat_utils.h152 return MIN2(src, u_uintN_max(dst_size)); in _mesa_unsigned_to_unsigned()
158 return MIN2(src, (unsigned)u_intN_max(dst_size)); in _mesa_unsigned_to_signed()
Dtexcompress_etc_tmp.h156 for (j = 0; j < MIN2(bh, height - y); j++) { in etc1_unpack_rgba8888()
158 for (i = 0; i < MIN2(bw, width - x); i++) { in etc1_unpack_rgba8888()
Dtexcompress_bptc_tmp.h324 int n_bits_in_byte = MIN2(n_bits, 8 - bit_index); in extract_bits()
340 n_bits_in_byte = MIN2(n_bits, 8); in extract_bits()
809 decompress_rgba_unorm_block(MIN2(width - x, BLOCK_SIZE), in decompress_rgba_unorm()
810 MIN2(height - y, BLOCK_SIZE), in decompress_rgba_unorm()
1148 decompress_rgb_float_block(MIN2(width - x, BLOCK_SIZE), in decompress_rgb_float()
1149 MIN2(height - y, BLOCK_SIZE), in decompress_rgb_float()
1277 decompress_rgb_fp16_block(MIN2(width - x, BLOCK_SIZE), in decompress_rgb_fp16()
1278 MIN2(height - y, BLOCK_SIZE), in decompress_rgb_fp16()
1584 compress_rgba_unorm_block(MIN2(width - x, BLOCK_SIZE), in compress_rgba_unorm()
1585 MIN2(height - y, BLOCK_SIZE), in compress_rgba_unorm()
[all …]
Du_format_s3tc.c133 const unsigned h = MIN2(height - y, bh); in util_format_dxtn_rgb_unpack_rgba_8unorm()
135 const unsigned w = MIN2(width - x, bw); in util_format_dxtn_rgb_unpack_rgba_8unorm()
/hardware/google/gfxstream/guest/mesa/src/util/
Dstreaming-load-memcpy.c59 memcpy(d, s, MIN2(bytes_before_alignment_boundary, len)); in util_streaming_load_memcpy()
63 len -= MIN2(bytes_before_alignment_boundary, len); in util_streaming_load_memcpy()
Dos_memory_aligned.h120 const size_t copySize = MIN2(oldsize, newsize); in os_realloc_aligned()
Dmacros.h366 #define MIN2( A, B ) ( (A)<(B) ? (A) : (B) ) macro
372 #define MIN3( A, B, C ) ((A) < (B) ? MIN2(A, C) : MIN2(B, C))
Du_math.h631 #define MIN2( A, B ) ( (A)<(B) ? (A) : (B) ) macro
634 #define MIN3( A, B, C ) ((A) < (B) ? MIN2(A, C) : MIN2(B, C))
Du_queue.c369 num_threads = MIN2(num_threads, queue->max_threads); in util_queue_adjust_num_threads()
429 name_len = MIN2(name_len, max_chars); in util_queue_init()
433 process_len = MIN2(process_len, max_chars - name_len - 1); in util_queue_init()
Du_idalloc.c149 buf->lowest_free_idx = MIN2(idx, buf->lowest_free_idx); in util_idalloc_free()
Du_thread.c82 const size_t len = MIN2(strlen(name), ARRAY_SIZE(buf) - 1); in u_thread_setname()
Dos_misc.c343 *size = MIN2(mem_available, rl.rlim_cur); in os_get_available_system_memory()
Dregister_allocate.c335 int end = MIN2(regs->count, rc + class_c->contig_len); in ra_set_finalize()
486 unsigned k2 = MIN2(n1, n2); in ra_get_adjacency_bit_index()
873 int end = MIN2(g->regs->count, n2->reg + n2c->contig_len); in ra_compute_available_regs()
Dbitset.h449 *end = MIN2(word * BITSET_WORDBITS + ffs(~tmp) - 1, size); in __bitset_next_range()
Dralloc.c1160 memcpy(new_ptr, old, MIN2(old_size, new_size)); in linear_realloc()
/hardware/google/gfxstream/guest/mesa/src/vulkan/wsi/
Dwsi_common_queue.h127 abstime.tv_sec = MIN2(abs_sec, INT_TYPE_MAX(abstime.tv_sec)); in wsi_queue_pull()
Dwsi_common_x11.c932 *pPresentModeCount = MIN2(*pPresentModeCount, ARRAY_SIZE(present_modes)); in x11_surface_get_present_modes()
1352 rel_timeout = MIN2(poll_busywait_ns, abs_timeout - current_time); in x11_poll_for_special_event()
1367 poll_busywait_ns = MIN2(10ull * 1000ull * 1000ull, poll_busywait_ns); in x11_poll_for_special_event()
1681 int this_lines = MIN2(num_lines, y_todo); in x11_present_to_x11_sw()
2022 min_image_count = MIN2(min_image_count, chain->base.image_count); in x11_manage_fifo_queues()
Dwsi_common_headless.c224 *pPresentModeCount = MIN2(*pPresentModeCount, ARRAY_SIZE(present_modes)); in wsi_headless_surface_get_present_modes()
Dwsi_common_wayland.c792 MIN2(version, ZWP_LINUX_DMABUF_V1_GET_DEFAULT_FEEDBACK_SINCE_VERSION)); in registry_handle_global()
1299 *pPresentModeCount = MIN2(*pPresentModeCount, present_modes_count); in wsi_wl_surface_get_present_modes()
/hardware/google/gfxstream/guest/mesa/src/vulkan/device-select-layer/
Ddevice_select_wayland.c87 info->wl_drm = wl_registry_bind(registry, name, &wl_drm_interface, MIN2(version, 2)); in device_select_registry_global()
/hardware/google/gfxstream/guest/mesa/src/util/perf/
Du_trace.c752 unsigned to_copy = MIN2(TRACES_PER_CHUNK - to_chunk->num_traces, in u_trace_clone_append()
755 to_copy = MIN2(to_copy, end_it.event_idx - from_idx); in u_trace_clone_append()
/hardware/google/gfxstream/guest/mesa/src/vulkan/runtime/
Dvk_meta_draw_rects.c318 const uint32_t count = MIN2(rects_per_draw, rect_count - next_rect); in vk_meta_draw_rects()
Dvk_drm_syncobj.c225 abs_timeout_ns = MIN2(abs_timeout_ns, (uint64_t)INT64_MAX); in vk_drm_syncobj_wait_many()
/hardware/google/gfxstream/guest/mesa/src/vulkan/runtime/rmv/
Dvk_rmv_exporter.c1349 rmt_file_write_bits(&data, MIN2(description->max_sets, 65535), 0, 15); in rmt_dump_descriptor_pool_resource()
1361 rmt_file_write_bits(&data, MIN2(description->pool_sizes[i].descriptorCount, 65535), 16, 31); in rmt_dump_descriptor_pool_resource()

12