Home
last modified time | relevance | path

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

1234567

/external/mesa3d/src/mesa/drivers/dri/r200/
Dradeon_tile.c58 for (j = 0; j < MIN2(tile_height, height - row); ++j) in micro_tile_8_x_4_8bit()
60 unsigned columns = MIN2(tile_width, width - col); in micro_tile_8_x_4_8bit()
89 for (j = 0; j < MIN2(tile_height, height - row); ++j) in micro_tile_4_x_4_16bit()
91 unsigned columns = MIN2(tile_width, width - col); in micro_tile_4_x_4_16bit()
120 for (j = 0; j < MIN2(tile_height, height - row); ++j) in micro_tile_8_x_2_16bit()
122 unsigned columns = MIN2(tile_width, width - col); in micro_tile_8_x_2_16bit()
151 for (j = 0; j < MIN2(tile_height, height - row); ++j) in micro_tile_4_x_2_32bit()
153 unsigned columns = MIN2(tile_width, width - col); in micro_tile_4_x_2_32bit()
182 for (j = 0; j < MIN2(tile_height, height - row); ++j) in micro_tile_2_x_2_64bit()
184 unsigned columns = MIN2(tile_width, width - col); in micro_tile_2_x_2_64bit()
[all …]
/external/mesa3d/src/mesa/drivers/dri/radeon/
Dradeon_tile.c58 for (j = 0; j < MIN2(tile_height, height - row); ++j) in micro_tile_8_x_4_8bit()
60 unsigned columns = MIN2(tile_width, width - col); in micro_tile_8_x_4_8bit()
89 for (j = 0; j < MIN2(tile_height, height - row); ++j) in micro_tile_4_x_4_16bit()
91 unsigned columns = MIN2(tile_width, width - col); in micro_tile_4_x_4_16bit()
120 for (j = 0; j < MIN2(tile_height, height - row); ++j) in micro_tile_8_x_2_16bit()
122 unsigned columns = MIN2(tile_width, width - col); in micro_tile_8_x_2_16bit()
151 for (j = 0; j < MIN2(tile_height, height - row); ++j) in micro_tile_4_x_2_32bit()
153 unsigned columns = MIN2(tile_width, width - col); in micro_tile_4_x_2_32bit()
182 for (j = 0; j < MIN2(tile_height, height - row); ++j) in micro_tile_2_x_2_64bit()
184 unsigned columns = MIN2(tile_width, width - col); in micro_tile_2_x_2_64bit()
[all …]
Dradeon_mipmap_tree.c270 minLod = MIN2(minLod, tObj->MaxLevel); in calculate_min_max_lod()
272 maxLod = MIN2(maxLod, tObj->MaxLevel); in calculate_min_max_lod()
273 maxLod = MIN2(maxLod, tObj->Image[0][minLod]->MaxNumLevels - 1 + minLod); in calculate_min_max_lod()
332 numLevels = MIN2(texObj->_MaxLevel - texObj->BaseLevel + 1, firstImage->MaxNumLevels); in radeon_miptree_matches_texture()
381 numLevels = MIN2(texObj->MaxLevel - texObj->BaseLevel + 1, texImg->MaxNumLevels); in radeon_try_alloc_miptree()
/external/mesa3d/src/mesa/tnl_dd/
Dt_dd_dmatmp.h125 nr = MIN2( currentsz, count - j ); in TAG()
160 nr = MIN2( currentsz, count - j ); in TAG()
190 nr = MIN2( currentsz, count - j ); in TAG()
234 nr = MIN2( currentsz, count - j ); in TAG()
293 nr = MIN2( currentsz, count - j ); in TAG()
326 nr = MIN2( currentsz, count - j ); in TAG()
359 nr = MIN2( currentsz, count - j + 1 ); in TAG()
399 nr = MIN2( currentsz, count - j + 1 ); in TAG()
441 nr = MIN2( currentsz, count - j ); in TAG()
478 nr = MIN2( currentsz, count - j ); in TAG()
[all …]
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 …]
/external/mesa3d/src/gallium/auxiliary/util/
Du_framebuffer.c129 w = MIN2(w, fb->cbufs[i]->width); in util_framebuffer_min_size()
130 h = MIN2(h, fb->cbufs[i]->height); in util_framebuffer_min_size()
134 w = MIN2(w, fb->zsbuf->width); in util_framebuffer_min_size()
135 h = MIN2(h, fb->zsbuf->height); in util_framebuffer_min_size()
/external/mesa3d/src/mesa/swrast/
Ds_blend.c266 rgba[i][RCOMP] = (GLubyte) MIN2( r, 255 ); in blend_add()
267 rgba[i][GCOMP] = (GLubyte) MIN2( g, 255 ); in blend_add()
268 rgba[i][BCOMP] = (GLubyte) MIN2( b, 255 ); in blend_add()
269 rgba[i][ACOMP] = (GLubyte) MIN2( a, 255 ); in blend_add()
282 rgba[i][RCOMP] = (GLshort) MIN2( r, 255 ); in blend_add()
283 rgba[i][GCOMP] = (GLshort) MIN2( g, 255 ); in blend_add()
284 rgba[i][BCOMP] = (GLshort) MIN2( b, 255 ); in blend_add()
285 rgba[i][ACOMP] = (GLshort) MIN2( a, 255 ); in blend_add()
325 rgba[i][RCOMP] = MIN2( rgba[i][RCOMP], dest[i][RCOMP] ); in blend_min()
326 rgba[i][GCOMP] = MIN2( rgba[i][GCOMP], dest[i][GCOMP] ); in blend_min()
[all …]
Ds_blit.c120 const GLint srcXpos = MIN2(srcX0, srcX1); in blit_nearest()
121 const GLint srcYpos = MIN2(srcY0, srcY1); in blit_nearest()
122 const GLint dstXpos = MIN2(dstX0, dstX1); in blit_nearest()
123 const GLint dstYpos = MIN2(dstY0, dstY1); in blit_nearest()
501 const GLint srcXpos = MIN2(srcX0, srcX1); in blit_linear()
502 const GLint srcYpos = MIN2(srcY0, srcY1); in blit_linear()
503 const GLint dstXpos = MIN2(dstX0, dstX1); in blit_linear()
504 const GLint dstYpos = MIN2(dstY0, dstY1); in blit_linear()
/external/mesa3d/src/gallium/drivers/svga/
Dsvga_screen.c158 return MIN2(result.u, PIPE_MAX_COLOR_BUFS); in svga_get_param()
179 levels = MIN2(util_logbase2(result.u) + 1, levels); in svga_get_param()
183 levels = MIN2(util_logbase2(result.u) + 1, levels); in svga_get_param()
192 return MIN2(util_logbase2(result.u) + 1, SVGA_MAX_TEXTURE_LEVELS); in svga_get_param()
199 return MIN2(screen->get_param(screen, PIPE_CAP_MAX_TEXTURE_2D_LEVELS), in svga_get_param()
294 return MIN2(result.u, SVGA3D_TEMPREG_MAX); in svga_get_shader_param()
346 return MIN2(result.u, SVGA3D_TEMPREG_MAX); in svga_get_shader_param()
615 svgascreen->maxPointSize = MIN2(result.f, 80.0f); in svga_screen_create()
/external/mesa3d/src/gallium/auxiliary/draw/
Ddraw_split_tmp.h91 draw_pt_trim_count(MIN2(max_count_simple, count), first, incr); in FUNC()
119 draw_pt_trim_count(MIN2(max_count_loop, count), first, incr); in FUNC()
142 draw_pt_trim_count(MIN2(max_count_fan, count), first, incr); in FUNC()
Ddraw_pt_vsplit.c91 fetch = MIN2(fetch, draw->pt.max_index); in vsplit_add_cache()
177 vsplit->segment_size = MIN2(SEGMENT_SIZE, vsplit->max_vertices); in vsplit_prepare()
/external/mesa3d/src/gallium/state_trackers/vega/
Dvg_context.h201 coords[2] = MIN2(coords[2], bounds[2]); in vg_shift_rectx()
216 coords[3] = MIN2(coords[3], bounds[3]); in vg_shift_recty()
260 coords[2] = MIN2(coords[2], bounds[2]); in vg_bound_rect()
261 coords[3] = MIN2(coords[3], bounds[3]); in vg_bound_rect()
Dmask.c74 location[2] = MIN2(tx + swidth, MIN2(dwidth, tx + twidth)); in intersect_rectangles()
77 offsets[2] = MIN2(twidth, MIN2(dwidth - tx, swidth )); in intersect_rectangles()
85 location[3] = MIN2(ty + sheight, MIN2(dheight, ty + theight)); in intersect_rectangles()
88 offsets[3] = MIN2(theight, MIN2(dheight - ty, sheight)); in intersect_rectangles()
Dapi_path.c448 *minX = MIN2(pts[0], MIN2(pts[2], MIN2(pts[4], pts[6]))); in vegaPathTransformedBounds()
449 *minY = MIN2(pts[1], MIN2(pts[3], MIN2(pts[5], pts[7]))); in vegaPathTransformedBounds()
Dpolygon.c118 int size = MIN2(sizeof(float) * COMPONENTS * new_size, in polygon_resize()
204 minx = MIN2(vert[0], minx); in polygon_bounding_rect()
205 miny = MIN2(vert[1], miny); in polygon_bounding_rect()
/external/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_fs_live_variables.cpp199 def[reg] = MIN2(def[reg], ip); in calculate_live_intervals()
212 def[i] = MIN2(def[i], cfg.blocks[b]->start_ip); in calculate_live_intervals()
217 def[i] = MIN2(def[i], cfg.blocks[b]->end_ip); in calculate_live_intervals()
265 int end = MIN2(a_use, b_use); in virtual_grf_interferes()
/external/mesa3d/src/gallium/drivers/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/mesa3d/src/gallium/drivers/nvc0/
Dnvc0_transfer.c197 nr = MIN2(count, nr - 9); in nvc0_m2mf_push_linear()
198 nr = MIN2(nr, NV04_PFIFO_MAX_PACKET_LEN); in nvc0_m2mf_push_linear()
242 nr = MIN2(count, nr - 8); in nve4_p2mf_push_linear()
243 nr = MIN2(nr, (NV04_PFIFO_MAX_PACKET_LEN - 1)); in nve4_p2mf_push_linear()
279 unsigned bytes = MIN2(size, 1 << 17); in nvc0_m2mf_copy_linear()
486 nr = MIN2(nr, words); in nvc0_cb_push()
487 nr = MIN2(nr, NV04_PFIFO_MAX_PACKET_LEN - 1); in nvc0_cb_push()
Dnvc0_push.c126 unsigned push = MIN2(count, ctx->packet_vertex_limit); in emit_vertices_i08()
167 unsigned push = MIN2(count, ctx->packet_vertex_limit); in emit_vertices_i16()
208 unsigned push = MIN2(count, ctx->packet_vertex_limit); in emit_vertices_i32()
247 unsigned push = MIN2(count, ctx->packet_vertex_limit); in emit_vertices_seq()
/external/mesa3d/src/gallium/drivers/nv50/
Dnv50_push.c68 unsigned push = MIN2(count, ctx->packet_vertex_limit); in emit_vertices_i08()
101 unsigned push = MIN2(count, ctx->packet_vertex_limit); in emit_vertices_i16()
134 unsigned push = MIN2(count, ctx->packet_vertex_limit); in emit_vertices_i32()
165 unsigned push = MIN2(count, ctx->packet_vertex_limit); in emit_vertices_seq()
/external/mesa3d/src/mesa/main/
Dviewport.c77 width = MIN2(width, (GLsizei) ctx->Const.MaxViewportWidth); in _mesa_set_viewport()
78 height = MIN2(height, (GLsizei) ctx->Const.MaxViewportHeight); in _mesa_set_viewport()
/external/mesa3d/src/mesa/vbo/
Dvbo_split_inplace.c124 split->min_index = MIN2(split->min_index, prim->start); in update_index_bounds()
142 return MIN2(split->min_index, prim->start) + split->limit - prim->start; in get_max_vertices()
181 nr = MIN2( available, remaining ); in split_prims()
Dvbo_primitive_restart.c38 #define UPDATE_MIN2(a, b) (a) = MIN2((a), (b))
211 temp_prim.count = MIN2(sub_end_index, end_index) - temp_prim.start; in vbo_sw_primitive_restart()
/external/mesa3d/src/mesa/state_tracker/
Dst_extensions.c192 pc->MaxUniformComponents = 4 * MIN2(pc->MaxNativeParameters, MAX_UNIFORMS); in st_init_limits()
199 pc->MaxLocalParams = MIN2(pc->MaxParameters, MAX_PROGRAM_LOCAL_PARAMS); in st_init_limits()
200 pc->MaxEnvParams = MIN2(pc->MaxParameters, MAX_PROGRAM_ENV_PARAMS); in st_init_limits()
222 …options->MaxUnrollIterations = MIN2(screen->get_shader_param(screen, sh, PIPE_SHADER_CAP_MAX_INSTR… in st_init_limits()
232 c->MaxVarying = MIN2(c->MaxVarying, MAX_VARYING); in st_init_limits()
241 c->MaxTransformFeedbackBuffers = MIN2(c->MaxTransformFeedbackBuffers, MAX_FEEDBACK_BUFFERS); in st_init_limits()
/external/mesa3d/src/mesa/drivers/dri/nouveau/
Dnouveau_render_t.c62 int npack = MIN2(npush, MAX_PACKET * MAX_OUT_##out); \
68 int nout = MIN2(npack, MAX_OUT_##out); \

1234567