Searched refs:scissor (Results 1 - 25 of 279) sorted by relevance

1234567891011>>

/external/mesa3d/src/mesa/state_tracker/
H A Dst_atom_scissor.c42 * Scissor depends on the scissor box, and the framebuffer dimensions.
47 struct pipe_scissor_state scissor[PIPE_MAX_VIEWPORTS]; local
57 scissor[i].minx = 0;
58 scissor[i].miny = 0;
59 scissor[i].maxx = fb_width;
60 scissor[i].maxy = fb_height;
67 if (ctx->Scissor.ScissorArray[i].X > (GLint)scissor[i].minx)
68 scissor[i].minx = ctx->Scissor.ScissorArray[i].X;
69 if (ctx->Scissor.ScissorArray[i].Y > (GLint)scissor[i].miny)
70 scissor[
107 const struct gl_scissor_attrib *scissor = &ctx->Scissor; local
[all...]
/external/mesa3d/src/mesa/drivers/dri/i965/
H A Dgen6_scissor_state.c40 struct gen6_scissor_rect *scissor; local
48 scissor = brw_state_batch(brw, AUB_TRACE_SCISSOR_STATE,
49 sizeof(*scissor) * viewport_count, 32,
54 /* The scissor only needs to handle the intersection of drawable and
55 * scissor rect. Clipping to the boundaries of static shared buffers
71 /* If the scissor was out of bounds and got clamped to 0 width/height
74 * a min > max scissor inside the bounds, which produces the expected
77 scissor[i].xmin = 1;
78 scissor[i].xmax = 0;
79 scissor[
[all...]
H A Dbrw_sf_state.c56 * values to program the viewport and scissor is fine as long as the
84 /* The scissor only needs to handle the intersection of drawable
85 * and scissor rect, since there are no longer cliprects for shared
94 /* If the scissor was out of bounds and got clamped to 0
97 * anything. Instead, just provide a min > max scissor inside
100 sfv->scissor.xmin = 1;
101 sfv->scissor.xmax = 0;
102 sfv->scissor.ymin = 1;
103 sfv->scissor.ymax = 0;
106 sfv->scissor
[all...]
/external/mesa3d/src/gallium/drivers/etnaviv/
H A Detnaviv_rasterizer.h44 bool scissor; member in struct:etna_rasterizer_state
H A Detnaviv_rasterizer.c70 /* so->scissor overrides the scissor, defaulting to the whole framebuffer,
71 * with the scissor state */
72 cs->scissor = so->scissor;
/external/skia/src/gpu/ops/
H A DGrStencilPathOp.h26 const GrScissorState& scissor,
30 hasStencilClip, scissor, path));
47 const GrScissorState& scissor,
54 , fScissor(scissor)
22 Make(const SkMatrix& viewMatrix, bool useHWAA, GrPathRendering::FillType fillType, bool hasStencilClip, const GrScissorState& scissor, const GrPath* path) argument
43 GrStencilPathOp(const SkMatrix& viewMatrix, bool useHWAA, GrPathRendering::FillType fillType, bool hasStencilClip, const GrScissorState& scissor, const GrPath* path) argument
/external/skqp/src/gpu/ops/
H A DGrStencilPathOp.h26 const GrScissorState& scissor,
30 hasStencilClip, scissor, path));
47 const GrScissorState& scissor,
54 , fScissor(scissor)
22 Make(const SkMatrix& viewMatrix, bool useHWAA, GrPathRendering::FillType fillType, bool hasStencilClip, const GrScissorState& scissor, const GrPath* path) argument
43 GrStencilPathOp(const SkMatrix& viewMatrix, bool useHWAA, GrPathRendering::FillType fillType, bool hasStencilClip, const GrScissorState& scissor, const GrPath* path) argument
/external/mesa3d/src/gallium/drivers/radeon/
H A Dr600_viewport.c49 * using a scissor.
53 struct r600_signed_scissor *scissor)
63 /* r600_draw_rectangle sets this. Disable the scissor. */
65 scissor->minx = scissor->miny = 0;
66 scissor->maxx = scissor->maxy = GET_MAX_SCISSOR(rctx);
83 scissor->minx = minx;
84 scissor->miny = miny;
85 scissor
51 r600_get_scissor_from_viewport(struct r600_common_context *rctx, const struct pipe_viewport_state *vp, struct r600_signed_scissor *scissor) argument
89 r600_clamp_scissor(struct r600_common_context *rctx, struct pipe_scissor_state *out, struct r600_signed_scissor *scissor) argument
118 evergreen_apply_scissor_bug_workaround(struct r600_common_context *rctx, struct pipe_scissor_state *scissor) argument
133 r600_emit_one_scissor(struct r600_common_context *rctx, struct radeon_winsys_cs *cs, struct r600_signed_scissor *vp_scissor, struct pipe_scissor_state *scissor) argument
[all...]
/external/swiftshader/src/OpenGL/libGLES_CM/
H A DDevice.cpp477 sw::Rect scissor; local
478 scissor.x0 = scissorRect.x0;
479 scissor.x1 = scissorRect.x1;
480 scissor.y0 = scissorRect.y0;
481 scissor.y1 = scissorRect.y1;
483 setScissor(scissor);
487 sw::Rect scissor; local
488 scissor.x0 = viewport.x0;
489 scissor.x1 = viewport.x0 + viewport.width;
490 scissor
[all...]
/external/mesa3d/src/gallium/state_trackers/xa/
H A Dxa_priv.h110 /* destination scissor state.. we scissor out untouched parts
113 struct pipe_scissor_state scissor; member in struct:xa_context
129 ctx->scissor.maxx = 0;
130 ctx->scissor.maxy = 0;
131 ctx->scissor.minx = ~0;
132 ctx->scissor.miny = ~0;
140 ctx->scissor.maxx = MAX2(ctx->scissor.maxx, maxx);
141 ctx->scissor
[all...]
/external/autotest/client/deps/glbench/src/
H A Dall_tests.h20 TestBase* GetWindowManagerCompositingTest(bool scissor);
/external/mesa3d/src/gallium/drivers/ilo/core/
H A Dilo_state_viewport.c216 const struct ilo_state_viewport_scissor_info *scissor = &scissors[i]; local
220 min_x = (scissor->min_x < max_size) ? scissor->min_x : max_size - 1;
221 min_y = (scissor->min_y < max_size) ? scissor->min_y : max_size - 1;
222 max_x = (scissor->max_x < max_size) ? scissor->max_x : max_size - 1;
223 max_y = (scissor->max_y < max_size) ? scissor->max_y : max_size - 1;
230 STATIC_ASSERT(ARRAY_SIZE(vp->scissor[
[all...]
H A Dilo_state_viewport.h84 uint32_t (*scissor)[2]; member in struct:ilo_state_viewport
97 sizeof(vp->scissor[0])) * array_size;
/external/mesa3d/src/gallium/drivers/llvmpipe/
H A Dlp_setup_context.h116 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
/external/skia/src/gpu/
H A DGrReducedClip.h42 * enforce this scissor during draw.
44 const SkIRect& scissor() const { SkASSERT(fHasScissor); return fScissor; } function in class:GrReducedClip
45 int left() const { return this->scissor().left(); }
46 int top() const { return this->scissor().top(); }
47 int width() const { return this->scissor().width(); }
48 int height() const { return this->scissor().height(); }
51 * Indicates whether scissor() is defined. It will always be defined if the maskElements() are
71 * inside of scissor().
H A DGrClipStackClip.cpp170 if (PathNeedsSWRenderer(context, reducedClip.scissor(), hasUserStencilSettings,
180 // scissor, or entirely software
214 if (reducedClip.hasScissor() && !GrClip::IsInsideClip(reducedClip.scissor(), devBounds)) {
215 out->hardClip().addScissor(reducedClip.scissor(), bounds);
249 const SkIRect& scissor = reducedClip.scissor(); local
250 SkASSERT(rtIBounds.contains(scissor)); // Mask shouldn't be larger than the RT.
268 out->addCoverageFP(create_fp_for_mask(std::move(result), reducedClip.scissor()));
286 if (renderTargetContext->priv().mustRenderClip(reducedClip.maskGenID(), reducedClip.scissor(),
289 renderTargetContext->priv().setLastClip(reducedClip.maskGenID(), reducedClip.scissor(),
384 const SkIRect& scissor() const { return fScissor; } function in class:__anon20716::ClipMaskData
396 draw_clip_elements_to_mask_helper(GrSWMaskHelper& helper, const ElementList& elements, const SkIRect& scissor, InitialState initialState) argument
[all...]
/external/skqp/src/gpu/
H A DGrReducedClip.h42 * enforce this scissor during draw.
44 const SkIRect& scissor() const { SkASSERT(fHasScissor); return fScissor; } function in class:GrReducedClip
45 int left() const { return this->scissor().left(); }
46 int top() const { return this->scissor().top(); }
47 int width() const { return this->scissor().width(); }
48 int height() const { return this->scissor().height(); }
51 * Indicates whether scissor() is defined. It will always be defined if the maskElements() are
71 * inside of scissor().
H A DGrClipStackClip.cpp170 if (PathNeedsSWRenderer(context, reducedClip.scissor(), hasUserStencilSettings,
180 // scissor, or entirely software
214 if (reducedClip.hasScissor() && !GrClip::IsInsideClip(reducedClip.scissor(), devBounds)) {
215 out->hardClip().addScissor(reducedClip.scissor(), bounds);
249 const SkIRect& scissor = reducedClip.scissor(); local
250 SkASSERT(rtIBounds.contains(scissor)); // Mask shouldn't be larger than the RT.
268 out->addCoverageFP(create_fp_for_mask(std::move(result), reducedClip.scissor()));
286 if (renderTargetContext->priv().mustRenderClip(reducedClip.maskGenID(), reducedClip.scissor(),
289 renderTargetContext->priv().setLastClip(reducedClip.maskGenID(), reducedClip.scissor(),
384 const SkIRect& scissor() const { return fScissor; } function in class:__anon21382::ClipMaskData
396 draw_clip_elements_to_mask_helper(GrSWMaskHelper& helper, const ElementList& elements, const SkIRect& scissor, InitialState initialState) argument
[all...]
/external/swiftshader/src/OpenGL/libGL/
H A DDevice.cpp700 sw::Rect scissor; local
701 scissor.x0 = scissorRect.x0;
702 scissor.x1 = scissorRect.x1;
703 scissor.y0 = scissorRect.y0;
704 scissor.y1 = scissorRect.y1;
706 setScissor(scissor);
710 sw::Rect scissor; local
711 scissor.x0 = viewport.x0;
712 scissor.x1 = viewport.x0 + viewport.width;
713 scissor
[all...]
/external/swiftshader/src/OpenGL/libGLESv2/
H A DDevice.cpp777 sw::Rect scissor; local
778 scissor.x0 = scissorRect.x0;
779 scissor.x1 = scissorRect.x1;
780 scissor.y0 = scissorRect.y0;
781 scissor.y1 = scissorRect.y1;
783 setScissor(scissor);
787 sw::Rect scissor; local
788 scissor.x0 = viewport.x0;
789 scissor.x1 = viewport.x0 + viewport.width;
790 scissor
[all...]
/external/mesa3d/src/gallium/drivers/freedreno/
H A Dfreedreno_gmem.c66 * Where the per-tile section handles scissor setup, mem2gmem restore (if
111 struct pipe_scissor_state *scissor = &batch->max_scissor; local
141 !memcmp(&gmem->scissor, scissor, sizeof(gmem->scissor))) {
153 minx = scissor->minx & ~(gmem_alignw - 1);
154 miny = scissor->miny & ~(gmem_alignh - 1);
155 width = scissor->maxx - minx;
156 height = scissor->maxy - miny;
193 gmem->scissor
442 skip_restore(struct pipe_scissor_state *scissor, struct fd_tile *tile) argument
[all...]
H A Dfreedreno_gmem.h51 struct pipe_scissor_state scissor; member in struct:fd_gmem_stateobj
/external/mesa3d/src/gallium/drivers/vc4/
H A Dvc4_emit.c42 /* Clip to the scissor if it's enabled, but still clip to the
51 if (!vc4->rasterizer->base.scissor) {
57 minx = MAX2(vp_minx, vc4->scissor.minx);
58 miny = MAX2(vp_miny, vc4->scissor.miny);
59 maxx = MIN2(vp_maxx, vc4->scissor.maxx);
60 maxy = MIN2(vp_maxy, vc4->scissor.maxy);
/external/deqp/modules/gles3/functional/
H A Des3fRasterizerDiscardTests.cpp435 tcu::TestCaseGroup* scissor = new tcu::TestCaseGroup(m_testCtx, "scissor", "Rasterizer discard test for default framebuffer with scissor test enabled"); local
439 addChild(scissor);
464 // Default framebuffer cases with scissor test enabled
466 scissor->addChild(new RasterizerDiscardCase(m_context, "write_depth_points", "points", 4, CASE_WRITE_DEPTH, CASEOPTION_SCISSOR, GL_POINTS));
467 scissor->addChild(new RasterizerDiscardCase(m_context, "write_depth_lines", "lines", 4, CASE_WRITE_DEPTH, CASEOPTION_SCISSOR, GL_LINES));
468 scissor->addChild(new RasterizerDiscardCase(m_context, "write_depth_line_strip", "line_strip", 4, CASE_WRITE_DEPTH, CASEOPTION_SCISSOR, GL_LINE_STRIP));
469 scissor->addChild(new RasterizerDiscardCase(m_context, "write_depth_line_loop", "line_loop", 4, CASE_WRITE_DEPTH, CASEOPTION_SCISSOR, GL_LINE_LOOP));
470 scissor
[all...]
/external/deqp/modules/egl/
H A DteglGLES2RenderUtil.cpp38 gl.scissor(x, y, width, height);

Completed in 510 milliseconds

1234567891011>>