/external/mesa3d/src/mesa/state_tracker/ |
D | st_atom_scissor.c | 48 struct pipe_scissor_state scissor[PIPE_MAX_VIEWPORTS]; in st_update_scissor() local 61 scissor[i].minx = 0; in st_update_scissor() 62 scissor[i].miny = 0; in st_update_scissor() 63 scissor[i].maxx = fb_width; in st_update_scissor() 64 scissor[i].maxy = fb_height; in st_update_scissor() 71 if (ctx->Scissor.ScissorArray[i].X > (GLint)scissor[i].minx) in st_update_scissor() 72 scissor[i].minx = ctx->Scissor.ScissorArray[i].X; 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() 76 if (xmax < (GLint) scissor[i].maxx) in st_update_scissor() [all …]
|
D | st_cb_clear.c | 374 const struct gl_scissor_rect *scissor = &ctx->Scissor.ScissorArray[0]; in is_scissor_enabled() local 377 (scissor->X > 0 || in is_scissor_enabled() 378 scissor->Y > 0 || in is_scissor_enabled() 379 scissor->X + scissor->Width < (int)rb->Width || in is_scissor_enabled() 380 scissor->Y + scissor->Height < (int)rb->Height); in is_scissor_enabled() 466 bool scissor = is_scissor_enabled(ctx, rb); in st_Clear() local 467 if ((scissor && !st->can_scissor_clear) || in st_Clear() 473 have_scissor_buffers |= scissor && st->can_scissor_clear; in st_Clear() 516 const struct gl_scissor_rect *scissor = &ctx->Scissor.ScissorArray[0]; in st_Clear() local 518 .minx = MAX2(scissor->X, 0), in st_Clear() [all …]
|
/external/swiftshader/src/OpenGL/libGLES_CM/ |
D | Device.cpp | 475 sw::Rect scissor; in bindViewport() local 476 scissor.x0 = scissorRect.x0; in bindViewport() 477 scissor.x1 = scissorRect.x1; in bindViewport() 478 scissor.y0 = scissorRect.y0; in bindViewport() 479 scissor.y1 = scissorRect.y1; in bindViewport() 481 setScissor(scissor); in bindViewport() 485 sw::Rect scissor; in bindViewport() local 486 scissor.x0 = viewport.x0; in bindViewport() 487 scissor.x1 = viewport.x0 + viewport.width; in bindViewport() 488 scissor.y0 = viewport.y0; in bindViewport() [all …]
|
/external/mesa3d/src/gallium/frontends/xa/ |
D | xa_priv.h | 111 struct pipe_scissor_state scissor; member 128 ctx->scissor.maxx = 0; in xa_scissor_reset() 129 ctx->scissor.maxy = 0; in xa_scissor_reset() 130 ctx->scissor.minx = ~0; in xa_scissor_reset() 131 ctx->scissor.miny = ~0; in xa_scissor_reset() 139 ctx->scissor.maxx = MAX2(ctx->scissor.maxx, maxx); in xa_scissor_update() 140 ctx->scissor.maxy = MAX2(ctx->scissor.maxy, maxy); in xa_scissor_update() 141 ctx->scissor.minx = MIN2(ctx->scissor.minx, minx); in xa_scissor_update() 142 ctx->scissor.miny = MIN2(ctx->scissor.miny, miny); in xa_scissor_update()
|
/external/mesa3d/src/gallium/drivers/r600/ |
D | r600_viewport.c | 76 struct r600_signed_scissor *scissor) in r600_get_scissor_from_viewport() argument 88 scissor->minx = scissor->miny = 0; in r600_get_scissor_from_viewport() 89 scissor->maxx = scissor->maxy = GET_MAX_SCISSOR(rctx); in r600_get_scissor_from_viewport() 106 scissor->minx = minx; in r600_get_scissor_from_viewport() 107 scissor->miny = miny; in r600_get_scissor_from_viewport() 108 scissor->maxx = ceilf(maxx); in r600_get_scissor_from_viewport() 109 scissor->maxy = ceilf(maxy); in r600_get_scissor_from_viewport() 114 struct r600_signed_scissor *scissor) in r600_clamp_scissor() argument 117 out->minx = CLAMP(scissor->minx, 0, max_scissor); in r600_clamp_scissor() 118 out->miny = CLAMP(scissor->miny, 0, max_scissor); in r600_clamp_scissor() [all …]
|
/external/swiftshader/src/OpenGL/libGLESv2/ |
D | Device.cpp | 792 sw::Rect scissor; in bindViewport() local 793 scissor.x0 = scissorRect.x0; in bindViewport() 794 scissor.x1 = scissorRect.x1; in bindViewport() 795 scissor.y0 = scissorRect.y0; in bindViewport() 796 scissor.y1 = scissorRect.y1; in bindViewport() 798 setScissor(scissor); in bindViewport() 802 sw::Rect scissor; in bindViewport() local 803 scissor.x0 = viewport.x0; in bindViewport() 804 scissor.x1 = viewport.x0 + viewport.width; in bindViewport() 805 scissor.y0 = viewport.y0; in bindViewport() [all …]
|
/external/mesa3d/src/gallium/drivers/radeonsi/ |
D | si_state_viewport.c | 145 struct si_signed_scissor *scissor) in si_get_scissor_from_viewport() argument 168 scissor->minx = minx; in si_get_scissor_from_viewport() 169 scissor->miny = miny; in si_get_scissor_from_viewport() 170 scissor->maxx = ceilf(maxx); in si_get_scissor_from_viewport() 171 scissor->maxy = ceilf(maxy); in si_get_scissor_from_viewport() 175 struct si_signed_scissor *scissor) in si_clamp_scissor() argument 177 out->minx = CLAMP(scissor->minx, 0, SI_MAX_SCISSOR); in si_clamp_scissor() 178 out->miny = CLAMP(scissor->miny, 0, SI_MAX_SCISSOR); in si_clamp_scissor() 179 out->maxx = CLAMP(scissor->maxx, 0, SI_MAX_SCISSOR); in si_clamp_scissor() 180 out->maxy = CLAMP(scissor->maxy, 0, SI_MAX_SCISSOR); in si_clamp_scissor() [all …]
|
/external/angle/src/libANGLE/renderer/d3d/d3d9/ |
D | Framebuffer9.cpp | 218 const gl::Rectangle *scissor, in blitImpl() argument 274 if (scissor) in blitImpl() 276 if (dstRect.left < scissor->x) in blitImpl() 278 srcRect.left += (scissor->x - dstRect.left); in blitImpl() 279 dstRect.left = scissor->x; in blitImpl() 281 if (dstRect.top < scissor->y) in blitImpl() 283 srcRect.top += (scissor->y - dstRect.top); in blitImpl() 284 dstRect.top = scissor->y; in blitImpl() 286 if (dstRect.right > scissor->x + scissor->width) in blitImpl() 288 srcRect.right -= (dstRect.right - (scissor->x + scissor->width)); in blitImpl() [all …]
|
/external/skqp/src/gpu/ |
D | GrClipStackClip.cpp | 181 if (PathNeedsSWRenderer(context, reducedClip.scissor(), hasUserStencilSettings, in UseSWOnlyPath() 225 if (reducedClip.hasScissor() && !GrClip::IsInsideClip(reducedClip.scissor(), devBounds)) { in apply() 226 out->hardClip().addScissor(reducedClip.scissor(), bounds); in apply() 259 const SkIRect& scissor = reducedClip.scissor(); in applyClipMask() local 260 SkASSERT(rtIBounds.contains(scissor)); // Mask shouldn't be larger than the RT. in applyClipMask() 279 out->addCoverageFP(create_fp_for_mask(std::move(result), reducedClip.scissor())); in applyClipMask() 298 if (renderTargetContext->priv().mustRenderClip(reducedClip.maskGenID(), reducedClip.scissor(), in applyClipMask() 301 renderTargetContext->priv().setLastClip(reducedClip.maskGenID(), reducedClip.scissor(), in applyClipMask() 344 create_clip_mask_key(reducedClip.maskGenID(), reducedClip.scissor(), in createAlphaClipMask() 396 : fScissor(reducedClip.scissor()) in ClipMaskData() [all …]
|
D | GrReducedClip.h | 43 const SkIRect& scissor() const { SkASSERT(fHasScissor); return fScissor; } in scissor() function 44 int left() const { return this->scissor().left(); } in left() 45 int top() const { return this->scissor().top(); } in top() 46 int width() const { return this->scissor().width(); } in width() 47 int height() const { return this->scissor().height(); } in height()
|
/external/skia/src/gpu/ |
D | GrClipStackClip.cpp | 184 if (PathNeedsSWRenderer(context, reducedClip.scissor(), hasUserStencilSettings, in UseSWOnlyPath() 232 if (reducedClip.hasScissor() && !GrClip::IsInsideClip(reducedClip.scissor(), devBounds)) { in apply() 233 out->hardClip().addScissor(reducedClip.scissor(), bounds); in apply() 266 const SkIRect& scissor = reducedClip.scissor(); in applyClipMask() local 267 SkASSERT(rtIBounds.contains(scissor)); // Mask shouldn't be larger than the RT. in applyClipMask() 286 out->addCoverageFP(create_fp_for_mask(std::move(result), reducedClip.scissor())); in applyClipMask() 303 if (renderTargetContext->priv().mustRenderClip(reducedClip.maskGenID(), reducedClip.scissor(), in applyClipMask() 306 renderTargetContext->priv().setLastClip(reducedClip.maskGenID(), reducedClip.scissor(), in applyClipMask() 349 create_clip_mask_key(reducedClip.maskGenID(), reducedClip.scissor(), in createAlphaClipMask() 394 : fScissor(reducedClip.scissor()) in ClipMaskData() [all …]
|
D | GrReducedClip.h | 43 const SkIRect& scissor() const { SkASSERT(fHasScissor); return fScissor; } in scissor() function 44 int left() const { return this->scissor().left(); } in left() 45 int top() const { return this->scissor().top(); } in top() 46 int width() const { return this->scissor().width(); } in width() 47 int height() const { return this->scissor().height(); } in height()
|
/external/deqp/modules/gles3/functional/ |
D | es3fRasterizerDiscardTests.cpp | 435 …tcu::TestCaseGroup* scissor = new tcu::TestCaseGroup(m_testCtx, "scissor", "Rasterizer discard tes… in init() local 439 addChild(scissor); in init() 466 …scissor->addChild(new RasterizerDiscardCase(m_context, "write_depth_points", "points", 4, CASE… in init() 467 …scissor->addChild(new RasterizerDiscardCase(m_context, "write_depth_lines", "lines", 4, CASE_… in init() 468 …scissor->addChild(new RasterizerDiscardCase(m_context, "write_depth_line_strip", "line_strip", 4… in init() 469 …scissor->addChild(new RasterizerDiscardCase(m_context, "write_depth_line_loop", "line_loop", 4,… in init() 470 …scissor->addChild(new RasterizerDiscardCase(m_context, "write_depth_triangles", "triangles", 4,… in init() 471 …scissor->addChild(new RasterizerDiscardCase(m_context, "write_depth_triangle_strip", "triangle_str… in init() 472 …scissor->addChild(new RasterizerDiscardCase(m_context, "write_depth_triangle_fan", "triangle_fan"… in init() 474 …scissor->addChild(new RasterizerDiscardCase(m_context, "write_stencil_points", "points", 4, CA… in init() [all …]
|
D | es3fDepthStencilClearTests.cpp | 73 , scissor (0, 0, 0, 0) in Clear() 84 tcu::IVec4 scissor; member 121 …ar* description, int numIters, int numClears, bool depth, bool stencil, bool scissor, bool masked); 145 …har* description, int numIters, int numClears, bool depth, bool stencil, bool scissor, bool masked) in DepthStencilClearCase() argument 149 , m_testScissor (scissor) in DepthStencilClearCase() 249 clear->scissor = tcu::IVec4(x, y, w, h); in generateClears() 299 gl.scissor(clear->scissor.x(), clear->scissor.y(), clear->scissor.z(), clear->scissor.w()); in renderGL() 427 …tcu::IVec4 clearRect = clear->useScissor ? clear->scissor : tcu::IVec4(0, 0, dst.getWidth(), dst.g… in renderReference() 471 …tcu::IVec4 clearRect = clear->useScissor ? clear->scissor : tcu::IVec4(0, 0, dst.getWidth(), dst.g… in renderReference()
|
/external/deqp/doc/testspecs/GLES2/ |
D | functional.scissors.txt | 22 + dEQP-GLES2.functional.scissor.* 23 + dEQP-GLES3.functional.scissor.* 45 This test set compares images rendered by the target with the scissor test 46 enabled to references generated with the scissor test disabled but with 47 areas outside the scissor rectangle cleared by the test logic. 49 All primitive types are tested in all reasonable scissor configurations
|
/external/angle/src/libANGLE/renderer/d3d/d3d11/ |
D | Clear11.cpp | 427 if (clearParams.scissor.x >= framebufferSize.width || in clearFramebuffer() 428 clearParams.scissor.y >= framebufferSize.height || clearParams.scissor.width == 0 || in clearFramebuffer() 429 clearParams.scissor.height == 0) in clearFramebuffer() 437 if (clearParams.scissor.x + clearParams.scissor.width <= 0 || in clearFramebuffer() 438 clearParams.scissor.y + clearParams.scissor.height <= 0) in clearFramebuffer() 444 clearParams.scissor.x > 0 || clearParams.scissor.y > 0 || in clearFramebuffer() 445 clearParams.scissor.x + clearParams.scissor.width < framebufferSize.width || in clearFramebuffer() 446 clearParams.scissor.y + clearParams.scissor.height < framebufferSize.height; in clearFramebuffer() 452 scissorRect.left = clearParams.scissor.x; in clearFramebuffer() 453 scissorRect.right = scissorRect.left + clearParams.scissor.width; in clearFramebuffer() [all …]
|
D | Blit11.h | 45 const gl::Rectangle *scissor, 62 const gl::Rectangle *scissor); 71 const gl::Rectangle *scissor); 82 const gl::Rectangle *scissor); 191 const gl::Rectangle *scissor, 202 const gl::Rectangle *scissor, 219 const gl::Rectangle *scissor,
|
/external/mesa3d/src/gallium/drivers/swr/rasterizer/core/ |
D | rasterizer_impl.h | 657 SWR_RECT scissor; 658 scissor.xmin = std::max(triBBox.xmin, scissorBBox.xmin); 659 scissor.xmax = std::min(triBBox.xmax, scissorBBox.xmax); 660 scissor.ymin = std::max(triBBox.ymin, scissorBBox.ymin); 661 scissor.ymax = std::min(triBBox.ymax, scissorBBox.ymax); 663 POS topLeft{scissor.xmin, scissor.ymin}; 664 POS bottomLeft{scissor.xmin, scissor.ymax}; 665 POS topRight{scissor.xmax, scissor.ymin}; 666 POS bottomRight{scissor.xmax, scissor.ymax}; 674 vEdgeFix16[3] = _mm256_set1_pd((rastEdges[3].a * (x - scissor.xmin)) + [all …]
|
/external/deqp/external/vulkancts/modules/vulkan/draw/ |
D | vktDrawDiscardRectanglesTests.cpp | 377 const VkRect2D scissor) in generateReferenceImage() argument 401 tcu::clear(tcu::getSubregion(image.getAccess(), scissor.offset.x, scissor.offset.y, in generateReferenceImage() 402 scissor.extent.width, scissor.extent.height), in generateReferenceImage() 413 if ((x >= (deUint32)scissor.offset.x) && (x < (scissor.offset.x + scissor.extent.width)) && in generateReferenceImage() 414 (y >= (deUint32)scissor.offset.y) && (y < (scissor.offset.y + scissor.extent.height))) in generateReferenceImage() 697 for (deUint32 scissor = 0 ; scissor < TEST_SCISSOR_MODE_COUNT; scissor++) in createTests() local 708 params.scissorMode = (TestScissorMode) scissor; in createTests() 710 …name << dynamicName[dynamic] << scissorName[scissor] << modeName[mode] << "rect_" << numRect[rect]; in createTests()
|
/external/mesa3d/src/gallium/drivers/llvmpipe/ |
D | lp_setup_context.h | 183 const struct u_rect *scissor) in scissor_planes_needed() argument 186 scis_planes[0] = (bbox->x0 < scissor->x0); in scissor_planes_needed() 188 scis_planes[1] = (bbox->x1 > scissor->x1); in scissor_planes_needed() 190 scis_planes[2] = (bbox->y0 < scissor->y0); in scissor_planes_needed() 192 scis_planes[3] = (bbox->y1 > scissor->y1); in scissor_planes_needed()
|
/external/deqp/modules/gles2/functional/ |
D | es2fDepthStencilClearTests.cpp | 73 , scissor (0, 0, 0, 0) in Clear() 84 tcu::IVec4 scissor; member 121 …ar* description, int numIters, int numClears, bool depth, bool stencil, bool scissor, bool masked); 145 …har* description, int numIters, int numClears, bool depth, bool stencil, bool scissor, bool masked) in DepthStencilClearCase() argument 149 , m_testScissor (scissor) in DepthStencilClearCase() 246 clear->scissor = tcu::IVec4(x, y, w, h); in generateClears() 296 gl.scissor(clear->scissor.x(), clear->scissor.y(), clear->scissor.z(), clear->scissor.w()); in renderGL() 424 …tcu::IVec4 clearRect = clear->useScissor ? clear->scissor : tcu::IVec4(0, 0, dst.getWidth(), dst.g… in renderReference() 468 …tcu::IVec4 clearRect = clear->useScissor ? clear->scissor : tcu::IVec4(0, 0, dst.getWidth(), dst.g… in renderReference()
|
/external/angle/src/tests/egl_tests/ |
D | EGLSurfacelessContextTest.cpp | 153 GLint scissor[4] = {1, 2, 3, 4}; in TEST_P() local 154 glGetIntegerv(GL_SCISSOR_BOX, scissor); in TEST_P() 156 ASSERT_EQ(0, scissor[0]); in TEST_P() 157 ASSERT_EQ(0, scissor[1]); in TEST_P() 158 ASSERT_EQ(0, scissor[2]); in TEST_P() 159 ASSERT_EQ(0, scissor[3]); in TEST_P()
|
/external/mesa3d/src/gallium/drivers/vc4/ |
D | vc4_emit.c | 50 if (!vc4->rasterizer->base.scissor) { in vc4_emit_state() 56 minx = MAX2(vp_minx, vc4->scissor.minx); in vc4_emit_state() 57 miny = MAX2(vp_miny, vc4->scissor.miny); in vc4_emit_state() 58 maxx = MAX2(MIN2(vp_maxx, vc4->scissor.maxx), minx); in vc4_emit_state() 59 maxy = MAX2(MIN2(vp_maxy, vc4->scissor.maxy), miny); in vc4_emit_state()
|
/external/mesa3d/src/gallium/drivers/svga/ |
D | svga_state_framebuffer.c | 791 const struct pipe_scissor_state *scissor = svga->curr.scissor; in emit_scissor_rect() local 795 if (memcmp(&svga->state.hw_clear.scissors[0], scissor, in emit_scissor_rect() 796 max_viewports * sizeof *scissor) != 0) { in emit_scissor_rect() 803 rect[i].left = scissor[i].minx; in emit_scissor_rect() 804 rect[i].top = scissor[i].miny; in emit_scissor_rect() 805 rect[i].right = scissor[i].maxx; in emit_scissor_rect() 806 rect[i].bottom = scissor[i].maxy; in emit_scissor_rect() 814 rect.x = scissor[0].minx; in emit_scissor_rect() 815 rect.y = scissor[0].miny; in emit_scissor_rect() 816 rect.w = scissor[0].maxx - scissor[0].minx; /* + 1 ?? */ in emit_scissor_rect() [all …]
|
/external/skia/src/gpu/mtl/ |
D | GrMtlPipelineState.mm | 227 MTLScissorRect scissor; 228 scissor.x = scissorRect.fLeft; 229 scissor.width = scissorRect.width(); 231 scissor.y = scissorRect.fTop; 234 scissor.y = renderTarget->height() - scissorRect.fBottom; 236 scissor.height = scissorRect.height(); 238 SkASSERT(scissor.x >= 0); 239 SkASSERT(scissor.y >= 0); 241 [renderCmdEncoder setScissorRect: scissor];
|