/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 );
|
/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...] |
/external/chromium_org/third_party/angle/src/libGLESv2/renderer/d3d/d3d11/ |
Clear11.cpp | 31 static void ApplyVertices(const gl::Extents &framebufferSize, const gl::Rectangle *scissor, const gl::Color<T> &color, float depth, void *buffer) 41 // Clip the quad coordinates to the scissor if needed 42 if (scissor != NULL) 44 left = std::max(left, (scissor->x / float(framebufferSize.width)) * 2.0f - 1.0f); 45 right = std::min(right, ((scissor->x + scissor->width) / float(framebufferSize.width)) * 2.0f - 1.0f); 46 top = std::max(top, ((framebufferSize.height - scissor->y - scissor->height) / float(framebufferSize.height)) * 2.0f - 1.0f); 47 bottom = std::min(bottom, ((framebufferSize.height - scissor->y) / float(framebufferSize.height)) * 2.0f - 1.0f); 189 if (clearParams.scissorEnabled && (clearParams.scissor.x >= framebufferSize.width || [all...] |
Blit11.h | 38 const gl::Rectangle *scissor, GLenum destFormat, GLenum filter); 42 const gl::Rectangle *scissor); 46 const gl::Rectangle *scissor); 50 const gl::Rectangle *scissor); 64 const gl::Rectangle *scissor, bool stencilOnly);
|
/external/deqp/modules/gles3/functional/ |
es3fRasterizerDiscardTests.cpp | 286 log << TestLog::Message << "Scissor test enabled: glScissor(0, 0, " << renderTarget.getWidth() << ", " << renderTarget.getHeight() << ")" << TestLog::EndMessage; 435 tcu::TestCaseGroup* scissor = new tcu::TestCaseGroup(m_testCtx, "scissor", "Rasterizer discard test for default framebuffer with scissor test enabled"); local 439 addChild(scissor); 464 // Default framebuffer cases with scissor test enabled 466 scissor->addChild(new RasterizerDiscardCase(m_context, "write_depth_points", "points", 4, CASE_WRITE_DEPTH, CASEOPTION_SCISSOR, GL_POINTS)); 467 scissor->addChild(new RasterizerDiscardCase(m_context, "write_depth_lines", "lines", 4, CASE_WRITE_DEPTH, CASEOPTION_SCISSOR, GL_LINES)); 468 scissor->addChild(new RasterizerDiscardCase(m_context, "write_depth_line_strip", "line_strip", 4, CASE_WRITE_DEPTH, CASEOPTION_SCISSOR, GL_LINE_STRIP)); 469 scissor->addChild(new RasterizerDiscardCase(m_context, "write_depth_line_loop", "line_loop", 4, CASE_WR (…) [all...] |
es3fDepthStencilClearTests.cpp | 73 , scissor (0, 0, 0, 0) 84 tcu::IVec4 scissor; member in struct:deqp::gles3::Functional::__anon3705::Clear 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) 149 , m_testScissor (scissor) 249 clear->scissor = tcu::IVec4(x, y, w, h); 299 gl.scissor(clear->scissor.x(), clear->scissor.y(), clear->scissor.z(), clear->scissor.w()) [all...] |
/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) );
|
/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) );
|
/external/deqp/modules/gles2/functional/ |
es2fDepthStencilClearTests.cpp | 73 , scissor (0, 0, 0, 0) 84 tcu::IVec4 scissor; member in struct:deqp::gles2::Functional::__anon3576::Clear 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) 149 , m_testScissor (scissor) 246 clear->scissor = tcu::IVec4(x, y, w, h); 296 gl.scissor(clear->scissor.x(), clear->scissor.y(), clear->scissor.z(), clear->scissor.w()) [all...] |