/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 | 173 …RandomViewport viewport (m_renderCtx.getRenderTarget(), VIEWPORT_WIDTH, VIEWPORT_HEIGHT, deStr… in iterate() local 174 tcu::Surface renderedFrame (viewport.width, viewport.height); in iterate() 175 tcu::Surface referenceFrame (viewport.width, viewport.height); in iterate() 178 int leftWidth = viewport.width / 2; in iterate() 179 int rightWidth = viewport.width - leftWidth; in iterate() 212 gl.viewport(viewport.x, viewport.y, leftWidth, viewport.height); in iterate() 217 glu::readPixels(m_renderCtx, viewport.x, viewport.y, renderedFrame.getAccess()); in iterate() 219 …(referenceFrame, m_renderCtx.getRenderTarget().getPixelFormat(), 0, 0, leftWidth, viewport.height), in iterate() 225 gl.viewport(viewport.x+leftWidth, viewport.y, rightWidth, viewport.height); in iterate() 230 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 | 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()
|
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 …]
|
/external/deqp/modules/glshared/ |
D | glsScissorTests.cpp | 192 virtual void render (GLuint program, const IVec4& viewport) const = 0; 221 const RandomViewport viewport (m_renderCtx.getRenderTarget(), 256, 256, deStringHash(getName())); in iterate() local 222 const IVec4 relScissorArea (int(m_scissorArea.x() * (float)viewport.width), in iterate() 223 int(m_scissorArea.y() * (float)viewport.height), in iterate() 224 int(m_scissorArea.z() * (float)viewport.width), in iterate() 225 int(m_scissorArea.w() * (float)viewport.height)); in iterate() 226 const IVec4 absScissorArea (relScissorArea.x() + viewport.x, in iterate() 227 relScissorArea.y() + viewport.y, in iterate() 231 tcu::Surface refImage (viewport.width, viewport.height); in iterate() 232 tcu::Surface resImage (viewport.width, viewport.height); in iterate() [all …]
|
/external/mesa3d/src/mesa/state_tracker/ |
D | st_atom_viewport.c | 58 float *scale = st->state.viewport[i].scale; in st_update_viewport() 59 float *translate = st->state.viewport[i].translate; in st_update_viewport() 70 … st->state.viewport[i].swizzle_x = viewport_swizzle_from_glenum(ctx->ViewportArray[i].SwizzleX); in st_update_viewport() 71 … st->state.viewport[i].swizzle_y = viewport_swizzle_from_glenum(ctx->ViewportArray[i].SwizzleY); in st_update_viewport() 72 … st->state.viewport[i].swizzle_z = viewport_swizzle_from_glenum(ctx->ViewportArray[i].SwizzleZ); in st_update_viewport() 73 … st->state.viewport[i].swizzle_w = viewport_swizzle_from_glenum(ctx->ViewportArray[i].SwizzleW); in st_update_viewport() 76 cso_set_viewport(st->cso_context, &st->state.viewport[0]); in st_update_viewport() 82 &st->state.viewport[1]); in st_update_viewport()
|
/external/mesa3d/src/gallium/drivers/lima/ |
D | lima_state.c | 203 const struct pipe_viewport_state *viewport) in lima_set_viewport_states() argument 208 ctx->viewport.left = viewport->translate[0] - fabsf(viewport->scale[0]); in lima_set_viewport_states() 209 ctx->viewport.right = viewport->translate[0] + fabsf(viewport->scale[0]); in lima_set_viewport_states() 210 ctx->viewport.bottom = viewport->translate[1] - fabsf(viewport->scale[1]); in lima_set_viewport_states() 211 ctx->viewport.top = viewport->translate[1] + fabsf(viewport->scale[1]); in lima_set_viewport_states() 215 near = viewport->translate[2] - viewport->scale[2]; in lima_set_viewport_states() 216 far = viewport->translate[2] + viewport->scale[2]; in lima_set_viewport_states() 218 ctx->viewport.near = MIN2(near, far); in lima_set_viewport_states() 219 ctx->viewport.far = MAX2(near, far); in lima_set_viewport_states() 221 ctx->viewport.transform = *viewport; in lima_set_viewport_states()
|
/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/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/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/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/swiftshader/src/OpenGL/libGLES_CM/ |
D | Device.cpp | 313 void Device::setViewport(const Viewport &viewport) in setViewport() argument 315 this->viewport = viewport; in setViewport() 463 if(viewport.width <= 0 || viewport.height <= 0) in bindViewport() 486 scissor.x0 = viewport.x0; in bindViewport() 487 scissor.x1 = viewport.x0 + viewport.width; in bindViewport() 488 scissor.y0 = viewport.y0; in bindViewport() 489 scissor.y1 = viewport.y0 + viewport.height; in bindViewport() 519 view.x0 = (float)viewport.x0; in bindViewport() 520 view.y0 = (float)viewport.y0; in bindViewport() 521 view.width = (float)viewport.width; in bindViewport() [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/src/gpu/vk/ |
D | GrVkMSAALoadManager.cpp | 155 VkViewport viewport; in loadMSAAFromResolve() local 156 viewport.x = 0.0f; in loadMSAAFromResolve() 157 viewport.y = 0.0f; in loadMSAAFromResolve() 158 viewport.width = SkIntToScalar(dst->width()); in loadMSAAFromResolve() 159 viewport.height = SkIntToScalar(dst->height()); in loadMSAAFromResolve() 160 viewport.minDepth = 0.0f; in loadMSAAFromResolve() 161 viewport.maxDepth = 1.0f; in loadMSAAFromResolve() 162 commandBuffer->setViewport(gpu, 0, 1, &viewport); in loadMSAAFromResolve()
|
/external/mesa3d/src/gallium/auxiliary/vl/ |
D | vl_compositor_cs.c | 634 result.x0 = tl.x * layer->viewport.scale[0] + layer->viewport.translate[0]; in calc_drawn_area() 635 result.y0 = tl.y * layer->viewport.scale[1] + layer->viewport.translate[1]; in calc_drawn_area() 636 result.x1 = br.x * layer->viewport.scale[0] + layer->viewport.translate[0]; in calc_drawn_area() 637 result.y1 = br.y * layer->viewport.scale[1] + layer->viewport.translate[1]; in calc_drawn_area() 713 drawn.scale_x = layer->viewport.scale[0] / in draw_layers() 716 drawn.scale_y = layer->viewport.scale[1] / in draw_layers() 721 drawn.translate_x = (int)layer->viewport.translate[0]; in draw_layers() 722 drawn.translate_y = (int)layer->viewport.translate[1]; in draw_layers()
|
/external/angle/src/tests/egl_tests/ |
D | EGLSurfaceTestMac.mm | 125 // Test Mac's layer's content scale > 1 and check the initial viewport is set correctly. 131 GLint viewport[4]; 132 glGetIntegerv(GL_VIEWPORT, viewport); 133 ASSERT_EQ(viewport[0], 0); 134 ASSERT_EQ(viewport[1], 0); 135 ASSERT_EQ(viewport[2], kWindowWidth * contentsScale); 136 ASSERT_EQ(viewport[3], kWindowHeight * contentsScale);
|
/external/mesa3d/src/gallium/drivers/freedreno/a2xx/ |
D | fd2_emit.c | 208 OUT_RING(ring, fui(ctx->viewport.translate[0])); in fd2_emit_state_binning() 209 OUT_RING(ring, fui(ctx->viewport.translate[1])); in fd2_emit_state_binning() 210 OUT_RING(ring, fui(ctx->viewport.translate[2])); in fd2_emit_state_binning() 212 OUT_RING(ring, fui(ctx->viewport.scale[0])); in fd2_emit_state_binning() 213 OUT_RING(ring, fui(ctx->viewport.scale[1])); in fd2_emit_state_binning() 214 OUT_RING(ring, fui(ctx->viewport.scale[2])); in fd2_emit_state_binning() 332 OUT_RING(ring, fui(ctx->viewport.scale[0])); /* PA_CL_VPORT_XSCALE */ in fd2_emit_state() 333 OUT_RING(ring, fui(ctx->viewport.translate[0])); /* PA_CL_VPORT_XOFFSET */ in fd2_emit_state() 334 OUT_RING(ring, fui(ctx->viewport.scale[1])); /* PA_CL_VPORT_YSCALE */ in fd2_emit_state() 335 OUT_RING(ring, fui(ctx->viewport.translate[1])); /* PA_CL_VPORT_YOFFSET */ in fd2_emit_state() [all …]
|