/external/deqp/modules/gles2/functional/ |
D | es2fTextureFormatTests.cpp | 142 …RandomViewport viewport (m_renderCtx.getRenderTarget(), m_width, m_height, deStringHash(getNam… in iterate() local 143 tcu::Surface renderedFrame (viewport.width, viewport.height); in iterate() 144 tcu::Surface referenceFrame (viewport.width, viewport.height); in iterate() 170 gl.viewport(viewport.x, viewport.y, viewport.width, viewport.height); in iterate() 189 glu::readPixels(m_renderCtx, viewport.x, viewport.y, renderedFrame.getAccess()); in iterate() 318 …RandomViewport viewport (m_renderCtx.getRenderTarget(), m_width, m_height, deStringHash(getNam… in testFace() local 319 tcu::Surface renderedFrame (viewport.width, viewport.height); in testFace() 320 tcu::Surface referenceFrame (viewport.width, viewport.height); in testFace() 342 gl.viewport(viewport.x, viewport.y, viewport.width, viewport.height); in testFace() 357 glu::readPixels(m_renderCtx, viewport.x, viewport.y, renderedFrame.getAccess()); in testFace() [all …]
|
D | es2fTextureSizeTests.cpp | 122 RandomViewport viewport (m_renderCtx.getRenderTarget(), 128, 128, deStringHash(getName())); in iterate() local 123 tcu::Surface renderedFrame (viewport.width, viewport.height); in iterate() 124 tcu::Surface referenceFrame (viewport.width, viewport.height); in iterate() 140 gl.viewport(viewport.x, viewport.y, viewport.width, viewport.height); in iterate() 157 glu::readPixels(m_renderCtx, viewport.x, viewport.y, renderedFrame.getAccess()); in iterate() 270 …RandomViewport viewport (m_renderCtx.getRenderTarget(), 128, 128, deStringHash(getName())+(deUi… in testFace() local 271 tcu::Surface renderedFrame (viewport.width, viewport.height); in testFace() 272 tcu::Surface referenceFrame (viewport.width, viewport.height); in testFace() 291 gl.viewport(viewport.x, viewport.y, viewport.width, viewport.height); in testFace() 304 glu::readPixels(m_renderCtx, viewport.x, viewport.y, renderedFrame.getAccess()); in testFace()
|
D | es2fTextureWrapTests.cpp | 164 …RandomViewport viewport (m_renderCtx.getRenderTarget(), VIEWPORT_WIDTH, VIEWPORT_HEIGHT, deStr… in iterate() local 165 tcu::Surface renderedFrame (viewport.width, viewport.height); in iterate() 166 tcu::Surface referenceFrame (viewport.width, viewport.height); in iterate() 169 int leftWidth = viewport.width / 2; in iterate() 170 int rightWidth = viewport.width - leftWidth; in iterate() 193 gl.viewport(viewport.x, viewport.y, leftWidth, viewport.height); in iterate() 198 glu::readPixels(m_renderCtx, viewport.x, viewport.y, renderedFrame.getAccess()); in iterate() 200 …(referenceFrame, m_renderCtx.getRenderTarget().getPixelFormat(), 0, 0, leftWidth, viewport.height), in iterate() 206 gl.viewport(viewport.x+leftWidth, viewport.y, rightWidth, viewport.height); in iterate() 211 glu::readPixels(m_renderCtx, viewport.x, viewport.y, renderedFrame.getAccess()); in iterate() [all …]
|
D | es2fTextureMipmapTests.cpp | 261 …const RandomViewport viewport (m_renderCtx.getRenderTarget(), defViewportWidth, defViewportHeig… in iterate() local 268 tcu::Surface renderedFrame (viewport.width, viewport.height); in iterate() 273 int cellWidth = viewport.width / gridWidth; in iterate() 274 int cellHeight = viewport.height / gridHeight; in iterate() 277 if (viewport.width < defViewportWidth/2 || viewport.height < defViewportHeight/2) in iterate() 317 const int curW = gridX+1 == gridWidth ? (viewport.width-curX) : cellWidth; in iterate() 318 const int curH = gridY+1 == gridHeight ? (viewport.height-curY) : cellHeight; in iterate() 338 gl.viewport(viewport.x+curX, viewport.y+curY, curW, curH); in iterate() 344 glu::readPixels(m_renderCtx, viewport.x, viewport.y, renderedFrame.getAccess()); in iterate() 350 tcu::Surface referenceFrame (viewport.width, viewport.height); in iterate() [all …]
|
/external/deqp/modules/gles3/functional/ |
D | es3fTextureFormatTests.cpp | 179 …RandomViewport viewport (m_renderCtx.getRenderTarget(), m_width, m_height, deStringHash(getNam… in iterate() local 180 tcu::Surface renderedFrame (viewport.width, viewport.height); in iterate() 181 tcu::Surface referenceFrame (viewport.width, viewport.height); in iterate() 207 gl.viewport(viewport.x, viewport.y, viewport.width, viewport.height); in iterate() 226 glu::readPixels(m_renderCtx, viewport.x, viewport.y, renderedFrame.getAccess()); in iterate() 374 …RandomViewport viewport (m_renderCtx.getRenderTarget(), m_width, m_height, deStringHash(getNam… in testFace() local 375 tcu::Surface renderedFrame (viewport.width, viewport.height); in testFace() 376 tcu::Surface referenceFrame (viewport.width, viewport.height); in testFace() 398 gl.viewport(viewport.x, viewport.y, viewport.width, viewport.height); in testFace() 413 glu::readPixels(m_renderCtx, viewport.x, viewport.y, renderedFrame.getAccess()); in testFace() [all …]
|
D | es3fTextureSizeTests.cpp | 123 RandomViewport viewport (m_renderCtx.getRenderTarget(), 128, 128, deStringHash(getName())); in iterate() local 124 tcu::Surface renderedFrame (viewport.width, viewport.height); in iterate() 125 tcu::Surface referenceFrame (viewport.width, viewport.height); in iterate() 141 gl.viewport(viewport.x, viewport.y, viewport.width, viewport.height); in iterate() 158 glu::readPixels(m_renderCtx, viewport.x, viewport.y, renderedFrame.getAccess()); in iterate() 271 …RandomViewport viewport (m_renderCtx.getRenderTarget(), 128, 128, deStringHash(getName())+(deUi… in testFace() local 272 tcu::Surface renderedFrame (viewport.width, viewport.height); in testFace() 273 tcu::Surface referenceFrame (viewport.width, viewport.height); in testFace() 292 gl.viewport(viewport.x, viewport.y, viewport.width, viewport.height); in testFace() 305 glu::readPixels(m_renderCtx, viewport.x, viewport.y, renderedFrame.getAccess()); in testFace()
|
D | es3fTextureMipmapTests.cpp | 305 …const RandomViewport viewport (m_renderCtx.getRenderTarget(), defViewportWidth, defViewportHeig… in iterate() local 312 tcu::Surface renderedFrame (viewport.width, viewport.height); in iterate() 317 int cellWidth = viewport.width / gridWidth; in iterate() 318 int cellHeight = viewport.height / gridHeight; in iterate() 321 if (viewport.width < defViewportWidth/2 || viewport.height < defViewportHeight/2) in iterate() 361 const int curW = gridX+1 == gridWidth ? (viewport.width-curX) : cellWidth; in iterate() 362 const int curH = gridY+1 == gridHeight ? (viewport.height-curY) : cellHeight; in iterate() 382 gl.viewport(viewport.x+curX, viewport.y+curY, curW, curH); in iterate() 388 glu::readPixels(m_renderCtx, viewport.x, viewport.y, renderedFrame.getAccess()); in iterate() 394 tcu::Surface referenceFrame (viewport.width, viewport.height); in iterate() [all …]
|
D | es3fTextureShadowTests.cpp | 328 …const RandomViewport viewport (m_context.getRenderTarget(), TEX2D_VIEWPORT_WIDTH, TEX2D_VIEWPOR… in iterate() local 332 tcu::Surface rendered (viewport.width, viewport.height); in iterate() 335 if (viewport.width < TEX2D_MIN_VIEWPORT_WIDTH || viewport.height < TEX2D_MIN_VIEWPORT_HEIGHT) in iterate() 359 gl.viewport(viewport.x, viewport.y, viewport.width, viewport.height); in iterate() 361 glu::readPixels(m_context.getRenderContext(), viewport.x, viewport.y, rendered.getAccess()); in iterate() 601 …const RandomViewport viewport (m_context.getRenderTarget(), viewportSize, viewportSize, deStrin… in iterate() local 606 if (viewport.width < viewportSize || viewport.height < viewportSize) in iterate() 619 gl.viewport(viewport.x, viewport.y, viewport.width, viewport.height); in iterate() 638 tcu::Surface result (viewport.width, viewport.height); in iterate() 650 glu::readPixels(m_context.getRenderContext(), viewport.x, viewport.y, result.getAccess()); in iterate() [all …]
|
D | es3fTextureFilteringTests.cpp | 283 …const RandomViewport viewport (m_renderCtx.getRenderTarget(), TEX2D_VIEWPORT_WIDTH, TEX2D_VIEWPO… in iterate() local 289 tcu::Surface rendered (viewport.width, viewport.height); in iterate() 292 if (viewport.width < TEX2D_MIN_VIEWPORT_WIDTH || viewport.height < TEX2D_MIN_VIEWPORT_HEIGHT) in iterate() 312 gl.viewport(viewport.x, viewport.y, viewport.width, viewport.height); in iterate() 314 glu::readPixels(m_renderCtx, viewport.x, viewport.y, rendered.getAccess()); in iterate() 583 …const RandomViewport viewport (m_renderCtx.getRenderTarget(), viewportSize, viewportSize, deStr… in iterate() local 590 if (viewport.width < viewportSize || viewport.height < viewportSize) in iterate() 601 gl.viewport(viewport.x, viewport.y, viewport.width, viewport.height); in iterate() 616 tcu::Surface result (viewport.width, viewport.height); in iterate() 628 glu::readPixels(m_renderCtx, viewport.x, viewport.y, result.getAccess()); in iterate() [all …]
|
D | es3fTextureSwizzleTests.cpp | 149 …RandomViewport viewport (m_context.getRenderContext().getRenderTarget(), m_texture->getRefText… in iterate() local 150 tcu::Surface renderedFrame (viewport.width, viewport.height); in iterate() 151 tcu::Surface referenceFrame (viewport.width, viewport.height); in iterate() 165 gl.viewport(viewport.x, viewport.y, viewport.width, viewport.height); in iterate() 190 glu::readPixels(m_context.getRenderContext(), viewport.x, viewport.y, renderedFrame.getAccess()); in iterate()
|
/external/deqp/modules/glshared/ |
D | glsScissorTests.cpp | 178 virtual void render (GLuint program, const IVec4& viewport) const = 0; 204 const RandomViewport viewport (m_renderCtx.getRenderTarget(), 256, 256, deStringHash(getName())); in iterate() local 205 const IVec4 relScissorArea (int(m_scissorArea.x() * (float)viewport.width), in iterate() 206 int(m_scissorArea.y() * (float)viewport.height), in iterate() 207 int(m_scissorArea.z() * (float)viewport.width), in iterate() 208 int(m_scissorArea.w() * (float)viewport.height)); in iterate() 209 const IVec4 absScissorArea (relScissorArea.x() + viewport.x, in iterate() 210 relScissorArea.y() + viewport.y, in iterate() 214 tcu::Surface refImage (viewport.width, viewport.height); in iterate() 215 tcu::Surface resImage (viewport.width, viewport.height); in iterate() [all …]
|
/external/deqp/modules/gles2/accuracy/ |
D | es2aTextureFilteringTests.cpp | 200 …RandomViewport viewport (m_renderCtx.getRenderTarget(), defViewportWidth, defViewportHeight, … in iterate() local 201 tcu::Surface renderedFrame (viewport.width, viewport.height); in iterate() 202 tcu::Surface referenceFrame (viewport.width, viewport.height); in iterate() 209 if (viewport.width < defViewportWidth || viewport.height < defViewportHeight) in iterate() 213 int leftWidth = viewport.width / 2; in iterate() 214 int rightWidth = viewport.width - leftWidth; in iterate() 215 int bottomHeight = viewport.height / 2; in iterate() 216 int topHeight = viewport.height - bottomHeight; in iterate() 239 gl.viewport(viewport.x, viewport.y, leftWidth, bottomHeight); in iterate() 250 gl.viewport(viewport.x+leftWidth, viewport.y, rightWidth, bottomHeight); in iterate() [all …]
|
D | es2aTextureMipmapTests.cpp | 263 …RandomViewport viewport (m_renderCtx.getRenderTarget(), defViewportWidth, defViewportHeight, … in iterate() local 269 tcu::Surface renderedFrame (viewport.width, viewport.height); in iterate() 272 tcu::Surface idealFrame (viewport.width, viewport.height); in iterate() 277 int cellWidth = viewport.width / gridWidth; in iterate() 278 int cellHeight = viewport.height / gridHeight; in iterate() 281 if (viewport.width < defViewportWidth || viewport.height < defViewportHeight) in iterate() 325 int curW = gridX+1 == gridWidth ? (viewport.width-curX) : cellWidth; in iterate() 326 int curH = gridY+1 == gridHeight ? (viewport.height-curY) : cellHeight; in iterate() 346 gl.viewport(viewport.x+curX, viewport.y+curY, curW, curH); in iterate() 359 glu::readPixels(m_renderCtx, viewport.x, viewport.y, renderedFrame.getAccess()); in iterate() [all …]
|
/external/deqp/modules/gles3/accuracy/ |
D | es3aTextureFilteringTests.cpp | 190 …RandomViewport viewport (m_renderCtx.getRenderTarget(), defViewportWidth, defViewportHeight, … in iterate() local 191 tcu::Surface renderedFrame (viewport.width, viewport.height); in iterate() 192 tcu::Surface referenceFrame (viewport.width, viewport.height); in iterate() 199 if (viewport.width < defViewportWidth || viewport.height < defViewportHeight) in iterate() 203 int leftWidth = viewport.width / 2; in iterate() 204 int rightWidth = viewport.width - leftWidth; in iterate() 205 int bottomHeight = viewport.height / 2; in iterate() 206 int topHeight = viewport.height - bottomHeight; in iterate() 229 gl.viewport(viewport.x, viewport.y, leftWidth, bottomHeight); in iterate() 240 gl.viewport(viewport.x+leftWidth, viewport.y, rightWidth, bottomHeight); in iterate() [all …]
|
D | es3aTextureMipmapTests.cpp | 254 …RandomViewport viewport (m_renderCtx.getRenderTarget(), defViewportWidth, defViewportHeight, … in iterate() local 261 tcu::Surface renderedFrame (viewport.width, viewport.height); in iterate() 264 tcu::Surface idealFrame (viewport.width, viewport.height); in iterate() 269 int cellWidth = viewport.width / gridWidth; in iterate() 270 int cellHeight = viewport.height / gridHeight; in iterate() 273 if (viewport.width < defViewportWidth || viewport.height < defViewportHeight) in iterate() 317 int curW = gridX+1 == gridWidth ? (viewport.width-curX) : cellWidth; in iterate() 318 int curH = gridY+1 == gridHeight ? (viewport.height-curY) : cellHeight; in iterate() 338 gl.viewport(viewport.x+curX, viewport.y+curY, curW, curH); in iterate() 351 glu::readPixels(m_renderCtx, viewport.x, viewport.y, renderedFrame.getAccess()); in iterate() [all …]
|
/external/deqp/modules/gles31/functional/ |
D | es31fTextureFormatTests.cpp | 200 …RandomViewport viewport (m_renderCtx.getRenderTarget(), m_size, m_size, deStringHash(getName())… in testLayerFace() local 201 tcu::Surface renderedFrame (viewport.width, viewport.height); in testLayerFace() 202 tcu::Surface referenceFrame (viewport.width, viewport.height); in testLayerFace() 221 gl.viewport(viewport.x, viewport.y, viewport.width, viewport.height); in testLayerFace() 240 glu::readPixels(m_renderCtx, viewport.x, viewport.y, renderedFrame.getAccess()); in testLayerFace() 350 …RandomViewport viewport (m_renderCtx.getRenderTarget(), m_width, 1, deStringHash(getName()… in iterate() local 351 tcu::Surface renderedFrame (viewport.width, viewport.height); in iterate() 352 tcu::Surface referenceFrame (viewport.width, viewport.height); in iterate() 371 gl.viewport(viewport.x, viewport.y, viewport.width, viewport.height); in iterate() 384 glu::readPixels(m_renderCtx, viewport.x, viewport.y, renderedFrame.getAccess()); in iterate()
|
/external/swiftshader/src/OpenGL/libGLES_CM/ |
D | Device.cpp | 313 void Device::setViewport(const Viewport &viewport) in setViewport() argument 315 this->viewport = viewport; in setViewport() 465 if(viewport.width <= 0 || viewport.height <= 0) in bindViewport() 488 scissor.x0 = viewport.x0; in bindViewport() 489 scissor.x1 = viewport.x0 + viewport.width; in bindViewport() 490 scissor.y0 = viewport.y0; in bindViewport() 491 scissor.y1 = viewport.y0 + viewport.height; in bindViewport() 521 view.x0 = (float)viewport.x0; in bindViewport() 522 view.y0 = (float)viewport.y0; in bindViewport() 523 view.width = (float)viewport.width; in bindViewport() [all …]
|
/external/mesa3d/src/gallium/drivers/vc4/ |
D | vc4_emit.c | 34 float *vpscale = vc4->viewport.scale; in vc4_emit_state() 35 float *vptranslate = vc4->viewport.translate; in vc4_emit_state() 124 vc4->viewport.scale[0] * 16.0f; in vc4_emit_state() 126 vc4->viewport.scale[1] * 16.0f; in vc4_emit_state() 131 vc4->viewport.translate[2]; in vc4_emit_state() 133 vc4->viewport.scale[2]; in vc4_emit_state() 138 vc4->viewport.translate[0]; in vc4_emit_state() 140 vc4->viewport.translate[1]; in vc4_emit_state()
|
/external/mesa3d/src/gallium/drivers/svga/ |
D | svga_state_framebuffer.c | 390 const struct pipe_viewport_state *viewport = &svga->curr.viewport; in emit_viewport() local 406 float fx = viewport->scale[0] * -1.0f + viewport->translate[0]; in emit_viewport() 407 float fy = flip * viewport->scale[1] * -1.0f + viewport->translate[1]; in emit_viewport() 408 float fw = viewport->scale[0] * 2.0f; in emit_viewport() 409 float fh = flip * viewport->scale[1] * 2.0f; in emit_viewport() 449 fx = viewport->scale[0] * 1.0f + viewport->translate[0]; in emit_viewport() 575 range_min = viewport->scale[2] * -1.0f + viewport->translate[2]; in emit_viewport() 576 range_max = viewport->scale[2] * 1.0f + viewport->translate[2]; in emit_viewport() 595 range_min = -0.5f * viewport->scale[2] + 0.5f + viewport->translate[2]; in emit_viewport() 596 range_max = 0.5f * viewport->scale[2] + 0.5f + viewport->translate[2]; in emit_viewport() [all …]
|
/external/skqp/gm/ |
D | 3dgm.cpp | 62 static void draw_viewport(SkCanvas* canvas, const SkMatrix& viewport) { in draw_viewport() argument 67 canvas->concat(viewport); in draw_viewport() 111 SkMatrix viewport; in onDraw() local 117 viewport.setTranslate(1, -1); in onDraw() 118 viewport.postScale(s/2, -s/2); in onDraw() 120 draw_viewport(canvas, viewport); in onDraw() 129 viewport.mapPoints(pts, 8); in onDraw() 164 viewport.mapPoints(dst, 4); in onDraw() 176 draw_skia(canvas, mv, viewport, fAnim.get()); in onDraw()
|
/external/skia/gm/ |
D | 3dgm.cpp | 62 static void draw_viewport(SkCanvas* canvas, const SkMatrix& viewport) { in draw_viewport() argument 67 canvas->concat(viewport); in draw_viewport() 112 SkMatrix viewport; in onDraw() local 118 viewport.setTranslate(1, -1); in onDraw() 119 viewport.postScale(s/2, -s/2); in onDraw() 121 draw_viewport(canvas, viewport); in onDraw() 130 viewport.mapPoints(pts, 8); in onDraw() 165 viewport.mapPoints(dst, 4); in onDraw() 177 draw_skia(canvas, mv, viewport, fAnim.get()); in onDraw()
|
/external/autotest/client/deps/glbench/src/ |
D | windowmanagertest.cc | 93 GLint viewport[2]; in main() local 94 glGetIntegerv(GL_MAX_VIEWPORT_DIMS, viewport); in main() 95 printf("# MAX_VIEWPORT_DIMS=(%d, %d)\n", viewport[0], viewport[1]); in main() 96 if (viewport[0] < g_width || viewport[1] < g_height) { in main()
|
/external/u-boot/doc/ |
D | README.omap-ulpi-viewport | 1 Reference code ""drivers/usb/ulpi/omap-ulpi-viewport.c" 11 omap-ulpi-viewport.c is a low level function 14 To enable and use omap-ulpi-viewport.c 20 omap-ulpi-viewport implementation. 25 the ulpi phy reset does ulpi_read/write from viewport
|
/external/mesa3d/src/mesa/state_tracker/ |
D | st_atom_viewport.c | 51 float *scale = st->state.viewport[i].scale; in st_update_viewport() 52 float *translate = st->state.viewport[i].translate; in st_update_viewport() 64 cso_set_viewport(st->cso_context, &st->state.viewport[0]); in st_update_viewport() 70 &st->state.viewport[1]); in st_update_viewport()
|
/external/mesa3d/src/gallium/tests/trivial/ |
D | tri.c | 71 struct pipe_viewport_state viewport; member 188 p->viewport.scale[0] = half_width; in init_prog() 189 p->viewport.scale[1] = half_height * scale; in init_prog() 190 p->viewport.scale[2] = half_depth; in init_prog() 192 p->viewport.translate[0] = half_width + x; in init_prog() 193 p->viewport.translate[1] = (half_height + y) * scale + bias; in init_prog() 194 p->viewport.translate[2] = half_depth + z; in init_prog() 252 cso_set_viewport(p->cso, &p->viewport); in draw()
|