/external/libdrm/radeon/ |
D | radeon_surface.c | 46 #define MAX2(A, B) ((A) > (B) ? (A) : (B)) macro 156 val = MAX2(1, size >> level); in mip_minify() 270 surf->bo_alignment = MAX2(256, surf_man->hw_info.group_bytes); in r6_surface_init_linear() 275 xalign = MAX2(1, surf_man->hw_info.group_bytes / surf->bpe); in r6_surface_init_linear() 279 xalign = MAX2((surf->bpe == 1) ? 64 : 32, xalign); in r6_surface_init_linear() 304 surf->bo_alignment = MAX2(256, surf_man->hw_info.group_bytes); in r6_surface_init_linear_aligned() 306 xalign = MAX2(64, surf_man->hw_info.group_bytes / surf->bpe); in r6_surface_init_linear_aligned() 333 xalign = MAX2(tilew, xalign); in r6_surface_init_1d() 337 xalign = MAX2((surf->bpe == 1) ? 64 : 32, xalign); in r6_surface_init_1d() 340 surf->bo_alignment = MAX2(256, surf_man->hw_info.group_bytes); in r6_surface_init_1d() [all …]
|
/external/mesa3d/src/gallium/drivers/nvc0/codegen/ |
D | nv50_ir_emit_nvc0.cpp | 1901 int max = MAX2(a, b); in getLatest() 1903 max = MAX2(res.ld[f], max); in getLatest() 1904 max = MAX2(res.st[f], max); in getLatest() 1906 max = MAX2(res.sfu, max); in getLatest() 1907 max = MAX2(res.imul, max); in getLatest() 1908 max = MAX2(res.tex, max); in getLatest() 1914 rd.r[i] = MAX2(rd.r[i], that->rd.r[i]); in setMax() 1915 wr.r[i] = MAX2(wr.r[i], that->wr.r[i]); in setMax() 1918 rd.p[i] = MAX2(rd.p[i], that->rd.p[i]); in setMax() 1919 wr.p[i] = MAX2(wr.p[i], that->wr.p[i]); in setMax() [all …]
|
/external/mesa3d/src/mesa/swrast/ |
D | s_blend.c | 378 rgba[i][RCOMP] = MAX2( rgba[i][RCOMP], dest[i][RCOMP] ); in blend_max() 379 rgba[i][GCOMP] = MAX2( rgba[i][GCOMP], dest[i][GCOMP] ); in blend_max() 380 rgba[i][BCOMP] = MAX2( rgba[i][BCOMP], dest[i][BCOMP] ); in blend_max() 381 rgba[i][ACOMP] = MAX2( rgba[i][ACOMP], dest[i][ACOMP] ); in blend_max() 390 rgba[i][RCOMP] = MAX2( rgba[i][RCOMP], dest[i][RCOMP] ); in blend_max() 391 rgba[i][GCOMP] = MAX2( rgba[i][GCOMP], dest[i][GCOMP] ); in blend_max() 392 rgba[i][BCOMP] = MAX2( rgba[i][BCOMP], dest[i][BCOMP] ); in blend_max() 393 rgba[i][ACOMP] = MAX2( rgba[i][ACOMP], dest[i][ACOMP] ); in blend_max() 403 rgba[i][RCOMP] = MAX2( rgba[i][RCOMP], dest[i][RCOMP] ); in blend_max() 404 rgba[i][GCOMP] = MAX2( rgba[i][GCOMP], dest[i][GCOMP] ); in blend_max() [all …]
|
/external/mesa3d/src/gallium/drivers/svga/ |
D | svga_pipe_sampler.c | 107 cso->aniso_level = MAX2( sampler->max_anisotropy, 1 ); in svga_create_sampler_state() 131 cso->view_min_lod = MAX2((int) (sampler->min_lod + 0.5), 0); in svga_create_sampler_state() 132 cso->view_max_lod = MAX2((int) (sampler->max_lod + 0.5), 0); in svga_create_sampler_state() 180 unsigned j = MAX2(svga->curr.num_samplers, start + num); in svga_bind_sampler_states() 282 unsigned j = MAX2(svga->curr.num_sampler_views, start + num); in svga_set_sampler_views()
|
D | svga_pipe_clear.c | 78 rect.w = MAX2(rect.w, fb->zsbuf->width); in try_clear() 79 rect.h = MAX2(rect.h, fb->zsbuf->height); in try_clear()
|
D | svga_swtnl_backend.c | 87 svga_render->vbuf_size = MAX2(size, svga_render->vbuf_alloc_size); in svga_vbuf_render_allocate_vertices() 161 svga_render->vbuf_used = MAX2(svga_render->vbuf_used, used); in svga_vbuf_render_unmap_vertices() 273 svga_render->ibuf_size = MAX2(size, svga_render->ibuf_alloc_size); in svga_vbuf_render_draw_elements()
|
D | svga_state_tss.c | 41 unsigned count = MAX2( svga->curr.num_sampler_views, in svga_cleanup_tss_binding() 72 unsigned count = MAX2( svga->curr.num_sampler_views, in update_tss_binding() 89 min_lod = MAX2(0, (s->view_min_lod + sv->u.tex.first_level)); in update_tss_binding()
|
/external/mesa3d/src/gallium/state_trackers/vega/ |
D | api_path.c | 450 maxX = MAX2(pts[0], MAX2(pts[2], MAX2(pts[4], pts[6]))); in vegaPathTransformedBounds() 451 maxY = MAX2(pts[1], MAX2(pts[3], MAX2(pts[5], pts[7]))); in vegaPathTransformedBounds()
|
/external/skia/tools/ |
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/auxiliary/util/ |
D | u_upload_mgr.c | 128 size = align(MAX2(upload->default_size, min_size), 4096); in u_upload_alloc_buffer() 176 if (MAX2(upload->offset, alloc_offset) + alloc_size > upload->size) { in u_upload_alloc() 183 offset = MAX2(upload->offset, alloc_offset); in u_upload_alloc()
|
D | u_math.h | 692 #define MAX2( A, B ) ( (A)>(B) ? (A) : (B) ) macro 695 #define MAX3( A, B, C ) ((A) > (B) ? MAX2(A, C) : MAX2(B, C)) 724 return MAX2(1, value >> levels); in u_minify()
|
/external/mesa3d/src/mesa/state_tracker/ |
D | st_atom_scissor.c | 58 GLint xmax = MAX2(0, ctx->Scissor.X + ctx->Scissor.Width); in update_scissor() 59 GLint ymax = MAX2(0, ctx->Scissor.Y + ctx->Scissor.Height); in update_scissor()
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
D | brw_fs_live_variables.cpp | 213 use[i] = MAX2(use[i], cfg.blocks[b]->start_ip); in calculate_live_intervals() 218 use[i] = MAX2(use[i], cfg.blocks[b]->end_ip); in calculate_live_intervals() 264 int start = MAX2(a_def, b_def); in virtual_grf_interferes()
|
D | brw_fs_schedule_instructions.cpp | 177 before->child_latency[i] = MAX2(before->child_latency[i], latency); in add_dep() 464 time = MAX2(time + 1, chosen_time); in schedule_instructions() 474 child->unblocked_time = MAX2(child->unblocked_time, in schedule_instructions() 493 n->unblocked_time = MAX2(n->unblocked_time, in schedule_instructions()
|
D | brw_optimize.c | 153 const int left = MAX2(write_start, reg_start); in brw_is_grf_written() 200 const int left0 = MAX2(write_start0, reg_start); in brw_is_mrf_written_alu() 202 const int left1 = MAX2(write_start1, reg_start); in brw_is_mrf_written_alu() 218 const int left = MAX2(write_start, reg_start); in brw_is_mrf_written_alu() 239 const int left = MAX2(write_start, reg_start); in brw_is_mrf_written_send() 287 const int left = MAX2(read_start, reg_start); in brw_is_mrf_read()
|
/external/mesa3d/src/mesa/drivers/dri/i915/ |
D | i915_tex_layout.c | 169 for (level = mt->first_level; level <= MAX2(8, mt->last_level); level++) { in i915_miptree_layout_3d() 173 stack_height += MAX2(2, height); in i915_miptree_layout_3d() 415 pack_y_pitch = MAX2(mt->height0, 2); in i945_miptree_layout_3d()
|
/external/mesa3d/src/gallium/auxiliary/tgsi/ |
D | tgsi_scan.c | 156 info->file_max[file] = MAX2(info->file_max[file], (int)reg); in tgsi_scan_shader() 175 info->num_system_values = MAX2(info->num_system_values, in tgsi_scan_shader() 223 info->file_max[file] = MAX2(info->file_max[file], (int)reg); in tgsi_scan_shader()
|
/external/mesa3d/src/mesa/drivers/dri/intel/ |
D | intel_tex_layout.h | 38 return MAX2(1, d>>1); in minify()
|
/external/mesa3d/src/mesa/drivers/dri/nouveau/ |
D | nouveau_render_t.c | 155 return MAX2(0, n - 4) / (render->vertex_size / 4 + in get_max_vertices() 183 return MAX2(0, n - 7) * max_out * MAX_PACKET / (1 + MAX_PACKET); in get_max_vertices()
|
/external/mesa3d/src/gallium/auxiliary/draw/ |
D | draw_pipe_offset.c | 92 float zoffset = offset->units + MAX2(dzdx, dzdy) * offset->scale; in do_offset_tri() 95 zoffset = (offset->clamp < 0.0f) ? MAX2(zoffset, offset->clamp) : in do_offset_tri()
|
/external/mesa3d/src/mesa/vbo/ |
D | vbo_primitive_restart.c | 39 #define UPDATE_MAX2(a, b) (a) = MAX2((a), (b)) 210 temp_prim.start = MAX2(prims[prim_num].start, sub_prim->start); in vbo_sw_primitive_restart()
|
/external/mesa3d/src/mesa/main/ |
D | uniform_query.cpp | 69 *size = MAX2(1, uni->array_elements); in _mesa_GetActiveUniformARB() 120 params[i] = MAX2(1, uni->array_elements); in _mesa_GetActiveUniformsiv() 479 const unsigned components = MAX2(1, uni->type->vector_elements); in _mesa_propagate_uniforms_to_driver_storage() 480 const unsigned vectors = MAX2(1, uni->type->matrix_columns); in _mesa_propagate_uniforms_to_driver_storage() 1056 const unsigned count = MAX2(1, storage->type->array_size()); in _mesa_sampler_uniforms_are_valid()
|
/external/mesa3d/src/gallium/drivers/nvc0/ |
D | nvc0_program.c | 130 unsigned ubase = MAX2(0x80, 0x20 + info->numPatchConstants * 0x10); in nvc0_sp_assign_input_slots() 178 unsigned ubase = MAX2(0x80, 0x20 + info->numPatchConstants * 0x10); in nvc0_sp_assign_output_slots() 223 max = MAX2(max, slot); in nvc0_vtgp_hdr_update_oread() 515 tfb->varying_count[b] = MAX2(tfb->varying_count[b], p); in nvc0_program_create_tfb_state() 585 prog->max_gpr = MAX2(4, (info->bin.maxGPR + 1)); in nvc0_program_translate()
|
/external/mesa3d/src/gallium/state_trackers/xvmc/ |
D | xvmc_private.h | 114 debug_level = MAX2(debug_get_num_option("XVMC_DEBUG", 0), 0); in XVMC_MSG()
|
/external/mesa3d/src/gallium/winsys/svga/drm/ |
D | vmw_screen_ioctl.c | 148 mipSize.width = MAX2(mipSize.width >> 1, 1); in vmw_ioctl_surface_create() 149 mipSize.height = MAX2(mipSize.height >> 1, 1); in vmw_ioctl_surface_create() 150 mipSize.depth = MAX2(mipSize.depth >> 1, 1); in vmw_ioctl_surface_create()
|