Home
last modified time | relevance | path

Searched refs:scissor (Results 1 – 25 of 780) sorted by relevance

12345678910>>...32

/third_party/mesa3d/src/mesa/state_tracker/
Dst_atom_scissor.c48 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 …]
Dst_cb_clear.c368 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()
455 bool scissor = is_scissor_enabled(ctx, rb); in st_Clear() local
456 if ((scissor && !st->can_scissor_clear) || in st_Clear()
462 have_scissor_buffers |= scissor && st->can_scissor_clear; in st_Clear()
469 bool scissor = is_scissor_enabled(ctx, depthRb); in st_Clear() local
470 if ((scissor && !st->can_scissor_clear) || in st_Clear()
[all …]
/third_party/vk-gl-cts/android/cts/master/vk-master-2019-03-01/
Dfragment-operations.txt1 dEQP-VK.fragment_operations.scissor.points.inside
2 dEQP-VK.fragment_operations.scissor.points.partially_inside
3 dEQP-VK.fragment_operations.scissor.points.outside
4 dEQP-VK.fragment_operations.scissor.lines.inside
5 dEQP-VK.fragment_operations.scissor.lines.partially_inside
6 dEQP-VK.fragment_operations.scissor.lines.outside
7 dEQP-VK.fragment_operations.scissor.lines.crossing
8 dEQP-VK.fragment_operations.scissor.triangles.inside
9 dEQP-VK.fragment_operations.scissor.triangles.partially_inside
10 dEQP-VK.fragment_operations.scissor.triangles.outside
[all …]
/third_party/skia/third_party/externals/swiftshader/tests/regres/testlists/vk-default/
Dfragment-operations.txt1 dEQP-VK.fragment_operations.scissor.points.inside
2 dEQP-VK.fragment_operations.scissor.points.partially_inside
3 dEQP-VK.fragment_operations.scissor.points.outside
4 dEQP-VK.fragment_operations.scissor.lines.inside
5 dEQP-VK.fragment_operations.scissor.lines.partially_inside
6 dEQP-VK.fragment_operations.scissor.lines.outside
7 dEQP-VK.fragment_operations.scissor.lines.crossing
8 dEQP-VK.fragment_operations.scissor.triangles.inside
9 dEQP-VK.fragment_operations.scissor.triangles.partially_inside
10 dEQP-VK.fragment_operations.scissor.triangles.outside
[all …]
/third_party/vk-gl-cts/external/vulkancts/mustpass/master/vk-default/
Dfragment-operations.txt1 dEQP-VK.fragment_operations.scissor.points.inside
2 dEQP-VK.fragment_operations.scissor.points.partially_inside
3 dEQP-VK.fragment_operations.scissor.points.outside
4 dEQP-VK.fragment_operations.scissor.lines.inside
5 dEQP-VK.fragment_operations.scissor.lines.partially_inside
6 dEQP-VK.fragment_operations.scissor.lines.outside
7 dEQP-VK.fragment_operations.scissor.lines.crossing
8 dEQP-VK.fragment_operations.scissor.triangles.inside
9 dEQP-VK.fragment_operations.scissor.triangles.partially_inside
10 dEQP-VK.fragment_operations.scissor.triangles.outside
[all …]
/third_party/vk-gl-cts/android/cts/master/vk-master/
Dfragment-operations.txt1 dEQP-VK.fragment_operations.scissor.points.inside
2 dEQP-VK.fragment_operations.scissor.points.partially_inside
3 dEQP-VK.fragment_operations.scissor.points.outside
4 dEQP-VK.fragment_operations.scissor.lines.inside
5 dEQP-VK.fragment_operations.scissor.lines.partially_inside
6 dEQP-VK.fragment_operations.scissor.lines.outside
7 dEQP-VK.fragment_operations.scissor.lines.crossing
8 dEQP-VK.fragment_operations.scissor.triangles.inside
9 dEQP-VK.fragment_operations.scissor.triangles.partially_inside
10 dEQP-VK.fragment_operations.scissor.triangles.outside
[all …]
/third_party/openGLES/extensions/NV/
DNV_scissor_exclusive.txt51 In unextended OpenGL, applications can enable a per-viewport scissor test
53 lie outside the corresponding scissor rectangle. In this extension, we
54 provide a separate per-viewport exclusive scissor test, where fragments
56 exclusive scissor rectangle.
58 The regular (inclusive) scissor test and exclusive scissor test are
61 their (x,y) coordinates are both inside the regular scissor rectangle and
62 outside the exclusive scissor rectangle.
94 Like the scissor test (section 14.9.2), the exclusive scissor test
95 determines if (x_w, y_w) lies outside the exclusive scissor rectangles
101 ScissorExclusiveArrayvNV defines a set of exclusive scissor rectangles that
[all …]
/third_party/skia/src/gpu/d3d/
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 void GrD3DOpsRenderPass::onSetScissorRect(const SkIRect& scissor) { in onSetScissorRect() argument
[all …]
/third_party/mesa3d/src/gallium/frontends/xa/
Dxa_priv.h111 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()
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/libGLESv2/
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.y0 = viewport.y0; in bindViewport()
[all …]
/third_party/mesa3d/src/gallium/drivers/r600/
Dr600_viewport.c76 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 …]
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d9/
DFramebuffer9.cpp219 const gl::Rectangle *scissor, in blitImpl() argument
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->x + scissor->width) in blitImpl()
289 srcRect.right -= (dstRect.right - (scissor->x + scissor->width)); in blitImpl()
[all …]
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d9/
DFramebuffer9.cpp218 const gl::Rectangle *scissor, in blitImpl() argument
273 if (scissor) in blitImpl()
275 if (dstRect.left < scissor->x) in blitImpl()
277 srcRect.left += (scissor->x - dstRect.left); in blitImpl()
278 dstRect.left = scissor->x; in blitImpl()
280 if (dstRect.top < scissor->y) in blitImpl()
282 srcRect.top += (scissor->y - dstRect.top); in blitImpl()
283 dstRect.top = scissor->y; in blitImpl()
285 if (dstRect.right > scissor->x + scissor->width) in blitImpl()
287 srcRect.right -= (dstRect.right - (scissor->x + scissor->width)); in blitImpl()
[all …]
/third_party/skia/src/gpu/ops/
DClearOp.cpp28 const GrScissorState& scissor, in MakeColor() argument
30 return GrOp::Make<ClearOp>(context, Buffer::kColor, scissor, color, false); in MakeColor()
34 const GrScissorState& scissor, in MakeStencilClip() argument
38 scissor, in MakeStencilClip()
44 const GrScissorState& scissor, in ClearOp() argument
48 , fScissor(scissor) in ClearOp()
52 this->setBounds(SkRect::Make(scissor.rect()), HasAABloat::kNo, IsHairline::kNo); in ClearOp()
/third_party/mesa3d/src/gallium/drivers/radeonsi/
Dsi_state_viewport.c171 struct si_signed_scissor *scissor) in si_get_scissor_from_viewport() argument
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() argument
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->maxx, 0, SI_MAX_SCISSOR); in si_clamp_scissor()
206 out->maxy = CLAMP(scissor->maxy, 0, SI_MAX_SCISSOR); in si_clamp_scissor()
[all …]
/third_party/flutter/skia/src/gpu/
DGrClipStackClip.cpp184 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()
402 : fScissor(reducedClip.scissor()) in ClipMaskData()
[all …]
DGrReducedClip.h43 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()
/third_party/vk-gl-cts/modules/gles3/functional/
Des3fRasterizerDiscardTests.cpp435 …tcu::TestCaseGroup* scissor = new tcu::TestCaseGroup(m_testCtx, "scissor", "Rasterizer discard tes… in init() local
439 addChild(scissor); in init()
466scissor->addChild(new RasterizerDiscardCase(m_context, "write_depth_points", "points", 4, CASE… in init()
467scissor->addChild(new RasterizerDiscardCase(m_context, "write_depth_lines", "lines", 4, CASE_… in init()
468scissor->addChild(new RasterizerDiscardCase(m_context, "write_depth_line_strip", "line_strip", 4… in init()
469scissor->addChild(new RasterizerDiscardCase(m_context, "write_depth_line_loop", "line_loop", 4,… in init()
470scissor->addChild(new RasterizerDiscardCase(m_context, "write_depth_triangles", "triangles", 4,… in init()
471scissor->addChild(new RasterizerDiscardCase(m_context, "write_depth_triangle_strip", "triangle_str… in init()
472scissor->addChild(new RasterizerDiscardCase(m_context, "write_depth_triangle_fan", "triangle_fan"… in init()
474scissor->addChild(new RasterizerDiscardCase(m_context, "write_stencil_points", "points", 4, CA… in init()
[all …]
/third_party/mesa3d/src/gallium/drivers/v3d/
Dv3dx_emit.c420 if (!v3d->rasterizer->base.scissor) { in v3dX()
426 minx = MAX2(vp_minx, v3d->scissor.minx); in v3dX()
427 miny = MAX2(vp_miny, v3d->scissor.miny); in v3dX()
428 maxx = MIN2(vp_maxx, v3d->scissor.maxx); in v3dX()
429 maxy = MIN2(vp_maxy, v3d->scissor.maxy); in v3dX()
454 if (!v3d->rasterizer->base.scissor) { in v3dX()
455 job->scissor.disabled = true; in v3dX()
456 } else if (!job->scissor.disabled && in v3dX()
458 if (job->scissor.count < MAX_JOB_SCISSORS) { in v3dX()
459 job->scissor.rects[job->scissor.count].min_x = in v3dX()
[all …]
/third_party/vk-gl-cts/android/cts/master/vk-master-2020-03-01/
Ddraw.txt122 dEQP-VK.draw.renderpass.scissor.static_scissor_two_quads
123 dEQP-VK.draw.renderpass.scissor.static_scissor_two_clears
124 dEQP-VK.draw.renderpass.scissor.two_static_scissors_one_quad
125 dEQP-VK.draw.renderpass.scissor.static_scissor_partially_outside_viewport
126 dEQP-VK.draw.renderpass.scissor.static_scissor_outside_viewport
127 dEQP-VK.draw.renderpass.scissor.static_scissor_viewport_border
128 dEQP-VK.draw.renderpass.scissor.static_scissor_max_int32
129 dEQP-VK.draw.renderpass.scissor.16_static_scissors
130 dEQP-VK.draw.renderpass.scissor.empty_static_scissor
131 dEQP-VK.draw.renderpass.scissor.dynamic_scissor_two_quads
[all …]
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/
DClear11.cpp426 if (clearParams.scissor.x >= framebufferSize.width || in clearFramebuffer()
427 clearParams.scissor.y >= framebufferSize.height || clearParams.scissor.width == 0 || in clearFramebuffer()
428 clearParams.scissor.height == 0) in clearFramebuffer()
436 if (clearParams.scissor.x + clearParams.scissor.width <= 0 || in clearFramebuffer()
437 clearParams.scissor.y + clearParams.scissor.height <= 0) in clearFramebuffer()
443 clearParams.scissor.x > 0 || clearParams.scissor.y > 0 || in clearFramebuffer()
444 clearParams.scissor.x + clearParams.scissor.width < framebufferSize.width || in clearFramebuffer()
445 clearParams.scissor.y + clearParams.scissor.height < framebufferSize.height; in clearFramebuffer()
451 scissorRect.left = clearParams.scissor.x; in clearFramebuffer()
452 scissorRect.right = scissorRect.left + clearParams.scissor.width; in clearFramebuffer()
[all …]
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/
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.y > 0 || in clearFramebuffer()
436 clearParams.scissor.x + clearParams.scissor.width < framebufferSize.width || in clearFramebuffer()
437 clearParams.scissor.y + clearParams.scissor.height < framebufferSize.height; in clearFramebuffer()
443 scissorRect.left = clearParams.scissor.x; in clearFramebuffer()
444 scissorRect.right = scissorRect.left + clearParams.scissor.width; in clearFramebuffer()
[all …]
/third_party/vk-gl-cts/doc/testspecs/GLES2/
Dfunctional.scissors.txt22 + 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
/third_party/mesa3d/src/gallium/drivers/zink/
Dzink_clear.c136 …if (!scissor_state || (last_clear->has_scissor && scissor_states_equal(&last_clear->scissor, sciss… in get_clear_data()
196 …struct u_rect scissor = {scissor_state->minx, scissor_state->maxx, scissor_state->miny, scissor_st… 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 …s_scissor != b->has_scissor || (a->has_scissor && !scissor_states_equal(&a->scissor, &b->scissor))) in zink_clear_framebuffer()
385 …s_scissor != b->has_scissor || (a->has_scissor && !scissor_states_equal(&a->scissor, &b->scissor))) in zink_clear_framebuffer()
406 clear->has_scissor ? &clear->scissor : NULL, in zink_clear_framebuffer()
415 clear->has_scissor ? &clear->scissor : NULL, in zink_clear_framebuffer()
462 struct pipe_scissor_state scissor = {box->x, box->y, box->x + box->width, box->y + box->height}; in zink_clear_texture() local
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/
DvktDrawDiscardRectanglesTests.cpp395 const VkRect2D scissor) in generateReferenceImage() argument
419 tcu::clear(tcu::getSubregion(image.getAccess(), scissor.offset.x, scissor.offset.y, in generateReferenceImage()
420 scissor.extent.width, scissor.extent.height), in generateReferenceImage()
431 if ((x >= (deUint32)scissor.offset.x) && (x < (scissor.offset.x + scissor.extent.width)) && in generateReferenceImage()
432 (y >= (deUint32)scissor.offset.y) && (y < (scissor.offset.y + scissor.extent.height))) in generateReferenceImage()
736 for (deUint32 scissor = 0 ; scissor < TEST_SCISSOR_MODE_COUNT; scissor++) in createTests() local
747 params.scissorMode = (TestScissorMode) scissor; in createTests()
750 …name << dynamicName[dynamic] << scissorName[scissor] << modeName[mode] << "rect_" << numRect[rect]; in createTests()

12345678910>>...32