Home
last modified time | relevance | path

Searched refs:miny (Results 1 – 25 of 92) sorted by relevance

1234

/external/mesa3d/src/gallium/drivers/freedreno/
Dgmemtool.c36 …{ .minx=0, .miny=0, .width=1536, .height=2048, .gmem_page_align=1, .nr_cbufs=1, .cbuf_cpp = {1,0,0…
38 …{ .minx=0, .miny=0, .width=1920, .height=1080, .gmem_page_align=1, .nr_cbufs=1, .cbuf_cpp = {4,0,0…
39 …{ .minx=0, .miny=0, .width=1920, .height=1080, .gmem_page_align=1, .nr_cbufs=1, .cbuf_cpp = {4,0,0…
47 …{ .minx=0, .miny=0, .width=1920, .height=1080, .gmem_page_align=1, .nr_cbufs=4, .cbuf_cpp = {4,4,4…
49 …{ .minx=0, .miny=0, .width=1024, .height=1024, .gmem_page_align=1, .nr_cbufs=0, .cbuf_cpp = {0,0,0…
50 …{ .minx=0, .miny=0, .width=1920, .height=1080, .gmem_page_align=1, .nr_cbufs=0, .cbuf_cpp = {0,0,0…
51 …{ .minx=0, .miny=0, .width=960, .height=540, .gmem_page_align=1, .nr_cbufs=1, .cbuf_cpp = {4,0,0,0…
52 …{ .minx=0, .miny=0, .width=480, .height=270, .gmem_page_align=1, .nr_cbufs=1, .cbuf_cpp = {4,0,0,0…
57 …{ .minx=0, .miny=0, .width=1920, .height=1080, .gmem_page_align=1, .nr_cbufs=1, .cbuf_cpp = {4,0,0…
58 …{ .minx=0, .miny=0, .width=1920, .height=1080, .gmem_page_align=1, .nr_cbufs=1, .cbuf_cpp = {4,0,0…
[all …]
Dfreedreno_gmem.c92 uint16_t minx, miny; member
119 key->minx, key->miny, key->width, key->height); in dump_gmem_key()
296 gmem->miny = key->miny; in gmem_stateobj_init()
380 yoff = key->miny; in gmem_stateobj_init()
388 bh = MIN2(gmem->bin_h, key->miny + key->height - yoff); in gmem_stateobj_init()
489 key->miny = 0; in gmem_key_init()
497 scissor->miny = 0; in gmem_key_init()
504 key->miny = scissor->miny & ~(screen->info.gmem_align_h - 1); in gmem_key_init()
506 key->height = scissor->maxy - key->miny; in gmem_key_init()
Dfreedreno_state.c264 ctx->disabled_scissor.miny = 0; in fd_set_framebuffer_state()
300 float minx, miny, maxx, maxy; in fd_set_viewport_states() local
308 miny = -viewport->scale[1] + viewport->translate[1]; in fd_set_viewport_states()
316 if (miny > maxy) { in fd_set_viewport_states()
317 swap(miny, maxy); in fd_set_viewport_states()
320 debug_assert(miny >= 0); in fd_set_viewport_states()
325 scissor->miny = miny; in fd_set_viewport_states()
/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
33 .miny = miny, in pan_make_rect()
55 unsigned miny = MAX2(r->miny, clip->miny); in pan_clip_rect() local
57 unsigned maxy = MAX2(MIN2(r->maxy, clip->maxy), miny); in pan_clip_rect()
59 return pan_make_rect(minx, miny, maxx, maxy); in pan_clip_rect()
73 out[0] = pan_make_rect(r->minx, r->miny, dc.minx, r->maxy); in pan_subtract_from_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()
102 if (temp[i].maxy <= temp[i].miny) continue; in pan_subtract_from_rects()
Dpan_job.h89 unsigned minx, miny; member
196 unsigned minx, unsigned miny,
201 unsigned minx, unsigned miny,
Dpan_job.c113 batch->minx = batch->miny = ~0; in panfrost_create_batch()
773 unsigned damage_height = (rsrc->damage.extent.maxy - rsrc->damage.extent.miny); in panfrost_load_surface()
778 rsrc->damage.extent.miny, in panfrost_load_surface()
851 r.minx, rsrc->base.height0 - r.miny, 0.0, 1.0, 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()
1365 unsigned minx, unsigned miny, in panfrost_batch_union_scissor() argument
1369 batch->miny = MIN2(batch->miny, miny); in panfrost_batch_union_scissor()
1376 unsigned minx, unsigned miny, in panfrost_batch_intersection_scissor() argument
1380 batch->miny = MAX2(batch->miny, miny); in panfrost_batch_intersection_scissor()
Dpan_fragment.c90 assert(batch->maxy > batch->miny); in panfrost_fragment_job()
103 payload.bound_min_y = batch->miny >> MALI_TILE_SHIFT; in panfrost_fragment_job()
Dpan_partial_update.h37 unsigned minx, miny; member
/external/mesa3d/src/mesa/state_tracker/
Dst_atom_scissor.c53 GLint miny, maxy; in st_update_scissor() local
62 scissor[i].miny = 0; in st_update_scissor()
73 if (ctx->Scissor.ScissorArray[i].Y > (GLint)scissor[i].miny) in st_update_scissor()
74 scissor[i].miny = ctx->Scissor.ScissorArray[i].Y; 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()
90 miny = fb->Height - scissor[i].maxy; in st_update_scissor()
91 maxy = fb->Height - scissor[i].miny; in st_update_scissor()
92 scissor[i].miny = miny; in st_update_scissor()
128 new_rects[i].miny = MAX2(rect->Y, 0); in st_update_window_rectangles()
Dst_cb_clear.c519 .miny = MAX2(scissor->Y, 0), in st_Clear()
531 GLint miny, maxy; in st_Clear() local
532 miny = fb->Height - scissor_state.maxy; in st_Clear()
533 maxy = fb->Height - scissor_state.miny; in st_Clear()
534 scissor_state.miny = MAX2(miny, 0); in st_Clear()
/external/mesa3d/src/gallium/drivers/r600/
Dr600_viewport.c78 float tmp, minx, miny, maxx, maxy; in r600_get_scissor_from_viewport() local
82 miny = -vp->scale[1] + vp->translate[1]; in r600_get_scissor_from_viewport()
87 if (minx == -1 && miny == -1 && maxx == 1 && maxy == 1) { in r600_get_scissor_from_viewport()
88 scissor->minx = scissor->miny = 0; in r600_get_scissor_from_viewport()
99 if (miny > maxy) { in r600_get_scissor_from_viewport()
100 tmp = miny; in r600_get_scissor_from_viewport()
101 miny = maxy; in r600_get_scissor_from_viewport()
107 scissor->miny = miny; in r600_get_scissor_from_viewport()
118 out->miny = CLAMP(scissor->miny, 0, max_scissor); in r600_clamp_scissor()
127 out->miny = MAX2(out->miny, clip->miny); in r600_clip_scissor()
[all …]
/external/mesa3d/src/gallium/drivers/vc4/
Dvc4_emit.c49 uint32_t minx, miny, maxx, maxy; in vc4_emit_state() local
52 miny = MAX2(vp_miny, 0); in vc4_emit_state()
54 maxy = MAX2(MIN2(vp_maxy, job->draw_height), miny); in vc4_emit_state()
57 miny = MAX2(vp_miny, vc4->scissor.miny); in vc4_emit_state()
59 maxy = MAX2(MIN2(vp_maxy, vc4->scissor.maxy), miny); in vc4_emit_state()
64 clip.clip_window_bottom_pixel_coordinate = miny; in vc4_emit_state()
65 clip.clip_window_height_in_pixels = maxy - miny; in vc4_emit_state()
70 job->draw_min_y = MIN2(job->draw_min_y, miny); in vc4_emit_state()
/external/mesa3d/src/gallium/drivers/radeonsi/
Dsi_state_viewport.c147 float tmp, minx, miny, maxx, maxy; in si_get_scissor_from_viewport() local
151 miny = -vp->scale[1] + vp->translate[1]; in si_get_scissor_from_viewport()
161 if (miny > maxy) { in si_get_scissor_from_viewport()
162 tmp = miny; in si_get_scissor_from_viewport()
163 miny = maxy; in si_get_scissor_from_viewport()
169 scissor->miny = miny; in si_get_scissor_from_viewport()
178 out->miny = CLAMP(scissor->miny, 0, SI_MAX_SCISSOR); in si_clamp_scissor()
186 out->miny = MAX2(out->miny, clip->miny); in si_clip_scissor()
194 out->miny = MIN2(out->miny, in->miny); in si_scissor_make_union()
207 final.minx = final.miny = 0; in si_emit_one_scissor()
[all …]
/external/libavc/encoder/
Dime_macros.h41 #define CLIP3(miny, maxy, y) (((y) < (miny))?(miny):(((y) > maxy)?(maxy):(y))) argument
/external/mesa3d/src/gallium/frontends/xa/
Dxa_priv.h131 ctx->scissor.miny = ~0; in xa_scissor_reset()
136 xa_scissor_update(struct xa_context *ctx, unsigned minx, unsigned miny, in xa_scissor_update() argument
142 ctx->scissor.miny = MIN2(ctx->scissor.miny, miny); in xa_scissor_update()
/external/libavc/common/
Dih264_macros.h75 #define CLIP3(miny, maxy, y) (((y) < (miny))?(miny):(((y) > (maxy))?(maxy):(y))) argument
/external/mesa3d/src/gallium/drivers/nouveau/nv50/
Dnv50_state_validate.c188 int minx, maxx, miny, maxy, i; in nv50_validate_scissor() local
215 miny = s->miny; in nv50_validate_scissor()
220 miny = 0; in nv50_validate_scissor()
226 miny = MAX2(miny, (int)(vp->translate[1] - fabsf(vp->scale[1]))); in nv50_validate_scissor()
231 miny = MIN2(miny, 8192); in nv50_validate_scissor()
236 PUSH_DATA (push, (maxy << 16) | miny); in nv50_validate_scissor()
240 PUSH_DATA (push, (s->maxy << 16) | s->miny); in nv50_validate_scissor()
304 PUSH_DATA(push, (s->maxy << 16) | s->miny); in nv50_validate_window_rects()
/external/mesa3d/src/gallium/drivers/lima/
Dlima_draw.c63 cscissor->miny = scissor->miny; in lima_clip_scissor_to_viewport()
68 cscissor->miny = 0; in lima_clip_scissor_to_viewport()
80 cscissor->miny = MAX2(cscissor->miny, viewport_bottom); in lima_clip_scissor_to_viewport()
83 if (cscissor->miny > cscissor->maxy) in lima_clip_scissor_to_viewport()
84 cscissor->miny = cscissor->maxy; in lima_clip_scissor_to_viewport()
92 return cscissor->minx == cscissor->maxx || cscissor->miny == cscissor->maxy; in lima_is_scissor_zero()
125 unsigned miny, unsigned maxy) in lima_damage_rect_union() argument
128 rect->miny = MIN2(rect->miny, miny); 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.c100 s->damage_rect.minx = s->damage_rect.miny = 0xffff; in lima_job_create()
635 bound.miny = MAX2(dbound->miny, dr->miny >> 4); in lima_update_damage_pp_stream()
640 bound.miny = dr->miny >> 4; in lima_update_damage_pp_stream()
647 bound.miny = MIN2(bound.miny, fb->tiled_h); in lima_update_damage_pp_stream()
654 .miny = bound.miny, in lima_update_damage_pp_stream()
690 s->key.miny = bound.miny; in lima_update_damage_pp_stream()
698 int tiled_h = bound.maxy - bound.miny; in lima_update_damage_pp_stream()
708 lima_generate_pp_stream(job, bound.minx, bound.miny, tiled_w, tiled_h); in lima_update_damage_pp_stream()
723 dr->miny == 0 && in lima_damage_fullscreen()
/external/skqp/samplecode/
DSampleClip.cpp85 const SkScalar miny = -SkIntToScalar(H)/4; in show_stroke() local
88 canvas->drawLine(randRange(rand, minx, maxx), randRange(rand, miny, maxy), in show_stroke()
89 randRange(rand, minx, maxx), randRange(rand, miny, maxy), in show_stroke()
/external/ltp/testcases/realtime/lib/
Dlibstats.c317 int minx = 0, maxx = 0, miny = 0, maxy = 0; in stats_container_save() local
345 miny = maxy = data->records[0].y; in stats_container_save()
350 miny = MIN(miny, rec->y); in stats_container_save()
/external/mesa3d/src/gallium/drivers/v3d/
Dv3dx_emit.c437 uint32_t minx, miny, maxx, maxy; in v3dX() local
440 miny = MAX2(vp_miny, 0); in v3dX()
445 miny = MAX2(vp_miny, v3d->scissor.miny); in v3dX()
452 clip.clip_window_bottom_pixel_coordinate = miny; in v3dX()
453 if (maxx > minx && maxy > miny) { in v3dX()
455 clip.clip_window_height_in_pixels = maxy - miny; in v3dX()
468 job->draw_min_y = MIN2(job->draw_min_y, miny); in v3dX()
/external/mesa3d/src/gallium/drivers/softpipe/
Dsp_state_derived.c268 sp->cliprect[i].miny = MAX2(sp->scissors[i].miny, 0); in compute_cliprect()
275 sp->cliprect[i].miny = 0; in compute_cliprect()
/external/wayland/cursor/
Dconvert_font.c305 int miny = min(-cursor->hoty, -mask->hoty); in reconstruct_glyph() local
310 int height = maxy - miny; in reconstruct_glyph()
316 glyph->hotspot_y = -miny; in reconstruct_glyph()
320 for (y = miny; y < maxy; ++y) { in reconstruct_glyph()
/external/mesa3d/src/gallium/drivers/freedreno/a3xx/
Dfd3_emit.c672 int miny = scissor->miny; in fd3_emit_state() local
683 miny = MAX2(miny, (int)floorf(vp->translate[1] - fabsf(vp->scale[1]))); in fd3_emit_state()
690 A3XX_GRAS_SC_WINDOW_SCISSOR_TL_Y(miny)); in fd3_emit_state()
695 ctx->batch->max_scissor.miny = MIN2(ctx->batch->max_scissor.miny, miny); in fd3_emit_state()

1234