Home
last modified time | relevance | path

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

12345678910>>...18

/third_party/mesa3d/src/mesa/state_tracker/
H A Dst_atom_scissor.c43 * Scissor depends on the scissor box, and the framebuffer dimensions.
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[ in st_update_scissor()
115 const struct gl_scissor_attrib *scissor = &ctx->Scissor; st_update_window_rectangles() local
[all...]
H A Dst_cb_clear.c338 /* draw quad matching scissor rect. in clear_with_quad()
363 * Return if the scissor must be enabled during the clear.
368 const struct gl_scissor_rect *scissor = &ctx->Scissor.ScissorArray[0]; in is_scissor_enabled() local
371 (scissor->X > 0 || in is_scissor_enabled()
372 scissor->Y > 0 || in is_scissor_enabled()
373 scissor->X + scissor->Width < (int)rb->Width || in is_scissor_enabled()
374 scissor->Y + scissor->Height < (int)rb->Height); in is_scissor_enabled()
431 /* This makes sure the pipe has the latest scissor, et in st_Clear()
455 bool scissor = is_scissor_enabled(ctx, rb); st_Clear() local
469 bool scissor = is_scissor_enabled(ctx, depthRb); st_Clear() local
480 bool scissor = is_scissor_enabled(ctx, stencilRb); st_Clear() local
505 const struct gl_scissor_rect *scissor = &ctx->Scissor.ScissorArray[0]; st_Clear() local
[all...]
/third_party/mesa3d/src/gallium/frontends/xa/
H A Dxa_priv.h108 /* destination scissor state.. we scissor out untouched parts
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 in xa_scissor_update()
[all...]
/third_party/mesa3d/src/gallium/drivers/r600/
H A Dr600_viewport.c72 * using a scissor.
76 struct r600_signed_scissor *scissor) in r600_get_scissor_from_viewport()
86 /* r600_draw_rectangle sets this. Disable the scissor. */ in r600_get_scissor_from_viewport()
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 in r600_get_scissor_from_viewport()
74 r600_get_scissor_from_viewport(struct r600_common_context *rctx, const struct pipe_viewport_state *vp, struct r600_signed_scissor *scissor) r600_get_scissor_from_viewport() argument
112 r600_clamp_scissor(struct r600_common_context *rctx, struct pipe_scissor_state *out, struct r600_signed_scissor *scissor) r600_clamp_scissor() argument
141 evergreen_apply_scissor_bug_workaround(struct r600_common_context *rctx, struct pipe_scissor_state *scissor) evergreen_apply_scissor_bug_workaround() 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) r600_emit_one_scissor() argument
[all...]
/third_party/skia/src/gpu/d3d/
H A DGrD3DOpsRenderPass.cpp144 D3D12_RECT scissor; in set_scissor_rects() local
145 scissor.left = scissorRect.fLeft; in set_scissor_rects()
146 scissor.right = scissorRect.fRight; in set_scissor_rects()
148 scissor.top = scissorRect.fTop; in set_scissor_rects()
151 scissor.top = renderTarget->height() - scissorRect.fBottom; in set_scissor_rects()
153 scissor.bottom = scissor.top + scissorRect.height(); in set_scissor_rects()
155 SkASSERT(scissor.left >= 0); in set_scissor_rects()
156 SkASSERT(scissor.top >= 0); in set_scissor_rects()
157 gpu->currentCommandList()->setScissorRects(1, &scissor); in set_scissor_rects()
202 onSetScissorRect(const SkIRect& scissor) onSetScissorRect() argument
292 scissor_to_d3d_clear_rect(const GrScissorState& scissor, const GrSurface* surface, GrSurfaceOrigin origin) scissor_to_d3d_clear_rect() argument
313 onClear(const GrScissorState& scissor, std::array<float, 4> color) onClear() argument
320 onClearStencilClip(const GrScissorState& scissor, bool insideStencilMask) onClearStencilClip() argument
[all...]
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/libGLESv2/
H A DDevice.cpp792 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 in bindViewport()
[all...]
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d9/
H A DFramebuffer9.cpp219 const gl::Rectangle *scissor, in blitImpl()
274 // Clip the rectangles to the scissor rectangle in blitImpl()
275 if (scissor) in blitImpl()
277 if (dstRect.left < scissor->x) in blitImpl()
279 srcRect.left += (scissor->x - dstRect.left); in blitImpl()
280 dstRect.left = scissor->x; in blitImpl()
282 if (dstRect.top < scissor->y) in blitImpl()
284 srcRect.top += (scissor->y - dstRect.top); in blitImpl()
285 dstRect.top = scissor->y; in blitImpl()
287 if (dstRect.right > scissor in blitImpl()
216 blitImpl(const gl::Context *context, const gl::Rectangle &sourceArea, const gl::Rectangle &destArea, const gl::Rectangle *scissor, bool blitRenderTarget, bool blitDepth, bool blitStencil, GLenum filter, const gl::Framebuffer *sourceFramebuffer) blitImpl() argument
[all...]
/third_party/mesa3d/src/gallium/drivers/radeonsi/
H A Dsi_state_viewport.c167 * using a scissor.
171 struct si_signed_scissor *scissor) in si_get_scissor_from_viewport()
194 scissor->minx = minx; in si_get_scissor_from_viewport()
195 scissor->miny = miny; in si_get_scissor_from_viewport()
196 scissor->maxx = ceilf(maxx); in si_get_scissor_from_viewport()
197 scissor->maxy = ceilf(maxy); in si_get_scissor_from_viewport()
201 struct si_signed_scissor *scissor) in si_clamp_scissor()
203 out->minx = CLAMP(scissor->minx, 0, SI_MAX_SCISSOR); in si_clamp_scissor()
204 out->miny = CLAMP(scissor->miny, 0, SI_MAX_SCISSOR); in si_clamp_scissor()
205 out->maxx = CLAMP(scissor in si_clamp_scissor()
169 si_get_scissor_from_viewport(struct si_context *ctx, const struct pipe_viewport_state *vp, struct si_signed_scissor *scissor) si_get_scissor_from_viewport() argument
200 si_clamp_scissor(struct si_context *ctx, struct pipe_scissor_state *out, struct si_signed_scissor *scissor) si_clamp_scissor() argument
226 si_emit_one_scissor(struct si_context *ctx, struct radeon_cmdbuf *cs, struct si_signed_scissor *vp_scissor, struct pipe_scissor_state *scissor) si_emit_one_scissor() argument
438 struct si_signed_scissor *scissor = &ctx->viewports.as_scissor[index]; si_set_viewport_states() local
[all...]
/third_party/skia/src/gpu/ops/
H A DClearOp.cpp28 const GrScissorState& scissor, in MakeColor()
30 return GrOp::Make<ClearOp>(context, Buffer::kColor, scissor, color, false); in MakeColor()
34 const GrScissorState& scissor, in MakeStencilClip()
38 scissor, in MakeStencilClip()
44 const GrScissorState& scissor, in ClearOp()
48 , fScissor(scissor) in ClearOp()
52 this->setBounds(SkRect::Make(scissor.rect()), HasAABloat::kNo, IsHairline::kNo); in ClearOp()
27 MakeColor(GrRecordingContext* context, const GrScissorState& scissor, std::array<float, 4> color) MakeColor() argument
33 MakeStencilClip(GrRecordingContext* context, const GrScissorState& scissor, bool insideMask) MakeStencilClip() argument
43 ClearOp(Buffer buffer, const GrScissorState& scissor, std::array<float, 4> color, bool insideMask) ClearOp() argument
/third_party/vk-gl-cts/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"); in init() local
439 addChild(scissor); in init()
464 // Default framebuffer cases with scissor test enabled in init()
466 scissor->addChild(new RasterizerDiscardCase(m_context, "write_depth_points", "points", 4, CASE_WRITE_DEPTH, CASEOPTION_SCISSOR, GL_POINTS)); in init()
467 scissor->addChild(new RasterizerDiscardCase(m_context, "write_depth_lines", "lines", 4, CASE_WRITE_DEPTH, CASEOPTION_SCISSOR, GL_LINES)); in init()
468 scissor->addChild(new RasterizerDiscardCase(m_context, "write_depth_line_strip", "line_strip", 4, CASE_WRITE_DEPTH, CASEOPTION_SCISSOR, GL_LINE_STRIP)); in init()
469 scissor->addChild(new RasterizerDiscardCase(m_context, "write_depth_line_loop", "line_loop", 4, CASE_WRITE_DEPTH, CASEOPTION_SCISSOR, GL_LINE_LOOP)); in init()
470 scissor in init()
[all...]
H A Des3fDepthStencilClearTests.cpp73 , scissor (0, 0, 0, 0) in Clear()
84 tcu::IVec4 scissor; member
121 DepthStencilClearCase (Context& context, const char* name, const char* description, int numIters, int numClears, bool depth, bool stencil, bool scissor, bool masked);
145 DepthStencilClearCase::DepthStencilClearCase (Context& context, const char* name, const char* 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 in renderGL()
[all...]
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/
H A DClear11.cpp418 if (clearParams.scissor.x >= framebufferSize.width || in clearFramebuffer()
419 clearParams.scissor.y >= framebufferSize.height || clearParams.scissor.width == 0 || in clearFramebuffer()
420 clearParams.scissor.height == 0) in clearFramebuffer()
428 if (clearParams.scissor.x + clearParams.scissor.width <= 0 || in clearFramebuffer()
429 clearParams.scissor.y + clearParams.scissor.height <= 0) in clearFramebuffer()
435 clearParams.scissor.x > 0 || clearParams.scissor in clearFramebuffer()
[all...]
H A DBlit11.h45 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,
/third_party/mesa3d/src/gallium/drivers/v3d/
H A Dv3dx_emit.c411 /* Clip to the scissor if it's enabled, but still clip to the in emit_state()
420 if (!v3d->rasterizer->base.scissor) { in emit_state()
426 minx = MAX2(vp_minx, v3d->scissor.minx); in emit_state()
427 miny = MAX2(vp_miny, v3d->scissor.miny); in emit_state()
428 maxx = MIN2(vp_maxx, v3d->scissor.maxx); in emit_state()
429 maxy = MIN2(vp_maxy, v3d->scissor.maxy); in emit_state()
439 /* The HW won't entirely clip out when scissor in emit_state()
454 if (!v3d->rasterizer->base.scissor) { in emit_state()
455 job->scissor.disabled = true; in emit_state()
456 } else if (!job->scissor in emit_state()
[all...]
/third_party/mesa3d/src/gallium/drivers/llvmpipe/
H A Dlp_setup_context.h126 struct u_rect draw_regions[PIPE_MAX_VIEWPORTS]; /* intersection of fb & scissor */
202 const struct u_rect *scissor) in scissor_planes_needed()
205 scis_planes[0] = (bbox->x0 < scissor->x0); in scissor_planes_needed()
207 scis_planes[1] = (bbox->x1 > scissor->x1); in scissor_planes_needed()
209 scis_planes[2] = (bbox->y0 < scissor->y0); in scissor_planes_needed()
211 scis_planes[3] = (bbox->y1 > scissor->y1); in scissor_planes_needed()
216 lp_setup_add_scissor_planes(const struct u_rect *scissor,
201 scissor_planes_needed(boolean scis_planes[4], const struct u_rect *bbox, const struct u_rect *scissor) scissor_planes_needed() argument
/third_party/mesa3d/src/gallium/drivers/zink/
H A Dzink_clear.c136 if (!scissor_state || (last_clear->has_scissor && scissor_states_equal(&last_clear->scissor, scissor_state))) in get_clear_data()
196 struct u_rect scissor = {scissor_state->minx, scissor_state->maxx, scissor_state->miny, scissor_state->maxy}; in zink_clear() local
197 needs_rp = !zink_blit_region_fills(scissor, fb->width, fb->height); in zink_clear()
290 clear->scissor = *scissor_state; in zink_clear()
308 clear->scissor = *scissor_state; in zink_clear()
359 if (a->has_scissor != b->has_scissor || (a->has_scissor && !scissor_states_equal(&a->scissor, &b->scissor))) in zink_clear_framebuffer()
385 if (a->has_scissor != b->has_scissor || (a->has_scissor && !scissor_states_equal(&a->scissor, &b->scissor))) in zink_clear_framebuffer()
406 clear->has_scissor ? &clear->scissor in zink_clear_framebuffer()
462 struct pipe_scissor_state scissor = {box->x, box->y, box->x + box->width, box->y + box->height}; zink_clear_texture() local
560 struct pipe_scissor_state scissor = {dstx, dsty, dstx + width, dsty + height}; zink_clear_render_target() local
589 struct pipe_scissor_state scissor = {dstx, dsty, dstx + width, dsty + height}; zink_clear_depth_stencil() local
718 struct u_rect scissor = {clear->scissor.minx, clear->scissor.maxx, fb_clears_apply_or_discard_internal() local
[all...]
/third_party/vk-gl-cts/modules/gles2/functional/
H A Des2fDepthStencilClearTests.cpp73 , scissor (0, 0, 0, 0) in Clear()
84 tcu::IVec4 scissor; member
121 DepthStencilClearCase (Context& context, const char* name, const char* description, int numIters, int numClears, bool depth, bool stencil, bool scissor, bool masked);
145 DepthStencilClearCase::DepthStencilClearCase (Context& context, const char* name, const char* 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 in renderGL()
[all...]
/third_party/skia/third_party/externals/angle2/src/tests/egl_tests/
H A DEGLSurfacelessContextTest.cpp155 // Test that the scissor and viewport are set correctly
166 GLint scissor[4] = {1, 2, 3, 4}; in TEST_P() local
167 glGetIntegerv(GL_SCISSOR_BOX, scissor); in TEST_P()
169 ASSERT_EQ(0, scissor[0]); in TEST_P()
170 ASSERT_EQ(0, scissor[1]); in TEST_P()
171 ASSERT_EQ(0, scissor[2]); in TEST_P()
172 ASSERT_EQ(0, scissor[3]); in TEST_P()
/third_party/skia/src/gpu/vk/
H A DGrVkMSAALoadManager.cpp159 // We assume the scissor is not enabled so just set it to the whole RT in loadMSAAFromResolve()
160 VkRect2D scissor; in loadMSAAFromResolve() local
161 scissor.extent.width = dst->width(); in loadMSAAFromResolve()
162 scissor.extent.height = dst->height(); in loadMSAAFromResolve()
163 scissor.offset.x = 0; in loadMSAAFromResolve()
164 scissor.offset.y = 0; in loadMSAAFromResolve()
165 commandBuffer->setScissor(gpu, 0, 1, &scissor); in loadMSAAFromResolve()
H A DGrVkOpsRenderPass.cpp426 void GrVkOpsRenderPass::onClearStencilClip(const GrScissorState& scissor, bool insideStencilMask) { in onClearStencilClip() argument
452 if (!scissor.enabled()) { in onClearStencilClip()
455 vkRect = scissor.rect(); in onClearStencilClip()
457 vkRect.setLTRB(scissor.rect().fLeft, sb->height() - scissor.rect().fBottom, in onClearStencilClip()
458 scissor.rect().fRight, sb->height() - scissor.rect().fTop); in onClearStencilClip()
479 void GrVkOpsRenderPass::onClear(const GrScissorState& scissor, std::array<float, 4> color) { in onClear() argument
493 //SkASSERT(!fCurrentCBIsEmpty || scissor); in onClear()
500 if (!scissor in onClear()
670 onSetScissorRect(const SkIRect& scissor) onSetScissorRect() argument
[all...]
/third_party/mesa3d/src/gallium/drivers/vc4/
H A Dvc4_emit.c41 /* Clip to the scissor if it's enabled, but still clip to the in vc4_emit_state()
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()
/third_party/mesa3d/src/gallium/drivers/svga/
H A Dsvga_state_framebuffer.c791 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[ in emit_scissor_rect()
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/
H A DvktDrawDiscardRectanglesTests.cpp397 const VkRect2D scissor) in generateReferenceImage()
420 // Clear the scissor are with the clearColor which depends on the selected mode in generateReferenceImage()
421 tcu::clear(tcu::getSubregion(image.getAccess(), scissor.offset.x, scissor.offset.y, in generateReferenceImage()
422 scissor.extent.width, scissor.extent.height), in generateReferenceImage()
425 // Now draw the discard rectangles taking into account both the scissor area and in generateReferenceImage()
433 if ((x >= (deUint32)scissor.offset.x) && (x < (scissor.offset.x + scissor in generateReferenceImage()
390 generateReferenceImage(const tcu::TextureFormat format, const UVec2& renderSize, const TestMode testMode, const Vec4& color, const deUint32 numRectangles, const std::vector<VkRect2D> rectangles, const deBool enableScissor, const VkRect2D scissor) generateReferenceImage() argument
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/draw/
H A DvktDrawDiscardRectanglesTests.cpp397 const VkRect2D scissor) in generateReferenceImage()
420 // Clear the scissor are with the clearColor which depends on the selected mode in generateReferenceImage()
421 tcu::clear(tcu::getSubregion(image.getAccess(), scissor.offset.x, scissor.offset.y, in generateReferenceImage()
422 scissor.extent.width, scissor.extent.height), in generateReferenceImage()
425 // Now draw the discard rectangles taking into account both the scissor area and in generateReferenceImage()
433 if ((x >= (deUint32)scissor.offset.x) && (x < (scissor.offset.x + scissor in generateReferenceImage()
390 generateReferenceImage(const tcu::TextureFormat format, const UVec2& renderSize, const TestMode testMode, const Vec4& color, const deUint32 numRectangles, const std::vector<VkRect2D> rectangles, const deBool enableScissor, const VkRect2D scissor) generateReferenceImage() argument
[all...]
/third_party/skia/src/gpu/dawn/
H A DGrDawnOpsRenderPass.cpp99 void GrDawnOpsRenderPass::onClearStencilClip(const GrScissorState& scissor, in onClearStencilClip() argument
101 SkASSERT(!scissor.enabled()); in onClearStencilClip()
106 void GrDawnOpsRenderPass::onClear(const GrScissorState& scissor, std::array<float, 4> color) { in onClear() argument
107 SkASSERT(!scissor.enabled()); in onClear()
135 // "Disable" scissor by setting it to the full pipeline bounds. in applyState()
155 void GrDawnOpsRenderPass::onSetScissorRect(const SkIRect& scissor) { in onSetScissorRect() argument
158 SkASSERT(SkIRect::MakeSize(fRenderTarget->dimensions()).contains(scissor)); in onSetScissorRect()
160 GrNativeRect::MakeRelativeTo(fOrigin, fRenderTarget->height(), scissor); in onSetScissorRect()

Completed in 18 milliseconds

12345678910>>...18