/external/chromium_org/third_party/mesa/src/src/mesa/state_tracker/ |
st_atom_scissor.c | 41 * Scissor depends on the scissor box, and the framebuffer dimensions. 46 struct pipe_scissor_state scissor; local 51 scissor.minx = 0; 52 scissor.miny = 0; 53 scissor.maxx = fb->Width; 54 scissor.maxy = fb->Height; 56 if (ctx->Scissor.Enabled) { 58 GLint xmax = MAX2(0, ctx->Scissor.X + ctx->Scissor.Width) [all...] |
/external/mesa3d/src/mesa/state_tracker/ |
st_atom_scissor.c | 41 * Scissor depends on the scissor box, and the framebuffer dimensions. 46 struct pipe_scissor_state scissor; local 51 scissor.minx = 0; 52 scissor.miny = 0; 53 scissor.maxx = fb->Width; 54 scissor.maxy = fb->Height; 56 if (ctx->Scissor.Enabled) { 58 GLint xmax = MAX2(0, ctx->Scissor.X + ctx->Scissor.Width) [all...] |
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/i965/ |
gen6_scissor_state.c | 40 struct gen6_scissor_rect *scissor; local 43 scissor = brw_state_batch(brw, AUB_TRACE_SCISSOR_STATE, 44 sizeof(*scissor), 32, &scissor_state_offset); 48 /* The scissor only needs to handle the intersection of drawable and 49 * scissor rect. Clipping to the boundaries of static shared buffers 57 /* If the scissor was out of bounds and got clamped to 0 60 * anything. Instead, just provide a min > max scissor inside 63 scissor->xmin = 1; 64 scissor->xmax = 0; 65 scissor->ymin = 1 [all...] |
brw_sf_state.c | 78 /* The scissor only needs to handle the intersection of drawable 79 * and scissor rect, since there are no longer cliprects for shared 88 /* If the scissor was out of bounds and got clamped to 0 91 * anything. Instead, just provide a min > max scissor inside 94 sfv->scissor.xmin = 1; 95 sfv->scissor.xmax = 0; 96 sfv->scissor.ymin = 1; 97 sfv->scissor.ymax = 0; 100 sfv->scissor.xmin = ctx->DrawBuffer->_Xmin; 101 sfv->scissor.xmax = ctx->DrawBuffer->_Xmax - 1 [all...] |
/external/mesa3d/src/mesa/drivers/dri/i965/ |
gen6_scissor_state.c | 40 struct gen6_scissor_rect *scissor; local 43 scissor = brw_state_batch(brw, AUB_TRACE_SCISSOR_STATE, 44 sizeof(*scissor), 32, &scissor_state_offset); 48 /* The scissor only needs to handle the intersection of drawable and 49 * scissor rect. Clipping to the boundaries of static shared buffers 57 /* If the scissor was out of bounds and got clamped to 0 60 * anything. Instead, just provide a min > max scissor inside 63 scissor->xmin = 1; 64 scissor->xmax = 0; 65 scissor->ymin = 1 [all...] |
brw_sf_state.c | 78 /* The scissor only needs to handle the intersection of drawable 79 * and scissor rect, since there are no longer cliprects for shared 88 /* If the scissor was out of bounds and got clamped to 0 91 * anything. Instead, just provide a min > max scissor inside 94 sfv->scissor.xmin = 1; 95 sfv->scissor.xmax = 0; 96 sfv->scissor.ymin = 1; 97 sfv->scissor.ymax = 0; 100 sfv->scissor.xmin = ctx->DrawBuffer->_Xmin; 101 sfv->scissor.xmax = ctx->DrawBuffer->_Xmax - 1 [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/llvmpipe/ |
lp_state_clip.c | 62 const struct pipe_scissor_state *scissor) 68 llvmpipe->scissor = *scissor; /* struct copy */
|
lp_setup.h | 79 boolean scissor, 120 const struct pipe_scissor_state *scissor );
|
lp_setup.c | 484 boolean scissor, 494 if (setup->scissor_test != scissor) { 496 setup->scissor_test = scissor; 600 const struct pipe_scissor_state *scissor ) 604 assert(scissor); 606 setup->scissor.x0 = scissor->minx; 607 setup->scissor.x1 = scissor->maxx-1; 608 setup->scissor.y0 = scissor->miny [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/softpipe/ |
sp_state_clip.c | 62 const struct pipe_scissor_state *scissor) 68 softpipe->scissor = *scissor; /* struct copy */
|
sp_state_derived.c | 174 * Recompute cliprect from scissor bounds, scissor enable and surface size. 186 if (sp->rasterizer->scissor) { 190 * clip to scissor rect: 192 sp->cliprect.minx = MAX2(sp->scissor.minx, 0); 193 sp->cliprect.miny = MAX2(sp->scissor.miny, 0); 194 sp->cliprect.maxx = MIN2(sp->scissor.maxx, surfWidth); 195 sp->cliprect.maxy = MIN2(sp->scissor.maxy, surfHeight);
|
/external/mesa3d/src/gallium/drivers/llvmpipe/ |
lp_state_clip.c | 62 const struct pipe_scissor_state *scissor) 68 llvmpipe->scissor = *scissor; /* struct copy */
|
lp_setup.h | 79 boolean scissor, 120 const struct pipe_scissor_state *scissor );
|
/external/mesa3d/src/gallium/drivers/softpipe/ |
sp_state_clip.c | 62 const struct pipe_scissor_state *scissor) 68 softpipe->scissor = *scissor; /* struct copy */
|
sp_state_derived.c | 174 * Recompute cliprect from scissor bounds, scissor enable and surface size. 186 if (sp->rasterizer->scissor) { 190 * clip to scissor rect: 192 sp->cliprect.minx = MAX2(sp->scissor.minx, 0); 193 sp->cliprect.miny = MAX2(sp->scissor.miny, 0); 194 sp->cliprect.maxx = MIN2(sp->scissor.maxx, surfWidth); 195 sp->cliprect.maxy = MIN2(sp->scissor.maxy, surfHeight);
|
/system/core/libpixelflinger/ |
raster.cpp | 75 // clip to scissor 76 if (xd < GGLint(c->state.scissor.left)) { 77 GGLint offset = GGLint(c->state.scissor.left) - xd; 78 xd = GGLint(c->state.scissor.left); 82 if (yd < GGLint(c->state.scissor.top)) { 83 GGLint offset = GGLint(c->state.scissor.top) - yd; 84 yd = GGLint(c->state.scissor.top); 88 if ((xd + width) > GGLint(c->state.scissor.right)) { 89 width = GGLint(c->state.scissor.right) - xd; 91 if ((yd + height) > GGLint(c->state.scissor.bottom)) [all...] |
trap.cpp | 215 // scissor... 216 if (l < GGLint(c->state.scissor.left)) { 217 xstart += TRI_FROM_INT(c->state.scissor.left-l); 218 l = GGLint(c->state.scissor.left); 220 if (t < GGLint(c->state.scissor.top)) { 221 ystart += TRI_FROM_INT(c->state.scissor.top-t); 222 t = GGLint(c->state.scissor.top); 224 if (r > GGLint(c->state.scissor.right)) { 225 r = GGLint(c->state.scissor.right); 227 if (b > GGLint(c->state.scissor.bottom)) [all...] |
pixelflinger.cpp | 150 c->state.scissor.user_left = x; 151 c->state.scissor.user_top = y; 152 c->state.scissor.user_right = x + width; 153 c->state.scissor.user_bottom = y + height; 599 const int32_t l = c->state.scissor.user_left; 600 const int32_t t = c->state.scissor.user_top; 601 const int32_t r = c->state.scissor.user_right; 602 const int32_t b = c->state.scissor.user_bottom; 603 c->state.scissor.left = max(0, l); 604 c->state.scissor.right = min(c->state.buffers.color.width, r) [all...] |
clear.cpp | 99 const uint32_t l = c->state.scissor.left; 100 const uint32_t t = c->state.scissor.top; 101 uint32_t w = c->state.scissor.right - l; 102 uint32_t h = c->state.scissor.bottom - t;
|
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/i915/ |
i915_state_dynamic.c | 249 * Scissor enable 257 "SCISSOR ENABLE", 265 * Scissor rect 269 unsigned x1 = i915->scissor.minx; 270 unsigned y1 = i915->scissor.miny; 271 unsigned x2 = i915->scissor.maxx - 1; 272 unsigned y2 = i915->scissor.maxy - 1; 283 "SCISSOR RECT",
|
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/svga/ |
svga_pipe_misc.c | 35 const struct pipe_scissor_state *scissor ) 39 memcpy( &svga->curr.scissor, scissor, sizeof(*scissor) );
|
svga_state_framebuffer.c | 458 * Scissor state 464 const struct pipe_scissor_state *scissor = &svga->curr.scissor; local 467 rect.x = scissor->minx; 468 rect.y = scissor->miny; 469 rect.w = scissor->maxx - scissor->minx; /* + 1 ?? */ 470 rect.h = scissor->maxy - scissor->miny; /* + 1 ?? */ 478 "hw scissor state" [all...] |
/external/mesa3d/src/gallium/drivers/i915/ |
i915_state_dynamic.c | 249 * Scissor enable 257 "SCISSOR ENABLE", 265 * Scissor rect 269 unsigned x1 = i915->scissor.minx; 270 unsigned y1 = i915->scissor.miny; 271 unsigned x2 = i915->scissor.maxx - 1; 272 unsigned y2 = i915->scissor.maxy - 1; 283 "SCISSOR RECT",
|
/external/mesa3d/src/gallium/drivers/svga/ |
svga_pipe_misc.c | 35 const struct pipe_scissor_state *scissor ) 39 memcpy( &svga->curr.scissor, scissor, sizeof(*scissor) );
|
svga_state_framebuffer.c | 458 * Scissor state 464 const struct pipe_scissor_state *scissor = &svga->curr.scissor; local 467 rect.x = scissor->minx; 468 rect.y = scissor->miny; 469 rect.w = scissor->maxx - scissor->minx; /* + 1 ?? */ 470 rect.h = scissor->maxy - scissor->miny; /* + 1 ?? */ 478 "hw scissor state" [all...] |