Home
last modified time | relevance | path

Searched refs:Scissor (Results 1 – 25 of 79) sorted by relevance

1234

/third_party/mesa3d/src/mesa/state_tracker/
Dst_atom_scissor.c57 if (!ctx->Scissor.EnableFlags) in st_update_scissor()
66 if (ctx->Scissor.EnableFlags & (1 << i)) { in st_update_scissor()
68 GLint xmax = MAX2(0, ctx->Scissor.ScissorArray[i].X + ctx->Scissor.ScissorArray[i].Width); in st_update_scissor()
69 GLint ymax = MAX2(0, ctx->Scissor.ScissorArray[i].Y + ctx->Scissor.ScissorArray[i].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()
115 const struct gl_scissor_attrib *scissor = &ctx->Scissor; in st_update_window_rectangles()
Dst_scissor.c40 blit->num_window_rectangles = ctx->Scissor.NumWindowRects; in st_window_rectangles_to_blit()
42 ctx->Scissor.WindowRectMode == GL_INCLUSIVE_EXT; in st_window_rectangles_to_blit()
44 const struct gl_scissor_rect *src_rect = &ctx->Scissor.WindowRects[i]; in st_window_rectangles_to_blit()
Dst_cb_clear.c368 const struct gl_scissor_rect *scissor = &ctx->Scissor.ScissorArray[0]; in is_scissor_enabled()
370 return (ctx->Scissor.EnableFlags & 1) && in is_scissor_enabled()
385 return ctx->Scissor.NumWindowRects > 0 || in is_window_rectangle_enabled()
386 ctx->Scissor.WindowRectMode == GL_INCLUSIVE_EXT; in is_window_rectangle_enabled()
505 const struct gl_scissor_rect *scissor = &ctx->Scissor.ScissorArray[0]; in st_Clear()
Dst_atom.c147 if (ctx->Scissor.EnableFlags & u_bit_consecutive(0, num_viewports)) in check_program_state()
Dst_atom_rasterizer.c268 raster->scissor = !!ctx->Scissor.EnableFlags; in st_update_rasterizer()
/third_party/mesa3d/src/mesa/main/
Dscissor.c48 if (x == ctx->Scissor.ScissorArray[idx].X && in set_scissor_no_notify()
49 y == ctx->Scissor.ScissorArray[idx].Y && in set_scissor_no_notify()
50 width == ctx->Scissor.ScissorArray[idx].Width && in set_scissor_no_notify()
51 height == ctx->Scissor.ScissorArray[idx].Height) in set_scissor_no_notify()
54 if (ctx->Scissor.EnableFlags) in set_scissor_no_notify()
60 ctx->Scissor.ScissorArray[idx].X = x; in set_scissor_no_notify()
61 ctx->Scissor.ScissorArray[idx].Y = y; in set_scissor_no_notify()
62 ctx->Scissor.ScissorArray[idx].Width = width; in set_scissor_no_notify()
63 ctx->Scissor.ScissorArray[idx].Height = height; in set_scissor_no_notify()
306 memcpy(ctx->Scissor.WindowRects, newval, in _mesa_WindowRectanglesEXT()
[all …]
Dframebuffer.c325 if (ctx->Scissor.EnableFlags & (1u << idx)) { in _mesa_intersect_scissor_bounding_box()
326 if (ctx->Scissor.ScissorArray[idx].X > bbox[0]) { in _mesa_intersect_scissor_bounding_box()
327 bbox[0] = ctx->Scissor.ScissorArray[idx].X; in _mesa_intersect_scissor_bounding_box()
329 if (ctx->Scissor.ScissorArray[idx].Y > bbox[2]) { in _mesa_intersect_scissor_bounding_box()
330 bbox[2] = ctx->Scissor.ScissorArray[idx].Y; in _mesa_intersect_scissor_bounding_box()
332 if (ctx->Scissor.ScissorArray[idx].X + ctx->Scissor.ScissorArray[idx].Width < bbox[1]) { in _mesa_intersect_scissor_bounding_box()
333 bbox[1] = ctx->Scissor.ScissorArray[idx].X + ctx->Scissor.ScissorArray[idx].Width; in _mesa_intersect_scissor_bounding_box()
335 if (ctx->Scissor.ScissorArray[idx].Y + ctx->Scissor.ScissorArray[idx].Height < bbox[3]) { in _mesa_intersect_scissor_bounding_box()
336 bbox[3] = ctx->Scissor.ScissorArray[idx].Y + ctx->Scissor.ScissorArray[idx].Height; in _mesa_intersect_scissor_bounding_box()
Dattrib.c185 attr->Scissor = ctx->Scissor.EnableFlags; in _mesa_PushAttrib()
249 memcpy(&head->Scissor, &ctx->Scissor, sizeof(head->Scissor)); in _mesa_PushAttrib()
440 if (ctx->Scissor.EnableFlags != enable->Scissor) { in pop_enable_group()
444 TEST_AND_UPDATE_INDEX(ctx->Scissor.EnableFlags, enable->Scissor, in pop_enable_group()
987 attr->Scissor.ScissorArray[i].X, in _mesa_PopAttrib()
988 attr->Scissor.ScissorArray[i].Y, in _mesa_PopAttrib()
989 attr->Scissor.ScissorArray[i].Width, in _mesa_PopAttrib()
990 attr->Scissor.ScissorArray[i].Height); in _mesa_PopAttrib()
991 TEST_AND_UPDATE_INDEX(ctx->Scissor.EnableFlags, in _mesa_PopAttrib()
992 attr->Scissor.EnableFlags, i, GL_SCISSOR_TEST); in _mesa_PopAttrib()
[all …]
Dget.c858 v->value_int_4[0] = ctx->Scissor.ScissorArray[0].X; in find_custom_value()
859 v->value_int_4[1] = ctx->Scissor.ScissorArray[0].Y; in find_custom_value()
860 v->value_int_4[2] = ctx->Scissor.ScissorArray[0].Width; in find_custom_value()
861 v->value_int_4[3] = ctx->Scissor.ScissorArray[0].Height; in find_custom_value()
865 v->value_bool = ctx->Scissor.EnableFlags & 1; in find_custom_value()
2577 v->value_int_4[0] = ctx->Scissor.ScissorArray[index].X; in find_value_indexed()
2578 v->value_int_4[1] = ctx->Scissor.ScissorArray[index].Y; in find_value_indexed()
2579 v->value_int_4[2] = ctx->Scissor.ScissorArray[index].Width; in find_value_indexed()
2580 v->value_int_4[3] = ctx->Scissor.ScissorArray[index].Height; in find_value_indexed()
2588 v->value_int_4[0] = ctx->Scissor.WindowRects[index].X; in find_value_indexed()
[all …]
Denable.c868 if (newEnabled != ctx->Scissor.EnableFlags) { in _mesa_set_enable()
874 ctx->Scissor.EnableFlags = newEnabled; in _mesa_set_enable()
1395 if (((ctx->Scissor.EnableFlags >> index) & 1) != state) { in _mesa_set_enablei()
1402 ctx->Scissor.EnableFlags |= (1 << index); in _mesa_set_enablei()
1404 ctx->Scissor.EnableFlags &= ~(1 << index); in _mesa_set_enablei()
1476 return (ctx->Scissor.EnableFlags >> index) & 1; in _mesa_IsEnabledi()
1717 return ctx->Scissor.EnableFlags & 1; /* return state for index 0 */ in _mesa_IsEnabled()
/third_party/mesa3d/src/glx/apple/
Dapple_glapi.c78 __ogl_framework_api->Scissor(x, y, width, height); in apple_glapi_oglfw_viewport_scissor()
/third_party/skia/third_party/externals/angle2/src/tests/perf_tests/
DDrawCallPerf.cpp27 Scissor, enumerator
72 case StateChange::Scissor: in story()
573 case StateChange::Scissor: in drawBenchmark()
/third_party/skia/third_party/externals/angle2/src/tests/gles1_conformance_tests/
DPrimtestTests.cpp142 TEST_P(GLES1PrimtestTest, Scissor) in TEST_P() argument
/third_party/skia/third_party/externals/dawn/src/dawn_native/opengl/
DNativeSwapChainImplGL.cpp75 gl.Scissor(0, 0, mWidth, mHeight); in Present()
/third_party/vk-gl-cts/external/openglcts/modules/common/
DglcViewportArrayTests.hpp852 class Scissor : public DrawMultipleLayers class
856 Scissor(deqp::Context& context, const glcts::ExtParameters& extParams);
858 virtual ~Scissor() in ~Scissor()
/third_party/vk-gl-cts/doc/testspecs/GLES3/
Dfunctional.fbo.blit.txt33 + Scissor test
Dfunctional.occlusion_query.txt26 - Scissor boxes
/third_party/vk-gl-cts/doc/testspecs/GLES2/
Dfunctional.scissors.txt32 + Scissor configurations
/third_party/openGLES/extensions/ARB/
DARB_invalidate_subdata.txt393 specified, or re-use the Scissor?
395 RESOLVED: Explicitly specified in coordinates similar to Scissor, but
396 not reusing the Scissor state. The Scissor is a fragment operation and
/third_party/skia/third_party/externals/opengl-registry/extensions/ARB/
DARB_invalidate_subdata.txt383 specified, or re-use the Scissor?
385 RESOLVED: Explicitly specified in coordinates similar to Scissor, but
386 not reusing the Scissor state. The Scissor is a fragment operation and
/third_party/libdrm/intel/tests/
Dgen6-3d.batch-ref.txt93 0x12300170: 0x22000000: AA disable, CullMode 1, Scissor disable, Multisample m ode 0
216 0x1230035c: 0x62000000: AA disable, CullMode 3, Scissor disable, Multisample m ode 0
346 0x12300564: 0x62000000: AA disable, CullMode 3, Scissor disable, Multisample m ode 0
413 0x12300670: 0x62000000: AA disable, CullMode 3, Scissor disable, Multisample m ode 0
483 0x12300788: 0x62000000: AA disable, CullMode 3, Scissor disable, Multisample m ode 0
616 0x1230099c: 0x62000000: AA disable, CullMode 3, Scissor disable, Multisample m ode 0
683 0x12300aa8: 0x62000000: AA disable, CullMode 3, Scissor disable, Multisample m ode 0
753 0x12300bc0: 0x62000000: AA disable, CullMode 3, Scissor disable, Multisample m ode 0
886 0x12300dd4: 0x62000000: AA disable, CullMode 3, Scissor disable, Multisample m ode 0
953 0x12300ee0: 0x62000000: AA disable, CullMode 3, Scissor disable, Multisample m ode 0
/third_party/skia/src/gpu/gl/
DGrGLAssembleWebGLInterfaceAutogen.cpp113 GET_PROC(Scissor); in GrGLMakeAssembledWebGLInterface()
/third_party/openGLES/extensions/NV/
DNV_scissor_exclusive.txt90 Insert a new section after section 14.9.2, Scissor Test (p. 560)
92 14.9.3 Exclusive Scissor Test
DNV_viewport_array.txt284 Replace section 15.1.2 "Scissor Test", page 309.
292 void Scissor(int left, int bottom, sizei width, sizei height);
347 Scissor sets the scissor rectangle for all viewports to the same
475 …SCISSOR_BOX 16* x 4 x Z GetIntegeri_v See 4.1.2 Scissor box …
/third_party/skia/third_party/externals/opengl-registry/extensions/NV/
DNV_viewport_array.txt284 Replace section 15.1.2 "Scissor Test", page 309.
292 void Scissor(int left, int bottom, sizei width, sizei height);
347 Scissor sets the scissor rectangle for all viewports to the same
475 …SCISSOR_BOX 16* x 4 x Z GetIntegeri_v See 4.1.2 Scissor box …

1234