Home
last modified time | relevance | path

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

12345678910>>...15

/external/mesa3d/src/mesa/drivers/dri/radeon/
Dradeon_tile.c59 for (j = 0; j < MIN2(tile_height, height - row); ++j) in micro_tile_8_x_4_8bit()
61 unsigned columns = MIN2(tile_width, width - col); in micro_tile_8_x_4_8bit()
90 for (j = 0; j < MIN2(tile_height, height - row); ++j) in micro_tile_4_x_4_16bit()
92 unsigned columns = MIN2(tile_width, width - col); in micro_tile_4_x_4_16bit()
121 for (j = 0; j < MIN2(tile_height, height - row); ++j) in micro_tile_8_x_2_16bit()
123 unsigned columns = MIN2(tile_width, width - col); in micro_tile_8_x_2_16bit()
152 for (j = 0; j < MIN2(tile_height, height - row); ++j) in micro_tile_4_x_2_32bit()
154 unsigned columns = MIN2(tile_width, width - col); in micro_tile_4_x_2_32bit()
183 for (j = 0; j < MIN2(tile_height, height - row); ++j) in micro_tile_2_x_2_64bit()
185 unsigned columns = MIN2(tile_width, width - col); in micro_tile_2_x_2_64bit()
[all …]
/external/mesa3d/src/mesa/drivers/dri/r200/
Dradeon_tile.c59 for (j = 0; j < MIN2(tile_height, height - row); ++j) in micro_tile_8_x_4_8bit()
61 unsigned columns = MIN2(tile_width, width - col); in micro_tile_8_x_4_8bit()
90 for (j = 0; j < MIN2(tile_height, height - row); ++j) in micro_tile_4_x_4_16bit()
92 unsigned columns = MIN2(tile_width, width - col); in micro_tile_4_x_4_16bit()
121 for (j = 0; j < MIN2(tile_height, height - row); ++j) in micro_tile_8_x_2_16bit()
123 unsigned columns = MIN2(tile_width, width - col); in micro_tile_8_x_2_16bit()
152 for (j = 0; j < MIN2(tile_height, height - row); ++j) in micro_tile_4_x_2_32bit()
154 unsigned columns = MIN2(tile_width, width - col); in micro_tile_4_x_2_32bit()
183 for (j = 0; j < MIN2(tile_height, height - row); ++j) in micro_tile_2_x_2_64bit()
185 unsigned columns = MIN2(tile_width, width - col); in micro_tile_2_x_2_64bit()
[all …]
/external/mesa3d/src/gallium/auxiliary/util/
Du_box.h129 x = MIN2(a->x, b->x); in u_box_union_2d()
130 y = MIN2(a->y, b->y); in u_box_union_2d()
145 x = MIN2(a->x, b->x); in u_box_union_3d()
146 y = MIN2(a->y, b->y); in u_box_union_3d()
147 z = MIN2(a->z, b->z); in u_box_union_3d()
164 a_l[0] = MIN2(a->x, a->x + a->width); in u_box_test_intersection_2d()
166 a_l[1] = MIN2(a->y, a->y + a->height); in u_box_test_intersection_2d()
169 b_l[0] = MIN2(b->x, b->x + b->width); in u_box_test_intersection_2d()
171 b_l[1] = MIN2(b->y, b->y + b->height); in u_box_test_intersection_2d()
Du_framebuffer.c156 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()
Du_range.h63 range->start = MIN2(start, range->start); in util_range_add()
72 return MAX2(start, range->start) < MIN2(end, range->end); in util_ranges_intersect()
/external/mesa3d/src/gallium/drivers/vc4/
Dvc4_emit.c53 maxx = MIN2(vp_maxx, job->draw_width); in vc4_emit_state()
54 maxy = MIN2(vp_maxy, job->draw_height); in vc4_emit_state()
58 maxx = MIN2(vp_maxx, vc4->scissor.maxx); in vc4_emit_state()
59 maxy = MIN2(vp_maxy, vc4->scissor.maxy); 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()
Dvc4_qir_live_variables.c66 c->temp_start[var] = MIN2(c->temp_start[var], ip); in qir_setup_use()
107 c->temp_start[var] = MIN2(c->temp_start[var], ip); in qir_setup_def()
283 c->temp_start[i] = MIN2(c->temp_start[i], in qir_compute_start_end()
290 c->temp_start[i] = MIN2(c->temp_start[i], in qir_compute_start_end()
/external/mesa3d/src/mesa/tnl_dd/
Dt_dd_dmatmp2.h184 nr = MIN2( dmasz, count - j ); in TAG()
239 nr = MIN2( dmasz, count - j ); in TAG()
265 nr = MIN2( dmasz, count - j ); in TAG()
338 nr = MIN2( dmasz, count - j ); in TAG()
379 nr = MIN2( dmasz, count - j ); in TAG()
443 nr = MIN2( dmasz, count - j ); in TAG()
496 nr = MIN2( dmasz, count - j ); in TAG()
556 nr = MIN2( dmasz, count - j ); in TAG()
593 nr = MIN2( dmasz, count - j ); in TAG()
625 nr = MIN2( dmasz, count - j ); in TAG()
[all …]
Dt_dd_dmatmp.h83 nr = MIN2(currentsz, count - j); in TAG()
115 nr = MIN2(currentsz, count - j); in TAG()
139 nr = MIN2(currentsz, count - j); in TAG()
172 nr = MIN2(currentsz, count - j); in TAG()
222 nr = MIN2(currentsz, count - j); in TAG()
252 nr = MIN2(currentsz, count - j); in TAG()
278 nr = MIN2(currentsz, count - j + 1); in TAG()
310 nr = MIN2(currentsz, count - j + 1); in TAG()
355 nr = MIN2(currentsz, count - j); in TAG()
/external/mesa3d/src/mesa/swrast/
Ds_blend.c263 rgba[i][RCOMP] = (GLubyte) MIN2( r, 255 ); in blend_add()
264 rgba[i][GCOMP] = (GLubyte) MIN2( g, 255 ); in blend_add()
265 rgba[i][BCOMP] = (GLubyte) MIN2( b, 255 ); in blend_add()
266 rgba[i][ACOMP] = (GLubyte) MIN2( a, 255 ); in blend_add()
279 rgba[i][RCOMP] = (GLshort) MIN2( r, 255 ); in blend_add()
280 rgba[i][GCOMP] = (GLshort) MIN2( g, 255 ); in blend_add()
281 rgba[i][BCOMP] = (GLshort) MIN2( b, 255 ); in blend_add()
282 rgba[i][ACOMP] = (GLshort) MIN2( a, 255 ); in blend_add()
322 rgba[i][RCOMP] = MIN2( rgba[i][RCOMP], dest[i][RCOMP] ); in blend_min()
323 rgba[i][GCOMP] = MIN2( rgba[i][GCOMP], dest[i][GCOMP] ); in blend_min()
[all …]
/external/mesa3d/src/mesa/main/
Dtexcompress_etc.c686 const unsigned h = MIN2(bh, height - y); in etc2_unpack_rgb8()
693 const unsigned w = MIN2(bw, width - x); in etc2_unpack_rgb8()
730 const unsigned h = MIN2(bh, height - y); in etc2_unpack_srgb8()
733 const unsigned w = MIN2(bw, width - x); in etc2_unpack_srgb8()
777 const unsigned h = MIN2(bh, height - y); in etc2_unpack_rgba8()
780 const unsigned w = MIN2(bw, width - x); in etc2_unpack_rgba8()
815 const unsigned h = MIN2(bh, height - y); in etc2_unpack_srgb8_alpha8()
819 const unsigned w = MIN2(bw, width - x); in etc2_unpack_srgb8_alpha8()
859 const unsigned h = MIN2(bh, height - y); in etc2_unpack_r11()
863 const unsigned w = MIN2(bw, width - x); in etc2_unpack_r11()
[all …]
Dstreaming-load-memcpy.c55 memcpy(d, s, MIN2(bytes_before_alignment_boundary, len)); in _mesa_streaming_load_memcpy()
59 len -= MIN2(bytes_before_alignment_boundary, len); in _mesa_streaming_load_memcpy()
/external/mesa3d/src/gallium/drivers/radeonsi/
Dsi_state_viewport.c100 out->maxx = MIN2(out->maxx, clip->maxx); in si_clip_scissor()
101 out->maxy = MIN2(out->maxy, clip->maxy); in si_clip_scissor()
107 out->minx = MIN2(out->minx, in->minx); in si_scissor_make_union()
108 out->miny = MIN2(out->miny, in->miny); in si_scissor_make_union()
177 guardband_x = MIN2(-left, right); in si_emit_guardband()
178 guardband_y = MIN2(-top, bottom); in si_emit_guardband()
201 discard_x = MIN2(discard_x, guardband_x); in si_emit_guardband()
202 discard_y = MIN2(discard_y, guardband_y); in si_emit_guardband()
Dsi_perfcounter.c442 *num_select_dw = 4 + count + MIN2(count, regs->num_multi) + regs->num_prelude; in si_pc_get_size()
445 *num_select_dw = 3 * (count + MIN2(count, regs->num_multi)); in si_pc_get_size()
449 *num_select_dw = 2 + count + MIN2(count, regs->num_multi) + regs->num_prelude; in si_pc_get_size()
511 for (idx = 0; idx < MIN2(count, regs->num_multi); ++idx) in si_pc_emit_select()
520 for (idx = 0; idx < MIN2(count, regs->num_multi); ++idx) in si_pc_emit_select()
539 select1_count = MIN2(count, regs->num_multi); in si_pc_emit_select()
554 unsigned reg_count = count + MIN2(count, regs->num_multi); in si_pc_emit_select()
/external/mesa3d/src/gallium/auxiliary/draw/
Ddraw_split_tmp.h90 draw_pt_trim_count(MIN2(max_count_simple, count), first, incr); in FUNC()
118 draw_pt_trim_count(MIN2(max_count_loop, count), first, incr); in FUNC()
141 draw_pt_trim_count(MIN2(max_count_fan, count), first, incr); in FUNC()
/external/mesa3d/src/intel/compiler/
Dbrw_vec4_live_variables.cpp261 start[v] = MIN2(start[v], ip); in calculate_live_intervals()
273 start[v] = MIN2(start[v], ip); in calculate_live_intervals()
295 start[i] = MIN2(start[i], block->start_ip); in calculate_live_intervals()
300 start[i] = MIN2(start[i], block->end_ip); in calculate_live_intervals()
320 start = MIN2(start, virtual_grf_start[v + i]); in var_range_start()
Dbrw_fs_live_variables.cpp62 start[var] = MIN2(start[var], ip); in setup_one_read()
80 start[var] = MIN2(start[var], ip); in setup_one_write()
240 start[i] = MIN2(start[i], block->start_ip); in compute_start_end()
245 start[i] = MIN2(start[i], block->end_ip); in compute_start_end()
341 virtual_grf_start[vgrf] = MIN2(virtual_grf_start[vgrf], in calculate_live_intervals()
/external/mesa3d/src/broadcom/compiler/
Dvir_live_variables.c65 c->temp_start[var] = MIN2(c->temp_start[var], ip); in vir_setup_use()
109 c->temp_start[var] = MIN2(c->temp_start[var], ip); in vir_setup_def()
293 c->temp_start[i] = MIN2(c->temp_start[i], in vir_compute_start_end()
300 c->temp_start[i] = MIN2(c->temp_start[i], in vir_compute_start_end()
/external/mesa3d/src/gallium/drivers/vc5/
Dvc5_emit.c174 .min_level_of_detail = MIN2(psview->u.tex.first_level + in emit_one_texture()
177 .max_level_of_detail = MIN2(psview->u.tex.first_level + in emit_one_texture()
333 maxx = MIN2(vp_maxx, job->draw_width); in v3dX()
334 maxy = MIN2(vp_maxy, job->draw_height); in v3dX()
338 maxx = MIN2(vp_maxx, vc5->scissor.maxx); in v3dX()
339 maxy = MIN2(vp_maxy, vc5->scissor.maxy); in v3dX()
349 job->draw_min_x = MIN2(job->draw_min_x, minx); in v3dX()
350 job->draw_min_y = MIN2(job->draw_min_y, miny); in v3dX()
/external/mesa3d/src/mesa/drivers/dri/i965/
Dintel_blit.c262 const uint32_t chunk_w = MIN2(max_chunk_size, width - chunk_x); in emit_miptree_blit()
263 const uint32_t chunk_h = MIN2(max_chunk_size, height - chunk_y); in emit_miptree_blit()
749 pitch = ROUND_DOWN_TO(MIN2(size, (1 << 15) - 64), 4); in intel_emit_linear_blit()
754 pitch = ALIGN(MIN2(size, (1 << 15) - 64), 4); in intel_emit_linear_blit()
765 MIN2(size, pitch), height, /* w, h */ in intel_emit_linear_blit()
769 MIN2(size, pitch), height); in intel_emit_linear_blit()
837 const uint32_t chunk_w = MIN2(max_chunk_size, width - chunk_x); in intel_miptree_set_alpha_to_one()
838 const uint32_t chunk_h = MIN2(max_chunk_size, height - chunk_y); in intel_miptree_set_alpha_to_one()
/external/mesa3d/src/util/
Dmacros.h278 #define MIN2( A, B ) ( (A)<(B) ? (A) : (B) ) macro
284 #define MIN3( A, B, C ) ((A) < (B) ? MIN2(A, C) : MIN2(B, C))
/external/mesa3d/src/gallium/drivers/r600/
Dr600_viewport.c128 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()
/external/mesa3d/src/gallium/drivers/nouveau/nv30/
Dnv30_push.c91 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()
/external/virglrenderer/src/gallium/auxiliary/util/
Du_rect.h94 d->x0 = MIN2(a->x0, b->x0); in u_rect_union()
95 d->y0 = MIN2(a->y0, b->y0); in u_rect_union()
/external/mesa3d/src/gallium/drivers/svga/
Dsvga_screen.c228 levels = MIN2(util_logbase2(result.u) + 1, levels); in svga_get_param()
232 levels = MIN2(util_logbase2(result.u) + 1, levels); in svga_get_param()
241 return MIN2(util_logbase2(result.u) + 1, SVGA_MAX_TEXTURE_LEVELS); in svga_get_param()
248 return MIN2(screen->get_param(screen, PIPE_CAP_MAX_TEXTURE_2D_LEVELS), in svga_get_param()
501 return MIN2(val, SVGA3D_TEMPREG_MAX); in vgpu9_get_shader_param()
573 return MIN2(val, SVGA3D_TEMPREG_MAX); in vgpu9_get_shader_param()
1061 svgascreen->maxPointSize = MIN2(svgascreen->maxPointSize, 80.0f); in svga_screen_create()

12345678910>>...15