/third_party/mesa3d/src/gallium/auxiliary/util/ |
D | u_box.h | 137 x = MIN2(a->x, b->x); in u_box_union_1d() 154 dst->width = MIN2(a->x + a->width, b->x + b->width) - x; in u_box_intersect_1d() 169 x = MIN2(a->x, b->x); in u_box_union_2d() 170 y = MIN2(a->y, b->y); in u_box_union_2d() 185 x = MIN2(a->x, b->x); in u_box_union_3d() 186 y = MIN2(a->y, b->y); in u_box_union_3d() 187 z = MIN2(a->z, b->z); in u_box_union_3d() 204 a_l[0] = MIN2(a->x, a->x + a->width); in u_box_test_intersection_2d() 206 a_l[1] = MIN2(a->y, a->y + a->height); in u_box_test_intersection_2d() 209 b_l[0] = MIN2(b->x, b->x + b->width); in u_box_test_intersection_2d() [all …]
|
D | u_range.h | 68 range->start = MIN2(start, range->start); in util_range_add() 72 range->start = MIN2(start, range->start); in util_range_add() 83 return MAX2(start, range->start) < MIN2(end, range->end); in util_ranges_intersect()
|
D | u_framebuffer.c | 156 w = MIN2(w, fb->cbufs[i]->width); in util_framebuffer_min_size() 157 h = MIN2(h, fb->cbufs[i]->height); in util_framebuffer_min_size() 161 w = MIN2(w, fb->zsbuf->width); in util_framebuffer_min_size() 162 h = MIN2(h, fb->zsbuf->height); in util_framebuffer_min_size()
|
D | u_rect.h | 104 d->x0 = MIN2(a->x0, b->x0); in u_rect_union() 105 d->y0 = MIN2(a->y0, b->y0); in u_rect_union()
|
/third_party/mesa3d/src/gallium/drivers/vc4/ |
D | vc4_emit.c | 53 maxx = MAX2(MIN2(vp_maxx, job->draw_width), minx); in vc4_emit_state() 54 maxy = MAX2(MIN2(vp_maxy, job->draw_height), miny); in vc4_emit_state() 58 maxx = MAX2(MIN2(vp_maxx, vc4->scissor.maxx), minx); in vc4_emit_state() 59 maxy = MAX2(MIN2(vp_maxy, vc4->scissor.maxy), miny); in vc4_emit_state() 69 job->draw_min_x = MIN2(job->draw_min_x, minx); in vc4_emit_state() 70 job->draw_min_y = MIN2(job->draw_min_y, miny); in vc4_emit_state()
|
D | vc4_qir_live_variables.c | 54 c->temp_start[var] = MIN2(c->temp_start[var], ip); in qir_setup_use() 95 c->temp_start[var] = MIN2(c->temp_start[var], ip); in qir_setup_def() 269 c->temp_start[i] = MIN2(c->temp_start[i], in qir_compute_start_end() 276 c->temp_start[i] = MIN2(c->temp_start[i], in qir_compute_start_end()
|
/third_party/mesa3d/src/imagination/vulkan/ |
D | pvr_job_common.c | 352 usable_partition_size = MIN2(dev_runtime_info->total_reserved_partition_size, in pvr_setup_tiles_in_flight() 364 MIN2((tile_size_x * tile_size_y / 4U) * 8U, usable_partition_size); in pvr_setup_tiles_in_flight() 372 MIN2(max_partitions, usable_partition_size / partition_size); in pvr_setup_tiles_in_flight() 390 (usc_tiles_in_flight * MIN2(4U, num_clusters - (4U * i))) / 4U; in pvr_setup_tiles_in_flight() 406 isp_tiles_in_flight = MIN2(usc_tiles_in_flight, isp_tiles_in_flight); in pvr_setup_tiles_in_flight() 412 isp_tiles_in_flight = MIN2(usc_tiles_in_flight, max_tiles_in_flight); in pvr_setup_tiles_in_flight() 443 total_tiles_in_flight = MIN2(total_tiles_in_flight, partitions_available); in pvr_setup_tiles_in_flight() 448 MIN2(total_tiles_in_flight, partitions_available / 2); in pvr_setup_tiles_in_flight()
|
/third_party/mesa3d/src/imagination/rogue/ |
D | rogue_validate.c | 51 REG_RULE(TEMP, RW, MIN2(ROGUE_MAX_REG_INDEX, ROGUE_MAX_REG_TEMP), ALL), 52 REG_RULE(COEFF, RW, MIN2(ROGUE_MAX_REG_INDEX, ROGUE_MAX_REG_COEFF), ALL), 53 REG_RULE(CONST, RW, MIN2(ROGUE_MAX_REG_INDEX, ROGUE_MAX_REG_CONST), NONE), 54 REG_RULE(SHARED, RW, MIN2(ROGUE_MAX_REG_INDEX, ROGUE_MAX_REG_SHARED), ALL), 57 MIN2(ROGUE_MAX_REG_INDEX, ROGUE_MAX_REG_PIXEL_OUT), 61 MIN2(ROGUE_MAX_REG_INDEX, ROGUE_MAX_REG_VERTEX_IN), 65 MIN2(ROGUE_MAX_REG_INDEX, ROGUE_MAX_REG_INTERNAL),
|
/third_party/mesa3d/src/mesa/main/ |
D | texcompress_etc.c | 689 const unsigned h = MIN2(bh, height - y); in etc2_unpack_rgb8() 696 const unsigned w = MIN2(bw, width - x); in etc2_unpack_rgb8() 734 const unsigned h = MIN2(bh, height - y); in etc2_unpack_srgb8() 737 const unsigned w = MIN2(bw, width - x); in etc2_unpack_srgb8() 784 const unsigned h = MIN2(bh, height - y); in etc2_unpack_rgba8() 787 const unsigned w = MIN2(bw, width - x); in etc2_unpack_rgba8() 823 const unsigned h = MIN2(bh, height - y); in etc2_unpack_srgb8_alpha8() 827 const unsigned w = MIN2(bw, width - x); in etc2_unpack_srgb8_alpha8() 869 const unsigned h = MIN2(bh, height - y); in etc2_unpack_r11() 873 const unsigned w = MIN2(bw, width - x); in etc2_unpack_r11() [all …]
|
/third_party/mesa3d/src/intel/common/ |
D | intel_urb_config.c | 185 unsigned remaining_space = MIN2(urb_chunks - total_needs, total_wants); in intel_get_urb_config() 216 entries[i] = MIN2(entries[i], devinfo->urb.max_entries[i]); in intel_get_urb_config() 336 MIN2(env_var_as_unsigned("INTEL_MESH_TASK_URB_SHARE", 10), 100); in intel_get_mesh_urb_config() 353 r.task_entries = MIN2((task_urb_kb * 16) / r.task_entry_size_64b, 1548); in intel_get_mesh_urb_config() 369 r.mesh_entries = MIN2((mesh_urb_kb * 16) / r.mesh_entry_size_64b, 1548); in intel_get_mesh_urb_config()
|
/third_party/mesa3d/src/intel/compiler/ |
D | brw_vec4_live_variables.cpp | 85 start[v] = MIN2(start[v], ip); in setup_def_use() 108 start[v] = MIN2(start[v], ip); in setup_def_use() 206 start[i] = MIN2(start[i], block->start_ip); in compute_start_end() 211 start[i] = MIN2(start[i], block->end_ip); in compute_start_end() 308 ip = MIN2(ip, start[v + i]); in var_range_start()
|
D | brw_fs_live_variables.cpp | 62 start[var] = MIN2(start[var], ip); in setup_one_read() 80 start[var] = MIN2(start[var], ip); in setup_one_write() 246 start[i] = MIN2(start[i], block->start_ip); in compute_start_end() 250 start[i] = MIN2(start[i], block->end_ip); in compute_start_end() 316 vgrf_start[vgrf] = MIN2(vgrf_start[vgrf], start[i]); in fs_live_variables()
|
D | brw_nir_lower_mem_access_bit_sizes.c | 129 load_bit_size = util_next_power_of_two(MIN2(bytes_left, 4)) * 8; in lower_mem_load_bit_size() 134 DIV_ROUND_UP(MIN2(bytes_left, 16), 4); in lower_mem_load_bit_size() 217 store_comps = needs_scalar ? 1 : MIN2(chunk_bytes, 16) / 4; in lower_mem_store_bit_size() 221 store_bit_size = MIN2(chunk_bytes, 4) * 8; in lower_mem_store_bit_size()
|
/third_party/mesa3d/src/gallium/drivers/radeonsi/ |
D | si_state_viewport.c | 213 out->maxx = MIN2(out->maxx, clip->maxx); in si_clip_scissor() 214 out->maxy = MIN2(out->maxy, clip->maxy); in si_clip_scissor() 219 out->minx = MIN2(out->minx, in->minx); in si_scissor_make_union() 220 out->miny = MIN2(out->miny, in->miny); in si_scissor_make_union() 223 out->quant_mode = MIN2(out->quant_mode, in->quant_mode); in si_scissor_make_union() 354 guardband_x = MIN2(-left, right); in si_emit_guardband() 355 guardband_y = MIN2(-top, bottom); in si_emit_guardband() 376 discard_x = MIN2(discard_x, guardband_x); in si_emit_guardband() 377 discard_y = MIN2(discard_y, guardband_y); in si_emit_guardband()
|
/third_party/mesa3d/src/gallium/auxiliary/draw/ |
D | draw_split_tmp.h | 95 draw_pt_trim_count(MIN2(max_count_simple, count), first, incr); in FUNC() 123 draw_pt_trim_count(MIN2(max_count_loop, count), first, incr); in FUNC() 146 draw_pt_trim_count(MIN2(max_count_fan, count), first, incr); in FUNC()
|
/third_party/mesa3d/src/intel/vulkan/ |
D | anv_nir_compute_push_layout.c | 65 push_start = MIN2(push_start, base); in anv_nir_compute_push_layout() 71 push_start = MIN2(push_start, in anv_nir_compute_push_layout() 101 push_start = MIN2(push_start, push_reg_mask_start); in anv_nir_compute_push_layout() 120 push_start = MIN2(push_start, push_end); in anv_nir_compute_push_layout()
|
/third_party/mesa3d/src/gallium/drivers/v3d/ |
D | v3dx_emit.c | 159 .min_level_of_detail = MIN2(psview->u.tex.first_level + in emit_one_texture() 162 .max_level_of_detail = MIN2(psview->u.tex.first_level + in emit_one_texture() 423 maxx = MIN2(vp_maxx, job->draw_width); in v3dX() 424 maxy = MIN2(vp_maxy, job->draw_height); in v3dX() 428 maxx = MIN2(vp_maxx, v3d->scissor.maxx); in v3dX() 429 maxy = MIN2(vp_maxy, v3d->scissor.maxy); in v3dX() 449 job->draw_min_x = MIN2(job->draw_min_x, minx); in v3dX() 450 job->draw_min_y = MIN2(job->draw_min_y, miny); in v3dX() 587 clip.minimum_zw = MIN2(z1, z2); in v3dX()
|
/third_party/mesa3d/src/gallium/drivers/freedreno/ir3/ |
D | ir3_const.h | 137 size = MIN2(size, (16 * v->constlen) - state->range[i].offset); in ir3_emit_constant_data() 183 size = MIN2(size, (16 * v->constlen) - state->range[i].offset); in ir3_emit_user_consts() 304 uint32_t size = MIN2(ARRAY_SIZE(dims), v->constlen * 4 - offset * 4); in ir3_emit_image_dims() 322 size = MIN2(size + base, v->constlen) - base; in ir3_emit_immediates() 350 size = MIN2(size + base, v->constlen) - base; in ir3_emit_link_map() 485 MIN2(const_state->num_driver_params, (v->constlen - offset) * 4); in ir3_emit_driver_params() 621 MIN2(const_state->num_driver_params, v->constlen * 4 - offset * 4); in ir3_emit_cs_consts()
|
/third_party/mesa3d/src/util/ |
D | streaming-load-memcpy.c | 59 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()
|
/third_party/mesa3d/src/broadcom/compiler/ |
D | vir_live_variables.c | 57 c->temp_start[var] = MIN2(c->temp_start[var], ip); in vir_setup_use() 101 c->temp_start[var] = MIN2(c->temp_start[var], ip); in vir_setup_def() 278 c->temp_start[i] = MIN2(c->temp_start[i], in vir_compute_start_end() 286 c->temp_start[i] = MIN2(c->temp_start[i], in vir_compute_start_end()
|
/third_party/mesa3d/src/gallium/drivers/r600/ |
D | r600_viewport.c | 128 out->maxx = MIN2(out->maxx, clip->maxx); in r600_clip_scissor() 129 out->maxy = MIN2(out->maxy, clip->maxy); in r600_clip_scissor() 135 out->minx = MIN2(out->minx, in->minx); in r600_scissor_make_union() 136 out->miny = MIN2(out->miny, in->miny); in r600_scissor_make_union() 221 guardband_x = MIN2(-left, right); in r600_emit_guardband() 222 guardband_y = MIN2(-top, bottom); in r600_emit_guardband()
|
/third_party/mesa3d/src/gallium/drivers/freedreno/a3xx/ |
D | fd3_texture.c | 82 unsigned aniso = util_last_bit(MIN2(cso->max_anisotropy >> 1, 8)); in fd3_sampler_state_create() 119 so->texsamp1 |= A3XX_TEX_SAMP_1_MIN_LOD(MIN2(cso->min_lod, 0.125f)) | in fd3_sampler_state_create() 120 A3XX_TEX_SAMP_1_MAX_LOD(MIN2(cso->max_lod, 0.125f)); in fd3_sampler_state_create()
|
/third_party/mesa3d/src/gallium/drivers/nouveau/nv30/ |
D | nv30_push.c | 91 unsigned push = MIN2(count, ctx->packet_vertex_limit); in emit_vertices_i08() 123 unsigned push = MIN2(count, ctx->packet_vertex_limit); in emit_vertices_i16() 155 unsigned push = MIN2(count, ctx->packet_vertex_limit); in emit_vertices_i32() 185 unsigned push = MIN2(count, ctx->packet_vertex_limit); in emit_vertices_seq()
|
/third_party/mesa3d/src/panfrost/vulkan/ |
D | panvk_vX_meta_blit.c | 53 .minx = MAX2(MIN2(blitinfo->dst.start.x, blitinfo->dst.end.x), 0), in panvk_meta_blit() 54 .miny = MAX2(MIN2(blitinfo->dst.start.y, blitinfo->dst.end.y), 0), in panvk_meta_blit() 61 fbinfo->extent.maxx = MIN2(fbinfo->extent.maxx, fbinfo->width - 1); in panvk_meta_blit() 62 fbinfo->extent.maxy = MIN2(fbinfo->extent.maxy, fbinfo->height - 1); in panvk_meta_blit()
|
/third_party/mesa3d/src/gallium/drivers/freedreno/a5xx/ |
D | fd5_texture.c | 82 unsigned aniso = util_last_bit(MIN2(cso->max_anisotropy >> 1, 8)); in fd5_sampler_state_create() 117 so->texsamp1 |= A5XX_TEX_SAMP_1_MIN_LOD(MIN2(cso->min_lod, 0.125f)) | in fd5_sampler_state_create() 118 A5XX_TEX_SAMP_1_MAX_LOD(MIN2(cso->max_lod, 0.125f)); in fd5_sampler_state_create()
|