Home
last modified time | relevance | path

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

123

/external/mesa3d/src/mesa/main/
Dscissor.c45 if (x == ctx->Scissor.ScissorArray[idx].X && in set_scissor_no_notify()
46 y == ctx->Scissor.ScissorArray[idx].Y && in set_scissor_no_notify()
47 width == ctx->Scissor.ScissorArray[idx].Width && in set_scissor_no_notify()
48 height == ctx->Scissor.ScissorArray[idx].Height) in set_scissor_no_notify()
54 ctx->Scissor.ScissorArray[idx].X = x; in set_scissor_no_notify()
55 ctx->Scissor.ScissorArray[idx].Y = y; in set_scissor_no_notify()
56 ctx->Scissor.ScissorArray[idx].Width = width; in set_scissor_no_notify()
57 ctx->Scissor.ScissorArray[idx].Height = height; in set_scissor_no_notify()
80 if (ctx->Driver.Scissor) in scissor()
81 ctx->Driver.Scissor(ctx); in scissor()
[all …]
Dframebuffer.c336 if (ctx->Scissor.EnableFlags & (1u << idx)) { in _mesa_intersect_scissor_bounding_box()
337 if (ctx->Scissor.ScissorArray[idx].X > bbox[0]) { in _mesa_intersect_scissor_bounding_box()
338 bbox[0] = ctx->Scissor.ScissorArray[idx].X; in _mesa_intersect_scissor_bounding_box()
340 if (ctx->Scissor.ScissorArray[idx].Y > bbox[2]) { in _mesa_intersect_scissor_bounding_box()
341 bbox[2] = ctx->Scissor.ScissorArray[idx].Y; in _mesa_intersect_scissor_bounding_box()
343 if (ctx->Scissor.ScissorArray[idx].X + ctx->Scissor.ScissorArray[idx].Width < bbox[1]) { in _mesa_intersect_scissor_bounding_box()
344 bbox[1] = ctx->Scissor.ScissorArray[idx].X + ctx->Scissor.ScissorArray[idx].Width; in _mesa_intersect_scissor_bounding_box()
346 if (ctx->Scissor.ScissorArray[idx].Y + ctx->Scissor.ScissorArray[idx].Height < bbox[3]) { in _mesa_intersect_scissor_bounding_box()
347 bbox[3] = ctx->Scissor.ScissorArray[idx].Y + ctx->Scissor.ScissorArray[idx].Height; in _mesa_intersect_scissor_bounding_box()
Dget.c736 v->value_int_4[0] = ctx->Scissor.ScissorArray[0].X; in find_custom_value()
737 v->value_int_4[1] = ctx->Scissor.ScissorArray[0].Y; in find_custom_value()
738 v->value_int_4[2] = ctx->Scissor.ScissorArray[0].Width; in find_custom_value()
739 v->value_int_4[3] = ctx->Scissor.ScissorArray[0].Height; in find_custom_value()
743 v->value_bool = ctx->Scissor.EnableFlags & 1; in find_custom_value()
2259 v->value_int_4[0] = ctx->Scissor.ScissorArray[index].X; in find_value_indexed()
2260 v->value_int_4[1] = ctx->Scissor.ScissorArray[index].Y; in find_value_indexed()
2261 v->value_int_4[2] = ctx->Scissor.ScissorArray[index].Width; in find_value_indexed()
2262 v->value_int_4[3] = ctx->Scissor.ScissorArray[index].Height; in find_value_indexed()
2270 v->value_int_4[0] = ctx->Scissor.WindowRects[index].X; in find_value_indexed()
[all …]
Denable.c720 if (newEnabled != ctx->Scissor.EnableFlags) { in _mesa_set_enable()
724 ctx->Scissor.EnableFlags = newEnabled; in _mesa_set_enable()
1209 if (((ctx->Scissor.EnableFlags >> index) & 1) != state) { in _mesa_set_enablei()
1214 ctx->Scissor.EnableFlags |= (1 << index); in _mesa_set_enablei()
1216 ctx->Scissor.EnableFlags &= ~(1 << index); in _mesa_set_enablei()
1266 return (ctx->Scissor.EnableFlags >> index) & 1; in _mesa_IsEnabledi()
1494 return ctx->Scissor.EnableFlags & 1; /* return state for index 0 */ in _mesa_IsEnabled()
Dattrib.c114 GLbitfield Scissor; member
369 attr->Scissor = ctx->Scissor.EnableFlags; in _mesa_PushAttrib()
485 (void*)&ctx->Scissor)) in _mesa_PushAttrib()
674 if (ctx->Scissor.EnableFlags != enable->Scissor) { in pop_enable_group()
678 _mesa_set_enablei(ctx, GL_SCISSOR_TEST, i, (enable->Scissor >> i) & 1); in pop_enable_group()
/external/mesa3d/src/mesa/state_tracker/
Dst_atom_scissor.c62 if (ctx->Scissor.EnableFlags & (1 << i)) { in st_update_scissor()
64 GLint xmax = MAX2(0, ctx->Scissor.ScissorArray[i].X + ctx->Scissor.ScissorArray[i].Width); in st_update_scissor()
65 GLint ymax = MAX2(0, ctx->Scissor.ScissorArray[i].Y + ctx->Scissor.ScissorArray[i].Height); in st_update_scissor()
67 if (ctx->Scissor.ScissorArray[i].X > (GLint)scissor[i].minx) in st_update_scissor()
68 scissor[i].minx = ctx->Scissor.ScissorArray[i].X; in st_update_scissor()
69 if (ctx->Scissor.ScissorArray[i].Y > (GLint)scissor[i].miny) in st_update_scissor()
70 scissor[i].miny = ctx->Scissor.ScissorArray[i].Y; in st_update_scissor()
111 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.c318 const struct gl_scissor_rect *scissor = &ctx->Scissor.ScissorArray[0]; in is_scissor_enabled()
320 return (ctx->Scissor.EnableFlags & 1) && in is_scissor_enabled()
335 return ctx->Scissor.NumWindowRects > 0 || in is_window_rectangle_enabled()
336 ctx->Scissor.WindowRectMode == GL_INCLUSIVE_EXT; in is_window_rectangle_enabled()
Dst_atom.c132 if (ctx->Scissor.EnableFlags & u_bit_consecutive(0, num_viewports)) in check_program_state()
Dst_atom_rasterizer.c266 raster->scissor = !!ctx->Scissor.EnableFlags; in st_update_rasterizer()
/external/mesa3d/src/mesa/drivers/dri/i915/
Di830_state.c539 ctx->Scissor.ScissorArray[0].X, ctx->Scissor.ScissorArray[0].Y, in i830Scissor()
540 ctx->Scissor.ScissorArray[0].Width, ctx->Scissor.ScissorArray[0].Height); in i830Scissor()
543 x1 = ctx->Scissor.ScissorArray[0].X; in i830Scissor()
544 y1 = ctx->DrawBuffer->Height - (ctx->Scissor.ScissorArray[0].Y in i830Scissor()
545 + ctx->Scissor.ScissorArray[0].Height); in i830Scissor()
546 x2 = ctx->Scissor.ScissorArray[0].X in i830Scissor()
547 + ctx->Scissor.ScissorArray[0].Width - 1; in i830Scissor()
548 y2 = y1 + ctx->Scissor.ScissorArray[0].Height - 1; in i830Scissor()
554 x1 = ctx->Scissor.ScissorArray[0].X; in i830Scissor()
555 y1 = ctx->Scissor.ScissorArray[0].Y; in i830Scissor()
[all …]
Di915_state.c505 ctx->Scissor.ScissorArray[0].X, ctx->Scissor.ScissorArray[0].Y, in i915Scissor()
506 ctx->Scissor.ScissorArray[0].Width, ctx->Scissor.ScissorArray[0].Height); in i915Scissor()
509 x1 = ctx->Scissor.ScissorArray[0].X; in i915Scissor()
510 y1 = ctx->DrawBuffer->Height - (ctx->Scissor.ScissorArray[0].Y in i915Scissor()
511 + ctx->Scissor.ScissorArray[0].Height); in i915Scissor()
512 x2 = ctx->Scissor.ScissorArray[0].X in i915Scissor()
513 + ctx->Scissor.ScissorArray[0].Width - 1; in i915Scissor()
514 y2 = y1 + ctx->Scissor.ScissorArray[0].Height - 1; in i915Scissor()
520 x1 = ctx->Scissor.ScissorArray[0].X; in i915Scissor()
521 y1 = ctx->Scissor.ScissorArray[0].Y; in i915Scissor()
[all …]
/external/mesa3d/src/mesa/drivers/dri/r200/
Dradeon_common.c108 GLint x = ctx->Scissor.ScissorArray[0].X, y = ctx->Scissor.ScissorArray[0].Y; in radeonUpdateScissor()
109 GLsizei w = ctx->Scissor.ScissorArray[0].Width, h = ctx->Scissor.ScissorArray[0].Height; in radeonUpdateScissor()
148 if (ctx->Scissor.EnableFlags) { in radeonScissor()
/external/mesa3d/src/mesa/drivers/dri/radeon/
Dradeon_common.c108 GLint x = ctx->Scissor.ScissorArray[0].X, y = ctx->Scissor.ScissorArray[0].Y; in radeonUpdateScissor()
109 GLsizei w = ctx->Scissor.ScissorArray[0].Width, h = ctx->Scissor.ScissorArray[0].Height; in radeonUpdateScissor()
148 if (ctx->Scissor.EnableFlags) { in radeonScissor()
/external/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_clear.c122 if ((ctx->Scissor.EnableFlags & 1) && !noop_scissor(fb)) { in brw_fast_clear_depth()
269 bool partial_clear = ctx->Scissor.EnableFlags && !noop_scissor(fb); in brw_clear()
/external/mesa3d/src/mesa/drivers/common/
Ddriverfuncs.c151 driver->Scissor = NULL; in _mesa_init_driver_functions()
255 ctx->Driver.Enable(ctx, GL_SCISSOR_TEST, ctx->Scissor.EnableFlags); in _mesa_init_driver_state()
283 ctx->Driver.Scissor(ctx); in _mesa_init_driver_state()
/external/mesa3d/src/glx/apple/
Dapple_glapi.c78 __ogl_framework_api->Scissor(x, y, width, height); in apple_glapi_oglfw_viewport_scissor()
/external/skqp/src/gpu/gl/
DGrGLIRect.h45 GR_GL_CALL(gl, Scissor(fLeft, fBottom, fWidth, fHeight)); in pushToGLScissor()
/external/skia/src/gpu/gl/
DGrGLIRect.h45 GR_GL_CALL(gl, Scissor(fLeft, fBottom, fWidth, fHeight)); in pushToGLScissor()
/external/deqp/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()
/external/deqp/doc/testspecs/GLES3/
Dfunctional.fbo.blit.txt33 + Scissor test
Dfunctional.occlusion_query.txt26 - Scissor boxes
/external/deqp/doc/testspecs/GLES2/
Dfunctional.scissors.txt32 + Scissor configurations
/external/clang/lib/CodeGen/
DCGRecordLayoutBuilder.cpp80 enum InfoKind { VFPtr, VBPtr, Field, Base, VBase, Scissor } Kind; enumerator
491 Members.push_back(MemberInfo(ScissorOffset, MemberInfo::Scissor, nullptr, in accumulateVBases()
553 if (!Member->Data && Member->Kind != MemberInfo::Scissor) in clipTailPadding()
/external/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

123