/external/mesa3d/src/gallium/auxiliary/util/ |
D | u_box.h | 132 dst->width = MAX2(a->x + a->width, b->x + b->width) - x; in u_box_union_2d() 133 dst->height = MAX2(a->y + a->height, b->y + b->height) - y; in u_box_union_2d() 149 dst->width = MAX2(a->x + a->width, b->x + b->width) - x; in u_box_union_3d() 150 dst->height = MAX2(a->y + a->height, b->y + b->height) - y; in u_box_union_3d() 151 dst->depth = MAX2(a->z + a->depth, b->z + b->depth) - z; in u_box_union_3d() 165 a_r[0] = MAX2(a->x, a->x + a->width); in u_box_test_intersection_2d() 167 a_r[1] = MAX2(a->y, a->y + a->height); in u_box_test_intersection_2d() 170 b_r[0] = MAX2(b->x, b->x + b->width); in u_box_test_intersection_2d() 172 b_r[1] = MAX2(b->y, b->y + b->height); in u_box_test_intersection_2d() 187 dst->width = MAX2(src->width >> l, 1); in u_box_minify_2d() [all …]
|
D | u_framebuffer.c | 198 num_layers = MAX2(num_layers, num); in util_framebuffer_get_num_layers() 204 num_layers = MAX2(num_layers, num); in util_framebuffer_get_num_layers() 230 return MAX2(fb->samples, 1); in util_framebuffer_get_num_samples() 234 return MAX2(1, fb->cbufs[i]->texture->nr_samples); in util_framebuffer_get_num_samples() 238 return MAX2(1, fb->zsbuf->texture->nr_samples); in util_framebuffer_get_num_samples()
|
D | u_range.h | 64 range->end = MAX2(end, range->end); in util_range_add() 72 return MAX2(start, range->start) < MIN2(end, range->end); in util_ranges_intersect()
|
/external/mesa3d/src/mesa/state_tracker/ |
D | st_scissor.c | 46 dst_rect->minx = MAX2(src_rect->X, 0); in st_window_rectangles_to_blit() 47 dst_rect->miny = MAX2(src_rect->Y, 0); in st_window_rectangles_to_blit() 48 dst_rect->maxx = MAX2(src_rect->X + src_rect->Width, 0); in st_window_rectangles_to_blit() 49 dst_rect->maxy = MAX2(src_rect->Y + src_rect->Height, 0); in st_window_rectangles_to_blit()
|
D | st_atom_scissor.c | 64 GLint xmax = MAX2(0, ctx->Scissor.ScissorArray[i].X + ctx->Scissor.ScissorArray[i].Width); in st_update_scissor() 65 GLint ymax = MAX2(0, ctx->Scissor.ScissorArray[i].Y + ctx->Scissor.ScissorArray[i].Height); in st_update_scissor() 123 new_rects[i].minx = MAX2(rect->X, 0); in st_update_window_rectangles() 124 new_rects[i].miny = MAX2(rect->Y, 0); in st_update_window_rectangles() 125 new_rects[i].maxx = MAX2(rect->X + rect->Width, 0); in st_update_window_rectangles() 126 new_rects[i].maxy = MAX2(rect->Y + rect->Height, 0); in st_update_window_rectangles()
|
/external/mesa3d/src/gallium/drivers/vc4/ |
D | vc4_emit.c | 51 minx = MAX2(vp_minx, 0); in vc4_emit_state() 52 miny = MAX2(vp_miny, 0); in vc4_emit_state() 56 minx = MAX2(vp_minx, vc4->scissor.minx); in vc4_emit_state() 57 miny = MAX2(vp_miny, vc4->scissor.miny); in vc4_emit_state() 71 job->draw_max_x = MAX2(job->draw_max_x, maxx); in vc4_emit_state() 72 job->draw_max_y = MAX2(job->draw_max_y, maxy); in vc4_emit_state()
|
D | vc4_qir_live_variables.c | 67 c->temp_end[var] = MAX2(c->temp_end[var], ip); in qir_setup_use() 108 c->temp_end[var] = MAX2(c->temp_end[var], ip); in qir_setup_def() 285 c->temp_end[i] = MAX2(c->temp_end[i], in qir_compute_start_end() 292 c->temp_end[i] = MAX2(c->temp_end[i], in qir_compute_start_end() 334 last_ip = MAX2(last_ip, c->temp_end[i]); in qir_calculate_live_intervals() 345 max_reg_pressure = MAX2(max_reg_pressure, reg_pressure); in qir_calculate_live_intervals()
|
/external/libdrm/ |
D | util_math.h | 28 #define MAX2( A, B ) ( (A)>(B) ? (A) : (B) ) macro 29 #define MAX3( A, B, C ) ((A) > (B) ? MAX2(A, C) : MAX2(B, C))
|
/external/libdrm/radeon/ |
D | radeon_surface.c | 51 #define MAX2(A, B) ((A) > (B) ? (A) : (B)) macro 161 val = MAX2(1, size >> level); in mip_minify() 275 surf->bo_alignment = MAX2(256, surf_man->hw_info.group_bytes); in r6_surface_init_linear() 280 xalign = MAX2(1, surf_man->hw_info.group_bytes / surf->bpe); in r6_surface_init_linear() 284 xalign = MAX2((surf->bpe == 1) ? 64 : 32, xalign); in r6_surface_init_linear() 309 surf->bo_alignment = MAX2(256, surf_man->hw_info.group_bytes); in r6_surface_init_linear_aligned() 311 xalign = MAX2(64, surf_man->hw_info.group_bytes / surf->bpe); in r6_surface_init_linear_aligned() 338 xalign = MAX2(tilew, xalign); in r6_surface_init_1d() 342 xalign = MAX2((surf->bpe == 1) ? 64 : 32, xalign); in r6_surface_init_1d() 345 surf->bo_alignment = MAX2(256, surf_man->hw_info.group_bytes); in r6_surface_init_1d() [all …]
|
/external/mesa3d/src/mesa/swrast/ |
D | s_blend.c | 375 rgba[i][RCOMP] = MAX2( rgba[i][RCOMP], dest[i][RCOMP] ); in blend_max() 376 rgba[i][GCOMP] = MAX2( rgba[i][GCOMP], dest[i][GCOMP] ); in blend_max() 377 rgba[i][BCOMP] = MAX2( rgba[i][BCOMP], dest[i][BCOMP] ); in blend_max() 378 rgba[i][ACOMP] = MAX2( rgba[i][ACOMP], dest[i][ACOMP] ); in blend_max() 387 rgba[i][RCOMP] = MAX2( rgba[i][RCOMP], dest[i][RCOMP] ); in blend_max() 388 rgba[i][GCOMP] = MAX2( rgba[i][GCOMP], dest[i][GCOMP] ); in blend_max() 389 rgba[i][BCOMP] = MAX2( rgba[i][BCOMP], dest[i][BCOMP] ); in blend_max() 390 rgba[i][ACOMP] = MAX2( rgba[i][ACOMP], dest[i][ACOMP] ); in blend_max() 400 rgba[i][RCOMP] = MAX2( rgba[i][RCOMP], dest[i][RCOMP] ); in blend_max() 401 rgba[i][GCOMP] = MAX2( rgba[i][GCOMP], dest[i][GCOMP] ); in blend_max() [all …]
|
/external/mesa3d/src/amd/common/ |
D | ac_gpu_info.c | 336 ib_align = MAX2(ib_align, gfx.ib_start_alignment); in ac_query_gpu_info() 337 ib_align = MAX2(ib_align, compute.ib_start_alignment); in ac_query_gpu_info() 338 ib_align = MAX2(ib_align, dma.ib_start_alignment); in ac_query_gpu_info() 339 ib_align = MAX2(ib_align, uvd.ib_start_alignment); in ac_query_gpu_info() 340 ib_align = MAX2(ib_align, vce.ib_start_alignment); in ac_query_gpu_info() 341 ib_align = MAX2(ib_align, vcn_dec.ib_start_alignment); in ac_query_gpu_info() 342 ib_align = MAX2(ib_align, vcn_enc.ib_start_alignment); in ac_query_gpu_info()
|
D | ac_binary.c | 252 conf->num_sgprs = MAX2(conf->num_sgprs, (G_00B028_SGPRS(value) + 1) * 8); in ac_shader_binary_read_config() 253 conf->num_vgprs = MAX2(conf->num_vgprs, (G_00B028_VGPRS(value) + 1) * 4); in ac_shader_binary_read_config() 257 conf->lds_size = MAX2(conf->lds_size, G_00B02C_EXTRA_LDS_SIZE(value)); in ac_shader_binary_read_config() 260 conf->lds_size = MAX2(conf->lds_size, G_00B84C_LDS_SIZE(value)); in ac_shader_binary_read_config()
|
/external/mesa3d/src/mesa/main/ |
D | program_resource.c | 143 *params = MAX2(*params, len + 1); in _mesa_GetProgramInterfaceiv() 154 *params = MAX2(*params, block->NumUniforms); in _mesa_GetProgramInterfaceiv() 174 *params = MAX2(*params, block_params); in _mesa_GetProgramInterfaceiv() 184 *params = MAX2(*params, buffer->NumUniforms); in _mesa_GetProgramInterfaceiv() 194 *params = MAX2(*params, buffer->NumVaryings); in _mesa_GetProgramInterfaceiv() 218 *params = MAX2(*params, uni->num_compatible_subroutines); in _mesa_GetProgramInterfaceiv()
|
/external/virglrenderer/src/gallium/auxiliary/tgsi/ |
D | tgsi_scan.c | 109 info->max_depth = MAX2(info->max_depth, current_depth); in tgsi_scan_shader() 259 info->array_max[file] = MAX2(info->array_max[file], array_id); in tgsi_scan_shader() 272 info->file_max[file] = MAX2(info->file_max[file], (int)reg); in tgsi_scan_shader() 281 MAX2(info->const_file_max[buffer], (int)reg); in tgsi_scan_shader() 347 info->num_system_values = MAX2(info->num_system_values, in tgsi_scan_shader() 422 info->file_max[file] = MAX2(info->file_max[file], (int)reg); in tgsi_scan_shader() 467 MAX2(info->file_max[TGSI_FILE_INPUT], num_verts - 1); in tgsi_scan_shader()
|
/external/mesa3d/src/gallium/state_trackers/nine/ |
D | volumetexture9.c | 88 info->last_level = util_logbase2(MAX2(MAX2(Width, Height), Depth)); in NineVolumeTexture9_ctor() 232 This->dirty_box.x = MAX2(This->dirty_box.x, 0); in NineVolumeTexture9_AddDirtyBox() 233 This->dirty_box.y = MAX2(This->dirty_box.y, 0); in NineVolumeTexture9_AddDirtyBox() 234 This->dirty_box.z = MAX2(This->dirty_box.z, 0); in NineVolumeTexture9_AddDirtyBox()
|
/external/mesa3d/src/intel/compiler/ |
D | brw_fs_live_variables.cpp | 63 end[var] = MAX2(end[var], ip); in setup_one_read() 81 end[var] = MAX2(end[var], ip); in setup_one_write() 241 end[i] = MAX2(end[i], block->start_ip); in compute_start_end() 246 end[i] = MAX2(end[i], block->end_ip); in compute_start_end() 343 virtual_grf_end[vgrf] = MAX2(virtual_grf_end[vgrf], in calculate_live_intervals()
|
/external/mesa3d/src/broadcom/compiler/ |
D | vir_live_variables.c | 66 c->temp_end[var] = MAX2(c->temp_end[var], ip); in vir_setup_use() 110 c->temp_end[var] = MAX2(c->temp_end[var], ip); in vir_setup_def() 295 c->temp_end[i] = MAX2(c->temp_end[i], in vir_compute_start_end() 302 c->temp_end[i] = MAX2(c->temp_end[i], in vir_compute_start_end()
|
/external/mesa3d/src/util/ |
D | macros.h | 281 #define MAX2( A, B ) ( (A)>(B) ? (A) : (B) ) macro 285 #define MAX3( A, B, C ) ((A) > (B) ? MAX2(A, C) : MAX2(B, C))
|
/external/skia/tools/skdiff/ |
D | skdiff.h | 25 #define MAX2(a,b) (((b) < (a)) ? (a) : (b)) macro 26 #define MAX3(a,b,c) (((b) < (a)) ? MAX2((a), (c)) : MAX2((b), (c)))
|
/external/skqp/tools/skdiff/ |
D | skdiff.h | 25 #define MAX2(a,b) (((b) < (a)) ? (a) : (b)) macro 26 #define MAX3(a,b,c) (((b) < (a)) ? MAX2((a), (c)) : MAX2((b), (c)))
|
/external/mesa3d/src/gallium/drivers/nouveau/codegen/ |
D | nv50_ir_emit_nvc0.cpp | 3088 int max = MAX2(a, b); in getLatest() 3090 max = MAX2(res.ld[f], max); in getLatest() 3091 max = MAX2(res.st[f], max); in getLatest() 3093 max = MAX2(res.sfu, max); in getLatest() 3094 max = MAX2(res.imul, max); in getLatest() 3095 max = MAX2(res.tex, max); in getLatest() 3101 rd.r[i] = MAX2(rd.r[i], that->rd.r[i]); in setMax() 3102 wr.r[i] = MAX2(wr.r[i], that->wr.r[i]); in setMax() 3105 rd.p[i] = MAX2(rd.p[i], that->rd.p[i]); in setMax() 3106 wr.p[i] = MAX2(wr.p[i], that->wr.p[i]); in setMax() [all …]
|
/external/virglrenderer/src/gallium/auxiliary/util/ |
D | u_rect.h | 96 d->x1 = MAX2(a->x1, b->x1); in u_rect_union() 97 d->y1 = MAX2(a->y1, b->y1); in u_rect_union()
|
/external/mesa3d/src/gallium/drivers/vc5/ |
D | vc5_emit.c | 175 MAX2(psampler->min_lod, 0), in emit_one_texture() 331 minx = MAX2(vp_minx, 0); in v3dX() 332 miny = MAX2(vp_miny, 0); in v3dX() 336 minx = MAX2(vp_minx, vc5->scissor.minx); in v3dX() 337 miny = MAX2(vp_miny, vc5->scissor.miny); in v3dX() 351 job->draw_max_x = MAX2(job->draw_max_x, maxx); in v3dX() 352 job->draw_max_y = MAX2(job->draw_max_y, maxy); in v3dX()
|
/external/mesa3d/src/gallium/auxiliary/draw/ |
D | draw_pipe_offset.c | 95 mult = MAX2(dzdx, dzdy) * offset->scale; in do_offset_tri() 107 maxz.i = MAX2(maxz.i, 0); in do_offset_tri() 116 zoffset = (offset->clamp < 0.0f) ? MAX2(zoffset, offset->clamp) : in do_offset_tri()
|
/external/mesa3d/src/gallium/drivers/freedreno/ir3/ |
D | ir3_ra.c | 485 *sz = MAX2(*sz, dsz); in get_definer() 522 *sz = MAX2(*sz, dsz); in get_definer() 525 *off = MAX2(*off, instr->fo.off); in get_definer() 674 ctx->use[name] = MAX2(ctx->use[name], instr->ip); \ in ra_block_compute_live_ranges() 732 arr->end_ip = MAX2(arr->end_ip, instr->ip); in ra_block_compute_live_ranges() 789 ctx->use[name] = MAX2(ctx->use[name], last->ip); in ra_block_compute_live_ranges() 801 arr->end_ip = MAX2(arr->end_ip, instr->ip); in ra_block_compute_live_ranges() 928 ctx->use[i] = MAX2(ctx->use[i], block->start_ip); in ra_add_interference() 933 ctx->use[i] = MAX2(ctx->use[i], block->end_ip); in ra_add_interference() 1141 base = MAX2(base, arr2->reg + arr2->length); in ra_alloc()
|