/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...] |
st_cb_clear.c | 313 /* draw quad matching scissor rect */ 338 if (ctx->Scissor.Enabled && 339 (ctx->Scissor.X != 0 || 340 ctx->Scissor.Y != 0 || 341 ctx->Scissor.Width < rb->Width || 342 ctx->Scissor.Height < rb->Height)) 368 if (ctx->Scissor.Enabled && 369 (ctx->Scissor.X != 0 || 370 ctx->Scissor.Y != 0 || 371 ctx->Scissor.Width < rb->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...] |
st_cb_clear.c | 313 /* draw quad matching scissor rect */ 338 if (ctx->Scissor.Enabled && 339 (ctx->Scissor.X != 0 || 340 ctx->Scissor.Y != 0 || 341 ctx->Scissor.Width < rb->Width || 342 ctx->Scissor.Height < rb->Height)) 368 if (ctx->Scissor.Enabled && 369 (ctx->Scissor.X != 0 || 370 ctx->Scissor.Y != 0 || 371 ctx->Scissor.Width < rb->Width | [all...] |
/external/chromium_org/third_party/mesa/src/src/mesa/main/ |
scissor.c | 29 #include "main/scissor.h" 54 * Define the scissor box. 56 * \param x, y coordinates of the scissor box lower-left corner. 57 * \param width width of the scissor box. 58 * \param height height of the scissor box. 62 * Verifies the parameters and updates __struct gl_contextRec::Scissor. On a 64 * the dd_function_table::Scissor callback. 70 if (x == ctx->Scissor.X && 71 y == ctx->Scissor.Y && 72 width == ctx->Scissor.Width & [all...] |
/external/mesa3d/src/mesa/main/ |
scissor.c | 29 #include "main/scissor.h" 54 * Define the scissor box. 56 * \param x, y coordinates of the scissor box lower-left corner. 57 * \param width width of the scissor box. 58 * \param height height of the scissor box. 62 * Verifies the parameters and updates __struct gl_contextRec::Scissor. On a 64 * the dd_function_table::Scissor callback. 70 if (x == ctx->Scissor.X && 71 y == ctx->Scissor.Y && 72 width == 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/deqp/modules/gles2/functional/ |
es2fScissorTests.cpp | 21 * \brief GLES2 Scissor tests. 40 : TestCaseGroup (context, "scissor", "Scissor Tests") 60 const tcu::Vec4 scissor; member in struct:deqp::gles2::Functional::__anon23704 66 { "contained_tris", "Triangles fully inside scissor area (single call)", Vec4(0.1f, 0.1f, 0.8f, 0.8f), Vec4(0.2f, 0.2f, 0.6f, 0.6f), TRIANGLE, 30 }, 67 { "partial_tris", "Triangles partially inside scissor area (single call)", Vec4(0.3f, 0.3f, 0.4f, 0.4f), Vec4(0.2f, 0.2f, 0.6f, 0.6f), TRIANGLE, 30 }, 68 { "contained_tri", "Triangle fully inside scissor area", Vec4(0.1f, 0.1f, 0.8f, 0.8f), Vec4(0.2f, 0.2f, 0.6f, 0.6f), TRIANGLE, 1 }, 69 { "enclosing_tri", "Triangle fully covering scissor area", Vec4(0.4f, 0.4f, 0.2f, 0.2f), Vec4(0.2f, 0.2f, 0.6f, 0.6f), TRIANGLE, 1 }, 70 { "partial_tri", "Triangle partially inside scissor area", Vec4(0.4f, 0.4f, 0.6f, 0.6f), Vec4(0.0f, 0.0f, 1.0f, 1.0f), TRIANGLE, 1 }, 71 { "outside_render_tri", "Triangle with scissor area outside render target", Vec4(1.4f, 1.4f, 0.6f, 0.6f), Vec4(0.0f, 0.0f, 0.6f, 0.6f), TRIANGL (…) [all...] |
/external/deqp/modules/gles3/functional/ |
es3fScissorTests.cpp | 21 * \brief GLES3 Scissor tests 50 TestCaseGroup (context, "scissor", "Scissor Tests") 70 const tcu::Vec4 scissor; member in struct:deqp::gles3::Functional::__anon23855 76 { "contained_quads", "Triangles fully inside scissor area (single call)", Vec4(0.1f, 0.1f, 0.8f, 0.8f), Vec4(0.2f, 0.2f, 0.6f, 0.6f), TRIANGLE, 30 }, 77 { "partial_quads", "Triangles partially inside scissor area (single call)", Vec4(0.3f, 0.3f, 0.4f, 0.4f), Vec4(0.2f, 0.2f, 0.6f, 0.6f), TRIANGLE, 30 }, 78 { "contained_tri", "Triangle fully inside scissor area", Vec4(0.1f, 0.1f, 0.8f, 0.8f), Vec4(0.2f, 0.2f, 0.6f, 0.6f), TRIANGLE, 1 }, 79 { "enclosing_tri", "Triangle fully covering scissor area", Vec4(0.4f, 0.4f, 0.2f, 0.2f), Vec4(0.2f, 0.2f, 0.6f, 0.6f), TRIANGLE, 1 }, 80 { "partial_tri", "Triangle partially inside scissor area", Vec4(0.4f, 0.4f, 0.6f, 0.6f), Vec4(0.0f, 0.0f, 1.0f, 1.0f), TRIANGLE, 1 }, 81 { "outside_render_tri", "Triangle with scissor area outside render target", Vec4(1.4f, 1.4f, 0.6f, 0.6f), Vec4(0.0f, 0.0f, 0.6f, 0.6f), TRIANGL (…) [all...] |
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...] |
/external/deqp/doc/testspecs/GLES2/ |
functional.scissors.txt | 22 + dEQP-GLES2.functional.scissor.* 23 + dEQP-GLES3.functional.scissor.* 32 + Scissor configurations 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
|
/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/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/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/chromium_org/third_party/angle/src/libGLESv2/renderer/d3d11/ |
Blit11.h | 36 const gl::Rectangle *scissor, GLenum destFormat, GLenum filter); 40 const gl::Rectangle *scissor); 44 const gl::Rectangle *scissor); 48 const gl::Rectangle *scissor); 62 const gl::Rectangle *scissor, bool stencilOnly);
|
Clear11.cpp | 32 static void ApplyVertices(const gl::Extents &framebufferSize, const gl::Rectangle *scissor, const gl::Color<T> &color, float depth, void *buffer) 42 // Clip the quad coordinates to the scissor if needed 43 if (scissor != NULL) 45 left = std::max(left, (scissor->x / float(framebufferSize.width)) * 2.0f - 1.0f); 46 right = std::min(right, ((scissor->x + scissor->width) / float(framebufferSize.width)) * 2.0f - 1.0f); 47 top = std::max(top, ((framebufferSize.height - scissor->y - scissor->height) / float(framebufferSize.height)) * 2.0f - 1.0f); 48 bottom = std::min(bottom, ((framebufferSize.height - scissor->y) / float(framebufferSize.height)) * 2.0f - 1.0f); 190 if (clearParams.scissorEnabled && (clearParams.scissor.x >= framebufferSize.width || [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 */
|
/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 */
|
/external/mesa3d/src/gallium/drivers/llvmpipe/ |
lp_state_clip.c | 62 const struct pipe_scissor_state *scissor) 68 llvmpipe->scissor = *scissor; /* struct copy */
|
/external/mesa3d/src/gallium/drivers/softpipe/ |
sp_state_clip.c | 62 const struct pipe_scissor_state *scissor) 68 softpipe->scissor = *scissor; /* struct copy */
|
/external/chromium_org/android_webview/public/browser/ |
draw_gl.h | 27 // of the OpenGL scissor rect. Both the OpenGL scissor rect and viewport are 40 // the scissor box set by the caller to the actual View location and size. 49 // The viewport and scissor box are set by the caller to the whole surface.
|