Searched refs:MAX2 (Results 1 - 25 of 1128) sorted by relevance

1234567891011>>

/xsrc/external/mit/libdrm/dist/
H A Dutil_math.h28 #define MAX2( A, B ) ( (A)>(B) ? (A) : (B) ) macro
29 #define MAX3( A, B, C ) ((A) > (B) ? MAX2(A, C) : MAX2(B, C))
/xsrc/external/mit/MesaLib.old/dist/src/mesa/state_tracker/
H A Dst_scissor.c46 dst_rect->minx = MAX2(src_rect->X, 0);
47 dst_rect->miny = MAX2(src_rect->Y, 0);
48 dst_rect->maxx = MAX2(src_rect->X + src_rect->Width, 0);
49 dst_rect->maxy = MAX2(src_rect->Y + src_rect->Height, 0);
H A Dst_atom_scissor.c65 GLint xmax = MAX2(0, ctx->Scissor.ScissorArray[i].X + ctx->Scissor.ScissorArray[i].Width);
66 GLint ymax = MAX2(0, ctx->Scissor.ScissorArray[i].Y + ctx->Scissor.ScissorArray[i].Height);
124 new_rects[i].minx = MAX2(rect->X, 0);
125 new_rects[i].miny = MAX2(rect->Y, 0);
126 new_rects[i].maxx = MAX2(rect->X + rect->Width, 0);
127 new_rects[i].maxy = MAX2(rect->Y + rect->Height, 0);
/xsrc/external/mit/MesaLib/dist/src/mesa/state_tracker/
H A Dst_scissor.c46 dst_rect->minx = MAX2(src_rect->X, 0);
47 dst_rect->miny = MAX2(src_rect->Y, 0);
48 dst_rect->maxx = MAX2(src_rect->X + src_rect->Width, 0);
49 dst_rect->maxy = MAX2(src_rect->Y + src_rect->Height, 0);
H A Dst_atom_scissor.c68 GLint xmax = MAX2(0, ctx->Scissor.ScissorArray[i].X + ctx->Scissor.ScissorArray[i].Width);
69 GLint ymax = MAX2(0, ctx->Scissor.ScissorArray[i].Y + ctx->Scissor.ScissorArray[i].Height);
127 new_rects[i].minx = MAX2(rect->X, 0);
128 new_rects[i].miny = MAX2(rect->Y, 0);
129 new_rects[i].maxx = MAX2(rect->X + rect->Width, 0);
130 new_rects[i].maxy = MAX2(rect->Y + rect->Height, 0);
/xsrc/external/mit/MesaLib.old/dist/src/freedreno/ir3/
H A Dir3_sun.c77 unsigned r = MAX2(a[k], b[k] + last_r);
85 last_r = MAX2(last_r, dest_regs(instr));
101 max = MAX2(max, number_instr(ir->outputs[i]));
105 max = MAX2(max, number_instr(block->keeps[i]));
107 max = MAX2(max, number_instr(block->condition));
/xsrc/external/mit/MesaLib/dist/src/broadcom/common/
H A Dv3d_limits.h52 #define V3D_MAX_TEXTURE_SAMPLERS MAX2(V3D_VULKAN_MAX_TEXTURE_SAMPLERS, \
/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/vc4/
H A Dvc4_emit.c51 minx = MAX2(vp_minx, 0);
52 miny = MAX2(vp_miny, 0);
53 maxx = MAX2(MIN2(vp_maxx, job->draw_width), minx);
54 maxy = MAX2(MIN2(vp_maxy, job->draw_height), miny);
56 minx = MAX2(vp_minx, vc4->scissor.minx);
57 miny = MAX2(vp_miny, vc4->scissor.miny);
58 maxx = MAX2(MIN2(vp_maxx, vc4->scissor.maxx), minx);
59 maxy = MAX2(MIN2(vp_maxy, vc4->scissor.maxy), miny);
71 job->draw_max_x = MAX2(job->draw_max_x, maxx);
72 job->draw_max_y = MAX2(jo
[all...]
/xsrc/external/mit/MesaLib/dist/src/freedreno/fdl/
H A Dfd_layout_test.c41 int max_size = MAX2(testcase->layout.width0, testcase->layout.height0);
50 MAX2(testcase->layout.nr_samples, 1), testcase->layout.width0,
51 MAX2(testcase->layout.height0, 1),
52 MAX2(testcase->layout.depth0, 1), mip_levels,
53 MAX2(testcase->array_size, 1), testcase->is_3d, NULL);
57 MAX2(testcase->layout.nr_samples, 1), testcase->layout.width0,
58 MAX2(testcase->layout.height0, 1),
59 MAX2(testcase->layout.depth0, 1), mip_levels,
60 MAX2(testcase->array_size, 1), testcase->is_3d);
/xsrc/external/mit/MesaLib.old/dist/src/gallium/auxiliary/util/
H A Du_box.h132 dst->width = MAX2(a->x + a->width, b->x + b->width) - x;
133 dst->height = MAX2(a->y + a->height, b->y + b->height) - y;
149 dst->width = MAX2(a->x + a->width, b->x + b->width) - x;
150 dst->height = MAX2(a->y + a->height, b->y + b->height) - y;
151 dst->depth = MAX2(a->z + a->depth, b->z + b->depth) - z;
165 a_r[0] = MAX2(a->x, a->x + a->width);
167 a_r[1] = MAX2(a->y, a->y + a->height);
170 b_r[0] = MAX2(b->x, b->x + b->width);
172 b_r[1] = MAX2(b->y, b->y + b->height);
187 dst->width = MAX2(sr
[all...]
H A Du_range.h64 range->end = MAX2(end, range->end);
73 return MAX2(start, range->start) < MIN2(end, range->end);
/xsrc/external/mit/MesaLib/dist/src/gallium/auxiliary/util/
H A Du_box.h138 width = MAX2(a->x + a->width, b->x + b->width) - x;
152 x = MAX2(a->x, b->x);
172 dst->width = MAX2(a->x + a->width, b->x + b->width) - x;
173 dst->height = MAX2(a->y + a->height, b->y + b->height) - y;
189 dst->width = MAX2(a->x + a->width, b->x + b->width) - x;
190 dst->height = MAX2(a->y + a->height, b->y + b->height) - y;
191 dst->depth = MAX2(a->z + a->depth, b->z + b->depth) - z;
205 a_r[0] = MAX2(a->x, a->x + a->width);
207 a_r[1] = MAX2(a->y, a->y + a->height);
210 b_r[0] = MAX2(
[all...]
H A Du_range.h69 range->end = MAX2(end, range->end);
73 range->end = MAX2(end, range->end);
83 return MAX2(start, range->start) < MIN2(end, range->end);
/xsrc/external/mit/MesaLib/dist/src/amd/common/
H A Dac_binary.c55 conf->num_vgprs = MAX2(conf->num_vgprs, (G_00B028_VGPRS(value) + 1) * 8);
57 conf->num_vgprs = MAX2(conf->num_vgprs, (G_00B028_VGPRS(value) + 1) * 4);
59 conf->num_sgprs = MAX2(conf->num_sgprs, (G_00B028_SGPRS(value) + 1) * 8);
65 conf->lds_size = MAX2(conf->lds_size, G_00B02C_EXTRA_LDS_SIZE(value));
83 conf->lds_size = MAX2(conf->lds_size, G_00B84C_LDS_SIZE(value));
/xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/vc4/
H A Dvc4_emit.c51 minx = MAX2(vp_minx, 0);
52 miny = MAX2(vp_miny, 0);
56 minx = MAX2(vp_minx, vc4->scissor.minx);
57 miny = MAX2(vp_miny, vc4->scissor.miny);
71 job->draw_max_x = MAX2(job->draw_max_x, maxx);
72 job->draw_max_y = MAX2(job->draw_max_y, maxy);
/xsrc/external/mit/MesaLib.old/dist/src/intel/compiler/
H A Dbrw_ir_allocator.h52 capacity = MAX2(16, capacity * 2);
/xsrc/external/mit/MesaLib/dist/src/intel/compiler/
H A Dbrw_ir_allocator.h52 capacity = MAX2(16, capacity * 2);
/xsrc/external/mit/MesaLib.old/dist/src/util/
H A Ddebug.c44 for (; n = strcspn(s, ", "), *s; s += MAX2(1, n)) {
62 for (unsigned n; n = strcspn(list, ","), *list; list += MAX2(1, n)) {
/xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/freedreno/a3xx/
H A Dfd3_screen.c53 if (MAX2(1, sample_count) != MAX2(1, storage_sample_count))
/xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/freedreno/a4xx/
H A Dfd4_screen.c53 if (MAX2(1, sample_count) != MAX2(1, storage_sample_count))
/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a6xx/
H A Dfd6_vsc.c71 return MAX2(1, (draw->count * info->instance_count) / vtx_per_prim);
126 MAX2(1, info->instance_count);
/xsrc/external/mit/MesaLib/dist/src/mesa/vbo/
H A Dvbo_util.h89 return MAX2(f, -1.0f);
105 return MAX2(f, -1.0f);
/xsrc/external/mit/MesaLib/dist/src/util/
H A Ddebug.c44 for (; n = strcspn(s, ", "), *s; s += MAX2(1, n)) {
62 for (unsigned n; n = strcspn(list, ","), *list; list += MAX2(1, n)) {
/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/radeonsi/
H A Dsi_state_binning.c190 unsigned sum = 4 * (depth_coeff + stencil_coeff) * MAX2(tex->buffer.b.b.nr_samples, 1);
313 const unsigned num_pipes = MAX2(num_rbs, sctx->screen->info.num_tcc_blocks);
356 cColor = MAX2(cColor, 1u);
366 cFmask = MAX2(cFmask, 1u);
380 color_bin_size->x = MAX2(binSizeX, minBinSizeX);
381 color_bin_size->y = MAX2(binSizeY, minBinSizeY);
394 (cPerDepthSample + cPerStencilSample) * MAX2(zstex->buffer.b.b.nr_samples, 1);
396 const unsigned depthLog2Pixels = util_logbase2(depthBinSizeTagPart / MAX2(cDepth, 1u));
400 depth_bin_size->x = MAX2(depthBinSizeX, minBinSizeX);
401 depth_bin_size->y = MAX2(depthBinSize
[all...]
/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/nouveau/codegen/
H A Dnv50_ir_sched_gm107.h66 return MAX2(getLatestRd(), getLatestWr());
71 rd.r[i] = MAX2(rd.r[i], that->rd.r[i]);
72 wr.r[i] = MAX2(wr.r[i], that->wr.r[i]);
75 rd.p[i] = MAX2(rd.p[i], that->rd.p[i]);
76 wr.p[i] = MAX2(wr.p[i], that->wr.p[i]);
78 rd.c = MAX2(rd.c, that->rd.c);
79 wr.c = MAX2(wr.c, that->wr.c);

Completed in 8 milliseconds

1234567891011>>