Home
last modified time | relevance | path

Searched refs:maxx (Results 1 – 25 of 96) sorted by relevance

1234

/external/mesa3d/src/gallium/drivers/panfrost/
Dpan_partial_update.c29 pan_make_rect(unsigned minx, unsigned miny, unsigned maxx, unsigned maxy) in pan_make_rect() argument
34 .maxx = maxx, in pan_make_rect()
56 unsigned maxx = MAX2(MIN2(r->maxx, clip->maxx), minx); in pan_clip_rect() local
59 return pan_make_rect(minx, miny, maxx, maxy); in pan_clip_rect()
74 out[1] = pan_make_rect(dc.minx, r->miny, dc.maxx, dc.miny); in pan_subtract_from_rect()
75 out[2] = pan_make_rect(dc.maxx, r->miny, r->maxx, r->maxy); in pan_subtract_from_rect()
76 out[3] = pan_make_rect(dc.minx, dc.maxy, dc.maxx, r->maxy); in pan_subtract_from_rect()
101 if (temp[i].maxx <= temp[i].minx) continue; in pan_subtract_from_rects()
Dpan_fragment.c83 batch->maxx = MIN2(batch->maxx, fb->width); in panfrost_fragment_job()
89 assert(batch->maxx > batch->minx); in panfrost_fragment_job()
106 payload.bound_max_x = (batch->maxx - 1) >> MALI_TILE_SHIFT; in panfrost_fragment_job()
Dpan_job.h90 unsigned maxx, maxy; member
197 unsigned maxx, unsigned maxy);
202 unsigned maxx, unsigned maxy);
Dpan_job.c114 batch->maxx = batch->maxy = 0; in panfrost_create_batch()
772 unsigned damage_width = (rsrc->damage.extent.maxx - rsrc->damage.extent.minx); in panfrost_load_surface()
779 rsrc->damage.extent.maxx, in panfrost_load_surface()
852 r.maxx, rsrc->base.height0 - r.miny, 0.0, 1.0, in panfrost_load_surface()
855 r.maxx, rsrc->base.height0 - r.miny, 0.0, 1.0, in panfrost_load_surface()
857 r.maxx, rsrc->base.height0 - r.maxy, 0.0, 1.0, in panfrost_load_surface()
1366 unsigned maxx, unsigned maxy) in panfrost_batch_union_scissor() argument
1370 batch->maxx = MAX2(batch->maxx, maxx); in panfrost_batch_union_scissor()
1377 unsigned maxx, unsigned maxy) in panfrost_batch_intersection_scissor() argument
1381 batch->maxx = MIN2(batch->maxx, maxx); in panfrost_batch_intersection_scissor()
/external/mesa3d/src/gallium/drivers/r600/
Dr600_viewport.c78 float tmp, minx, miny, maxx, maxy; in r600_get_scissor_from_viewport() local
83 maxx = vp->scale[0] + vp->translate[0]; in r600_get_scissor_from_viewport()
87 if (minx == -1 && miny == -1 && maxx == 1 && maxy == 1) { in r600_get_scissor_from_viewport()
89 scissor->maxx = scissor->maxy = GET_MAX_SCISSOR(rctx); in r600_get_scissor_from_viewport()
94 if (minx > maxx) { in r600_get_scissor_from_viewport()
96 minx = maxx; in r600_get_scissor_from_viewport()
97 maxx = tmp; in r600_get_scissor_from_viewport()
108 scissor->maxx = ceilf(maxx); in r600_get_scissor_from_viewport()
119 out->maxx = CLAMP(scissor->maxx, 0, max_scissor); in r600_clamp_scissor()
128 out->maxx = MIN2(out->maxx, clip->maxx); in r600_clip_scissor()
[all …]
/external/mesa3d/src/gallium/drivers/radeonsi/
Dsi_state_viewport.c147 float tmp, minx, miny, maxx, maxy; in si_get_scissor_from_viewport() local
152 maxx = vp->scale[0] + vp->translate[0]; in si_get_scissor_from_viewport()
156 if (minx > maxx) { in si_get_scissor_from_viewport()
158 minx = maxx; in si_get_scissor_from_viewport()
159 maxx = tmp; in si_get_scissor_from_viewport()
170 scissor->maxx = ceilf(maxx); in si_get_scissor_from_viewport()
179 out->maxx = CLAMP(scissor->maxx, 0, SI_MAX_SCISSOR); in si_clamp_scissor()
187 out->maxx = MIN2(out->maxx, clip->maxx); in si_clip_scissor()
195 out->maxx = MAX2(out->maxx, in->maxx); in si_scissor_make_union()
208 final.maxx = final.maxy = SI_MAX_SCISSOR; in si_emit_one_scissor()
[all …]
/external/python/cpython3/Lib/curses/
Dtextpad.py52 maxy, maxx = self.win.getmaxyx()
54 self.maxx = maxx - 1
60 last = self.maxx
63 last = min(self.maxx, last+1)
74 while y < self.maxy or x < self.maxx:
101 if y < self.maxy or x < self.maxx:
113 self.win.move(y-1, self.maxx)
122 self.win.move(y, self.maxx)
124 if x < self.maxx:
169 for x in range(self.maxx+1):
/external/python/cpython2/Lib/curses/
Dtextpad.py52 maxy, maxx = self.win.getmaxyx()
54 self.maxx = maxx - 1
60 last = self.maxx
63 last = min(self.maxx, last+1)
74 while y < self.maxy or x < self.maxx:
101 if y < self.maxy or x < self.maxx:
113 self.win.move(y-1, self.maxx)
122 self.win.move(y, self.maxx)
124 if x < self.maxx:
169 for x in range(self.maxx+1):
/external/autotest/client/profilers/powertop/src/
Ddisplay.c87 int maxx, maxy; variable
94 getmaxyx(stdscr, maxy, maxx); in setup_windows()
98 title_bar_window = subwin(stdscr, 1, maxx, 0, 0); in setup_windows()
99 cstate_window = subwin(stdscr, 7, maxx, 2, 0); in setup_windows()
100 wakeup_window = subwin(stdscr, 1, maxx, 9, 0); in setup_windows()
101 battery_power_window = subwin(stdscr, 2, maxx, 10, 0); in setup_windows()
102 timerstat_window = subwin(stdscr, maxy-16, maxx, 12, 0); in setup_windows()
104 maxwidth = maxx - 18; in setup_windows()
105 suggestion_window = subwin(stdscr, 3, maxx, maxy-4, 0); in setup_windows()
106 status_bar_window = subwin(stdscr, 1, maxx, maxy-1, 0); in setup_windows()
/external/mesa3d/src/gallium/drivers/vc4/
Dvc4_emit.c49 uint32_t minx, miny, maxx, maxy; in vc4_emit_state() local
53 maxx = MAX2(MIN2(vp_maxx, job->draw_width), minx); in vc4_emit_state()
58 maxx = MAX2(MIN2(vp_maxx, vc4->scissor.maxx), minx); in vc4_emit_state()
66 clip.clip_window_width_in_pixels = maxx - minx; in vc4_emit_state()
71 job->draw_max_x = MAX2(job->draw_max_x, maxx); in vc4_emit_state()
/external/mesa3d/src/mesa/state_tracker/
Dst_atom_scissor.c63 scissor[i].maxx = fb_width; in st_update_scissor()
76 if (xmax < (GLint) scissor[i].maxx) in st_update_scissor()
77 scissor[i].maxx = xmax; in st_update_scissor()
82 if (scissor[i].minx >= scissor[i].maxx || scissor[i].miny >= scissor[i].maxy) in st_update_scissor()
83 scissor[i].minx = scissor[i].miny = scissor[i].maxx = scissor[i].maxy = 0; in st_update_scissor()
129 new_rects[i].maxx = MAX2(rect->X + rect->Width, 0); in st_update_window_rectangles()
/external/python/cpython2/Modules/
Dimageop.c224 int maxx, maxy, x, y, len; in imageop_tovideo() local
231 if ( !PyArg_ParseTuple(args, "s#iii", &cp, &len, &width, &maxx, &maxy) ) in imageop_tovideo()
238 if ( !check_multiply_size(len, maxx, "max", maxy, "maxy", width) ) in imageop_tovideo()
247 memcpy(ncp, cp, maxx); /* Copy first line */ in imageop_tovideo()
248 ncp += maxx; in imageop_tovideo()
250 for(x=0; x<maxx; x++) { in imageop_tovideo()
251 i = y*maxx + x; in imageop_tovideo()
252 *ncp++ = ((int)cp[i] + (int)cp[i-maxx]) >> 1; in imageop_tovideo()
256 memcpy(ncp, cp, maxx*4); /* Copy first line */ in imageop_tovideo()
257 ncp += maxx*4; in imageop_tovideo()
[all …]
/external/mesa3d/src/gallium/frontends/xa/
Dxa_priv.h128 ctx->scissor.maxx = 0; in xa_scissor_reset()
137 unsigned maxx, unsigned maxy) in xa_scissor_update() argument
139 ctx->scissor.maxx = MAX2(ctx->scissor.maxx, maxx); in xa_scissor_update()
/external/renderscript-intrinsics-replacement-toolkit/renderscript-toolkit/src/main/cpp/
DResize.cpp130 int maxx = width - 1; in OneBiCubic() local
133 int xs2 = std::min(maxx, startx + 2); in OneBiCubic()
134 int xs3 = std::min(maxx, startx + 3); in OneBiCubic()
165 int maxx = width - 1; in OneBiCubic() local
168 int xs2 = std::min(maxx, startx + 2); in OneBiCubic()
169 int xs3 = std::min(maxx, startx + 3); in OneBiCubic()
200 int maxx = width - 1; in OneBiCubic() local
203 int xs2 = std::min(maxx, startx + 2); in OneBiCubic()
204 int xs3 = std::min(maxx, startx + 3); in OneBiCubic()
283 int maxx = width - 1; in OneBiCubic() local
[all …]
/external/mesa3d/src/gallium/drivers/nouveau/nv50/
Dnv50_state_validate.c188 int minx, maxx, miny, maxy, i; in nv50_validate_scissor() local
214 maxx = s->maxx; in nv50_validate_scissor()
219 maxx = nv50->framebuffer.width; in nv50_validate_scissor()
225 maxx = MIN2(maxx, (int)(vp->translate[0] + fabsf(vp->scale[0]))); in nv50_validate_scissor()
230 maxx = MAX2(maxx, 0); in nv50_validate_scissor()
235 PUSH_DATA (push, (maxx << 16) | minx); in nv50_validate_scissor()
239 PUSH_DATA (push, (s->maxx << 16) | s->minx); in nv50_validate_scissor()
303 PUSH_DATA(push, (s->maxx << 16) | s->minx); in nv50_validate_window_rects()
/external/mesa3d/src/gallium/drivers/lima/
Dlima_draw.c62 cscissor->maxx = scissor->maxx; in lima_clip_scissor_to_viewport()
67 cscissor->maxx = fb->base.width; in lima_clip_scissor_to_viewport()
75 cscissor->maxx = MIN2(cscissor->maxx, viewport_right); in lima_clip_scissor_to_viewport()
76 if (cscissor->minx > cscissor->maxx) in lima_clip_scissor_to_viewport()
77 cscissor->minx = cscissor->maxx; in lima_clip_scissor_to_viewport()
92 return cscissor->minx == cscissor->maxx || cscissor->miny == cscissor->maxy; in lima_is_scissor_zero()
124 unsigned minx, unsigned maxx, in lima_damage_rect_union() argument
129 rect->maxx = MAX2(rect->maxx, maxx); in lima_damage_rect_union()
362 assert(cscissor->minx < cscissor->maxx && cscissor->miny < cscissor->maxy); in lima_pack_plbu_cmd()
363 PLBU_CMD_SCISSORS(cscissor->minx, cscissor->maxx, cscissor->miny, cscissor->maxy); in lima_pack_plbu_cmd()
[all …]
Dlima_job.c101 s->damage_rect.maxx = s->damage_rect.maxy = 0; in lima_job_create()
636 bound.maxx = MIN2(dbound->maxx, (dr->maxx + 0xf) >> 4); in lima_update_damage_pp_stream()
641 bound.maxx = (dr->maxx + 0xf) >> 4; in lima_update_damage_pp_stream()
648 bound.maxx = MIN2(bound.maxx, fb->tiled_w); in lima_update_damage_pp_stream()
655 .maxx = bound.maxx, in lima_update_damage_pp_stream()
689 s->key.maxx = bound.maxx; in lima_update_damage_pp_stream()
697 int tiled_w = bound.maxx - bound.minx; in lima_update_damage_pp_stream()
724 dr->maxx == job->fb.width && in lima_damage_fullscreen()
/external/skia/src/effects/
DSkEmbossMask.cpp73 int maxx = mask->fBounds.width() - 1; in Emboss() local
79 for (int x = 0; x <= maxx; x++) { in Emboss()
80 int nx = alpha[x + neq_to_one(x, maxx)] - alpha[x - nonzero_to_one(x)]; in Emboss()
/external/ltp/testcases/realtime/lib/
Dlibstats.c317 int minx = 0, maxx = 0, miny = 0, maxy = 0; in stats_container_save() local
344 minx = maxx = data->records[0].x; in stats_container_save()
349 maxx = MAX(maxx, rec->x); in stats_container_save()
368 maxx + 1, maxy + 1, datfile, mode); in stats_container_save()
/external/fonttools/Lib/fontTools/cffLib/
Dwidth.py25 minx, maxx = keys[0], keys[-1]
30 missing = lambda x: start if x > maxx else total
31 domain = range(maxx, minx - 1, -1)
34 domain = range(minx, maxx + 1)
/external/mesa3d/src/gallium/drivers/freedreno/
Dfreedreno_state.c265 ctx->disabled_scissor.maxx = cso->width; in fd_set_framebuffer_state()
300 float minx, miny, maxx, maxy; in fd_set_viewport_states() local
309 maxx = viewport->scale[0] + viewport->translate[0]; in fd_set_viewport_states()
313 if (minx > maxx) { in fd_set_viewport_states()
314 swap(minx, maxx); in fd_set_viewport_states()
326 scissor->maxx = ceilf(maxx); in fd_set_viewport_states()
/external/mesa3d/src/gallium/drivers/v3d/
Dv3dx_emit.c437 uint32_t minx, miny, maxx, maxy; in v3dX() local
441 maxx = MIN2(vp_maxx, job->draw_width); in v3dX()
446 maxx = MIN2(vp_maxx, v3d->scissor.maxx); in v3dX()
453 if (maxx > minx && maxy > miny) { in v3dX()
454 clip.clip_window_width_in_pixels = maxx - minx; in v3dX()
469 job->draw_max_x = MAX2(job->draw_max_x, maxx); in v3dX()
/external/mesa3d/src/gallium/drivers/softpipe/
Dsp_state_derived.c269 sp->cliprect[i].maxx = MIN2(sp->scissors[i].maxx, surfWidth); in compute_cliprect()
276 sp->cliprect[i].maxx = surfWidth; in compute_cliprect()
/external/python/cpython3/Tools/demo/
Dspreadsheet.py135 maxx = maxy = 0
137 maxx = max(maxx, x)
139 return maxx, maxy
153 maxx, maxy = self.getsize()
154 width, height = maxx+1, maxy+1
503 maxx, maxy = self.sheet.getsize()
505 columns = max(columns, maxx)
/external/mesa3d/src/gallium/drivers/freedreno/a3xx/
Dfd3_emit.c673 int maxx = scissor->maxx; in fd3_emit_state() local
684 maxx = MIN2(maxx, (int)ceilf(vp->translate[0] + fabsf(vp->scale[0]))); in fd3_emit_state()
691 OUT_RING(ring, A3XX_GRAS_SC_WINDOW_SCISSOR_BR_X(maxx - 1) | in fd3_emit_state()
696 ctx->batch->max_scissor.maxx = MAX2(ctx->batch->max_scissor.maxx, maxx); in fd3_emit_state()

1234