| /xsrc/external/mit/libdrm/dist/ |
| H A 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))
|
| /xsrc/external/mit/MesaLib.old/dist/src/mesa/state_tracker/ |
| H A D | st_scissor.c | 46 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 D | st_atom_scissor.c | 65 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 D | st_scissor.c | 46 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 D | st_atom_scissor.c | 68 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 D | ir3_sun.c | 77 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 D | v3d_limits.h | 52 #define V3D_MAX_TEXTURE_SAMPLERS MAX2(V3D_VULKAN_MAX_TEXTURE_SAMPLERS, \
|
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/vc4/ |
| H A D | vc4_emit.c | 51 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 D | fd_layout_test.c | 41 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 D | u_box.h | 132 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 D | u_range.h | 64 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 D | u_box.h | 138 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 D | u_range.h | 69 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 D | ac_binary.c | 55 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 D | vc4_emit.c | 51 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 D | brw_ir_allocator.h | 52 capacity = MAX2(16, capacity * 2);
|
| /xsrc/external/mit/MesaLib/dist/src/intel/compiler/ |
| H A D | brw_ir_allocator.h | 52 capacity = MAX2(16, capacity * 2);
|
| /xsrc/external/mit/MesaLib.old/dist/src/util/ |
| H A D | debug.c | 44 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 D | fd3_screen.c | 53 if (MAX2(1, sample_count) != MAX2(1, storage_sample_count))
|
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/freedreno/a4xx/ |
| H A D | fd4_screen.c | 53 if (MAX2(1, sample_count) != MAX2(1, storage_sample_count))
|
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a6xx/ |
| H A D | fd6_vsc.c | 71 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 D | vbo_util.h | 89 return MAX2(f, -1.0f); 105 return MAX2(f, -1.0f);
|
| /xsrc/external/mit/MesaLib/dist/src/util/ |
| H A D | debug.c | 44 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 D | si_state_binning.c | 190 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 D | nv50_ir_sched_gm107.h | 66 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);
|