| /xsrc/external/mit/MesaLib.old/dist/src/mesa/state_tracker/ |
| H A D | st_atom_scissor.c | 43 * Scissor depends on the scissor box, and the framebuffer dimensions. 48 struct pipe_scissor_state scissor[PIPE_MAX_VIEWPORTS]; local in function:st_update_scissor 58 scissor[i].minx = 0; 59 scissor[i].miny = 0; 60 scissor[i].maxx = fb_width; 61 scissor[i].maxy = fb_height; 68 if (ctx->Scissor.ScissorArray[i].X > (GLint)scissor[i].minx) 69 scissor[i].minx = ctx->Scissor.ScissorArray[i].X; 70 if (ctx->Scissor.ScissorArray[i].Y > (GLint)scissor[i].miny) 71 scissor[ 112 const struct gl_scissor_attrib *scissor = &ctx->Scissor; local in function:st_update_window_rectangles [all...] |
| /xsrc/external/mit/MesaLib/dist/src/mesa/state_tracker/ |
| H A D | st_atom_scissor.c | 43 * Scissor depends on the scissor box, and the framebuffer dimensions. 48 struct pipe_scissor_state scissor[PIPE_MAX_VIEWPORTS]; local in function:st_update_scissor 61 scissor[i].minx = 0; 62 scissor[i].miny = 0; 63 scissor[i].maxx = fb_width; 64 scissor[i].maxy = fb_height; 71 if (ctx->Scissor.ScissorArray[i].X > (GLint)scissor[i].minx) 72 scissor[i].minx = ctx->Scissor.ScissorArray[i].X; 73 if (ctx->Scissor.ScissorArray[i].Y > (GLint)scissor[i].miny) 74 scissor[ 115 const struct gl_scissor_attrib *scissor = &ctx->Scissor; local in function:st_update_window_rectangles [all...] |
| H A D | st_cb_clear.c | 346 /* draw quad matching scissor rect. 369 * Return if the scissor must be enabled during the clear. 374 const struct gl_scissor_rect *scissor = &ctx->Scissor.ScissorArray[0]; local in function:is_scissor_enabled 377 (scissor->X > 0 || 378 scissor->Y > 0 || 379 scissor->X + scissor->Width < (int)rb->Width || 380 scissor->Y + scissor->Height < (int)rb->Height); 441 /* This makes sure the pipe has the latest scissor, et 466 bool scissor = is_scissor_enabled(ctx, rb); local in function:st_Clear 482 bool scissor = is_scissor_enabled(ctx, depthRb); local in function:st_Clear 495 bool scissor = is_scissor_enabled(ctx, stencilRb); local in function:st_Clear 520 const struct gl_scissor_rect *scissor = &ctx->Scissor.ScissorArray[0]; local in function:st_Clear [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/state_trackers/xa/ |
| H A D | xa_priv.h | 108 /* destination scissor state.. we scissor out untouched parts 111 struct pipe_scissor_state scissor; member in struct:xa_context 128 ctx->scissor.maxx = 0; 129 ctx->scissor.maxy = 0; 130 ctx->scissor.minx = ~0; 131 ctx->scissor.miny = ~0; 139 ctx->scissor.maxx = MAX2(ctx->scissor.maxx, maxx); 140 ctx->scissor [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/frontends/xa/ |
| H A D | xa_priv.h | 108 /* destination scissor state.. we scissor out untouched parts 111 struct pipe_scissor_state scissor; member in struct:xa_context 128 ctx->scissor.maxx = 0; 129 ctx->scissor.maxy = 0; 130 ctx->scissor.minx = ~0; 131 ctx->scissor.miny = ~0; 139 ctx->scissor.maxx = MAX2(ctx->scissor.maxx, maxx); 140 ctx->scissor [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/etnaviv/ |
| H A D | etnaviv_rasterizer.h | 44 bool scissor; member in struct:etna_rasterizer_state
|
| H A D | etnaviv_rasterizer.c | 67 /* so->scissor overrides the scissor, defaulting to the whole framebuffer, 68 * with the scissor state */ 69 cs->scissor = so->scissor;
|
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/etnaviv/ |
| H A D | etnaviv_rasterizer.h | 44 bool scissor; member in struct:etna_rasterizer_state
|
| H A D | etnaviv_rasterizer.c | 67 /* so->scissor overrides the scissor, defaulting to the whole framebuffer, 68 * with the scissor state */ 69 cs->scissor = so->scissor;
|
| /xsrc/external/mit/mesa-demos/dist/src/egl/openvg/trivial/ |
| H A D | clear.c | 24 VGint scissor[4] = {100, 100, 25, 25}; local in function:draw 31 //vgSetiv(VG_SCISSOR_RECTS, 4, scissor);
|
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/llvmpipe/ |
| H A D | lp_setup_context.h | 116 struct u_rect draw_regions[PIPE_MAX_VIEWPORTS]; /* intersection of fb & scissor */ 173 const struct u_rect *scissor) 176 scis_planes[0] = (bbox->x0 < scissor->x0); 178 scis_planes[1] = (bbox->x1 > scissor->x1); 180 scis_planes[2] = (bbox->y0 < scissor->y0); 182 scis_planes[3] = (bbox->y1 > scissor->y1); 172 scissor_planes_needed(boolean scis_planes[4],const struct u_rect * bbox,const struct u_rect * scissor) argument
|
| /xsrc/external/mit/xorg-server/dist/glamor/ |
| H A D | glamor_rects.c | 138 BoxRec scissor = { local in function:glamor_poly_fill_rect_gl 147 if (scissor.x1 >= scissor.x2 || scissor.y1 >= scissor.y2) 150 glScissor(scissor.x1 + off_x, 151 scissor.y1 + off_y, 152 scissor.x2 - scissor.x1, 153 scissor [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/radeonsi/ |
| H A D | si_state_viewport.c | 50 * using a scissor. 54 struct si_signed_scissor *scissor) 77 scissor->minx = minx; 78 scissor->miny = miny; 79 scissor->maxx = ceilf(maxx); 80 scissor->maxy = ceilf(maxy); 85 struct si_signed_scissor *scissor) 87 out->minx = CLAMP(scissor->minx, 0, SI_MAX_SCISSOR); 88 out->miny = CLAMP(scissor->miny, 0, SI_MAX_SCISSOR); 89 out->maxx = CLAMP(scissor 52 si_get_scissor_from_viewport(struct si_context * ctx,const struct pipe_viewport_state * vp,struct si_signed_scissor * scissor) argument 83 si_clamp_scissor(struct si_context * ctx,struct pipe_scissor_state * out,struct si_signed_scissor * scissor) argument 112 si_emit_one_scissor(struct si_context * ctx,struct radeon_cmdbuf * cs,struct si_signed_scissor * vp_scissor,struct pipe_scissor_state * scissor) argument 324 struct si_signed_scissor *scissor = &ctx->viewports.as_scissor[index]; local in function:si_set_viewport_states [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/r600/ |
| H A D | r600_viewport.c | 72 * using a scissor. 76 struct r600_signed_scissor *scissor) 86 /* r600_draw_rectangle sets this. Disable the scissor. */ 88 scissor->minx = scissor->miny = 0; 89 scissor->maxx = scissor->maxy = GET_MAX_SCISSOR(rctx); 106 scissor->minx = minx; 107 scissor->miny = miny; 108 scissor 74 r600_get_scissor_from_viewport(struct r600_common_context * rctx,const struct pipe_viewport_state * vp,struct r600_signed_scissor * scissor) argument 112 r600_clamp_scissor(struct r600_common_context * rctx,struct pipe_scissor_state * out,struct r600_signed_scissor * scissor) argument 141 evergreen_apply_scissor_bug_workaround(struct r600_common_context * rctx,struct pipe_scissor_state * scissor) argument 156 r600_emit_one_scissor(struct r600_common_context * rctx,struct radeon_cmdbuf * cs,struct r600_signed_scissor * vp_scissor,struct pipe_scissor_state * scissor) argument [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/r600/ |
| H A D | r600_viewport.c | 72 * using a scissor. 76 struct r600_signed_scissor *scissor) 86 /* r600_draw_rectangle sets this. Disable the scissor. */ 88 scissor->minx = scissor->miny = 0; 89 scissor->maxx = scissor->maxy = GET_MAX_SCISSOR(rctx); 106 scissor->minx = minx; 107 scissor->miny = miny; 108 scissor 74 r600_get_scissor_from_viewport(struct r600_common_context * rctx,const struct pipe_viewport_state * vp,struct r600_signed_scissor * scissor) argument 112 r600_clamp_scissor(struct r600_common_context * rctx,struct pipe_scissor_state * out,struct r600_signed_scissor * scissor) argument 141 evergreen_apply_scissor_bug_workaround(struct r600_common_context * rctx,struct pipe_scissor_state * scissor) argument 156 r600_emit_one_scissor(struct r600_common_context * rctx,struct radeon_cmdbuf * cs,struct r600_signed_scissor * vp_scissor,struct pipe_scissor_state * scissor) argument [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/ |
| H A D | lp_setup_context.h | 123 struct u_rect draw_regions[PIPE_MAX_VIEWPORTS]; /* intersection of fb & scissor */ 198 const struct u_rect *scissor) 201 scis_planes[0] = (bbox->x0 < scissor->x0); 203 scis_planes[1] = (bbox->x1 > scissor->x1); 205 scis_planes[2] = (bbox->y0 < scissor->y0); 207 scis_planes[3] = (bbox->y1 > scissor->y1); 211 lp_setup_add_scissor_planes(const struct u_rect *scissor, 197 scissor_planes_needed(boolean scis_planes[4],const struct u_rect * bbox,const struct u_rect * scissor) argument
|
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/radeonsi/ |
| H A D | si_state_viewport.c | 143 * using a scissor. 147 struct si_signed_scissor *scissor) 170 scissor->minx = minx; 171 scissor->miny = miny; 172 scissor->maxx = ceilf(maxx); 173 scissor->maxy = ceilf(maxy); 177 struct si_signed_scissor *scissor) 179 out->minx = CLAMP(scissor->minx, 0, SI_MAX_SCISSOR); 180 out->miny = CLAMP(scissor->miny, 0, SI_MAX_SCISSOR); 181 out->maxx = CLAMP(scissor 145 si_get_scissor_from_viewport(struct si_context * ctx,const struct pipe_viewport_state * vp,struct si_signed_scissor * scissor) argument 176 si_clamp_scissor(struct si_context * ctx,struct pipe_scissor_state * out,struct si_signed_scissor * scissor) argument 202 si_emit_one_scissor(struct si_context * ctx,struct radeon_cmdbuf * cs,struct si_signed_scissor * vp_scissor,struct pipe_scissor_state * scissor) argument 413 struct si_signed_scissor *scissor = &ctx->viewports.as_scissor[index]; local in function:si_set_viewport_states [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/vc4/ |
| H A D | vc4_emit.c | 41 /* Clip to the scissor if it's enabled, but still clip to the 50 if (!vc4->rasterizer->base.scissor) { 56 minx = MAX2(vp_minx, vc4->scissor.minx); 57 miny = MAX2(vp_miny, vc4->scissor.miny); 58 maxx = MIN2(vp_maxx, vc4->scissor.maxx); 59 maxy = MIN2(vp_maxy, vc4->scissor.maxy);
|
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/vc4/ |
| H A D | vc4_emit.c | 41 /* Clip to the scissor if it's enabled, but still clip to the 50 if (!vc4->rasterizer->base.scissor) { 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);
|
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/freedreno/ |
| H A D | freedreno_gmem.h | 50 struct pipe_scissor_state scissor; member in struct:fd_gmem_stateobj
|
| H A D | freedreno_gmem.c | 64 * Where the per-tile section handles scissor setup, mem2gmem restore (if 111 struct pipe_scissor_state *scissor = &batch->max_scissor; local in function:calculate_tiles 150 !memcmp(&gmem->scissor, scissor, sizeof(gmem->scissor))) { 162 minx = scissor->minx & ~(gmem_alignw - 1); 163 miny = scissor->miny & ~(gmem_alignh - 1); 164 width = scissor->maxx - minx; 165 height = scissor->maxy - miny; 210 gmem->scissor [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/i915/ |
| H A D | i915_state_dynamic.c | 270 unsigned x1 = i915->scissor.minx; 271 unsigned y1 = i915->scissor.miny; 272 unsigned x2 = i915->scissor.maxx - 1; 273 unsigned y2 = i915->scissor.maxy - 1;
|
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/auxiliary/vl/ |
| H A D | vl_compositor_cs.c | 320 result.x0 = MAX2(result.x0, s->scissor.minx); 321 result.y0 = MAX2(result.y0, s->scissor.miny); 322 result.x1 = MIN2(result.x1, s->scissor.maxx); 323 result.y1 = MIN2(result.y1, s->scissor.maxy); 451 s->scissor.minx = 0; 452 s->scissor.miny = 0; 453 s->scissor.maxx = dst_surface->width; 454 s->scissor.maxy = dst_surface->height;
|
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/v3d/ |
| H A D | v3dx_emit.c | 430 /* Clip to the scissor if it's enabled, but still clip to the 439 if (!v3d->rasterizer->base.scissor) { 445 minx = MAX2(vp_minx, v3d->scissor.minx); 446 miny = MAX2(vp_miny, v3d->scissor.miny); 447 maxx = MIN2(vp_maxx, v3d->scissor.maxx); 448 maxy = MIN2(vp_maxy, v3d->scissor.maxy); 458 /* The HW won't entirely clip out when scissor 473 if (!v3d->rasterizer->base.scissor) { 474 job->scissor.disabled = true; 475 } else if (!job->scissor [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/swr/rasterizer/core/core/ |
| H A D | rasterizer_impl.h | 380 // when calculating scissor edges 625 /// inlined function if scissor is not enabled 626 /// @tparam RasterScissorEdgesT: is scissor enabled? 642 /// specialization. Instantiated when conservative rast and scissor are enabled 647 /// @brief Intersect tri bbox with scissor, compute scissor edge vectors, 656 // if conservative rasterizing, triangle bbox intersected with scissor bbox is used 657 SWR_RECT scissor; local in function:ComputeScissorEdges::ComputeScissorEdges 658 scissor.xmin = std::max(triBBox.xmin, scissorBBox.xmin); 659 scissor 712 const SWR_RECT& scissor = scissorBBox; local in function:ComputeScissorEdges::ComputeScissorEdges [all...] |