/external/mesa3d/src/mesa/state_tracker/ |
st_atom_scissor.c | 42 * 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; 62 if (ctx->Scissor.EnableFlags & (1 << i)) { 64 GLint xmax = MAX2(0, ctx->Scissor.ScissorArray[i].X + ctx->Scissor.ScissorArray[i].Width) 107 const struct gl_scissor_attrib *scissor = &ctx->Scissor; local [all...] |
/external/mesa3d/src/mesa/drivers/dri/i965/ |
gen6_scissor_state.c | 40 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[i].ymin = 1 [all...] |
brw_sf_state.c | 56 * 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.xmin = ctx->DrawBuffer->_Xmin [all...] |
/external/mesa3d/src/gallium/drivers/etnaviv/ |
etnaviv_rasterizer.h | 44 bool scissor; member in struct:etna_rasterizer_state
|
etnaviv_rasterizer.c | 70 /* 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/ |
GrStencilPathOp.h | 26 const GrScissorState& scissor, 30 hasStencilClip, scissor, path)); 47 const GrScissorState& scissor, 54 , fScissor(scissor)
|
/external/skqp/src/gpu/ops/ |
GrStencilPathOp.h | 26 const GrScissorState& scissor, 30 hasStencilClip, scissor, path)); 47 const GrScissorState& scissor, 54 , fScissor(scissor)
|
/external/skia/src/gpu/ |
GrReducedClip.h | 42 * 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().
|
GrClipStackClip.cpp | 170 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:__anon34048::ClipMaskData [all...] |
/external/skqp/src/gpu/ |
GrReducedClip.h | 42 * 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().
|
GrClipStackClip.cpp | 170 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:__anon34714::ClipMaskData [all...] |
/external/mesa3d/src/gallium/drivers/radeon/ |
r600_viewport.c | 49 * 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->maxx = ceilf(maxx) [all...] |
/external/swiftshader/src/OpenGL/libGLES_CM/ |
Device.cpp | 477 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.y0 = viewport.y0 [all...] |
/external/mesa3d/src/gallium/state_trackers/xa/ |
xa_priv.h | 110 /* 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.maxy = MAX2(ctx->scissor.maxy, maxy) [all...] |
/external/autotest/client/deps/glbench/src/ |
all_tests.h | 20 TestBase* GetWindowManagerCompositingTest(bool scissor);
|
/external/mesa3d/src/gallium/drivers/ilo/core/ |
ilo_state_viewport.c | 216 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[i]) >= 2) [all...] |
ilo_state_viewport.h | 41 * Scissor functions." 84 uint32_t (*scissor)[2]; member in struct:ilo_state_viewport 97 sizeof(vp->scissor[0])) * array_size;
|
/external/mesa3d/src/gallium/drivers/llvmpipe/ |
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);
|
/external/swiftshader/src/OpenGL/libGL/ |
Device.cpp | 700 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.y0 = viewport.y0 [all...] |
/system/core/libpixelflinger/ |
raster.cpp | 75 // clip to scissor 76 if (xd < GGLint(c->state.scissor.left)) { 77 GGLint offset = GGLint(c->state.scissor.left) - xd; 78 xd = GGLint(c->state.scissor.left); 82 if (yd < GGLint(c->state.scissor.top)) { 83 GGLint offset = GGLint(c->state.scissor.top) - yd; 84 yd = GGLint(c->state.scissor.top); 88 if ((xd + width) > GGLint(c->state.scissor.right)) { 89 width = GGLint(c->state.scissor.right) - xd; 91 if ((yd + height) > GGLint(c->state.scissor.bottom)) [all...] |
/external/swiftshader/src/OpenGL/libGLESv2/ |
Device.cpp | 777 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.y0 = viewport.y0 [all...] |
/external/mesa3d/src/gallium/drivers/freedreno/ |
freedreno_gmem.c | 66 * 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 = *scissor [all...] |
/external/mesa3d/src/gallium/drivers/vc4/ |
vc4_emit.c | 42 /* 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/ |
es3fRasterizerDiscardTests.cpp | 286 log << TestLog::Message << "Scissor test enabled: glScissor(0, 0, " << renderTarget.getWidth() << ", " << renderTarget.getHeight() << ")" << TestLog::EndMessage; 435 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_WR (…) [all...] |
/external/deqp/modules/egl/ |
teglGLES2RenderUtil.cpp | 38 gl.scissor(x, y, width, height);
|