/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/mesa3d/src/mesa/drivers/dri/i965/ |
D | gen7_viewport_state.c | 69 vp[i].viewport.m00 = scale[0]; in gen7_upload_sf_clip_viewport() 70 vp[i].viewport.m11 = scale[1] * y_scale; in gen7_upload_sf_clip_viewport() 71 vp[i].viewport.m22 = scale[2]; in gen7_upload_sf_clip_viewport() 72 vp[i].viewport.m30 = translate[0]; in gen7_upload_sf_clip_viewport() 73 vp[i].viewport.m31 = translate[1] * y_scale + y_bias; in gen7_upload_sf_clip_viewport() 74 vp[i].viewport.m32 = translate[2]; in gen7_upload_sf_clip_viewport() 77 vp[i].viewport.m00, vp[i].viewport.m11, in gen7_upload_sf_clip_viewport() 78 vp[i].viewport.m30, vp[i].viewport.m31, in gen7_upload_sf_clip_viewport()
|
/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/mesa3d/src/mesa/state_tracker/ |
D | st_atom_viewport.c | 70 st->state.viewport[i].scale[0] = scale[0]; in update_viewport() 71 st->state.viewport[i].scale[1] = scale[1] * yScale; in update_viewport() 72 st->state.viewport[i].scale[2] = scale[2]; in update_viewport() 74 st->state.viewport[i].translate[0] = translate[0]; in update_viewport() 75 st->state.viewport[i].translate[1] = translate[1] * yScale + yBias; in update_viewport() 76 st->state.viewport[i].translate[2] = translate[2]; in update_viewport() 79 cso_set_viewport(st->cso_context, &st->state.viewport[0]); in update_viewport() 81 … st->pipe->set_viewport_states(st->pipe, 1, ctx->Const.MaxViewports - 1, &st->state.viewport[1]); in update_viewport()
|
/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/svga/ |
D | svga_state_framebuffer.c | 348 const struct pipe_viewport_state *viewport = &svga->curr.viewport; in emit_viewport() local 364 float fx = viewport->scale[0] * -1.0f + viewport->translate[0]; in emit_viewport() 365 float fy = flip * viewport->scale[1] * -1.0f + viewport->translate[1]; in emit_viewport() 366 float fw = viewport->scale[0] * 2.0f; in emit_viewport() 367 float fh = flip * viewport->scale[1] * 2.0f; in emit_viewport() 407 fx = viewport->scale[0] * 1.0f + viewport->translate[0]; in emit_viewport() 540 range_min = viewport->scale[2] * -1.0f + viewport->translate[2]; in emit_viewport() 541 range_max = viewport->scale[2] * 1.0f + viewport->translate[2]; in emit_viewport() 560 range_min = -0.5f * viewport->scale[2] + 0.5f + viewport->translate[2]; in emit_viewport() 561 range_max = 0.5f * viewport->scale[2] + 0.5f + viewport->translate[2]; in emit_viewport() [all …]
|
/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 | 35 float *vpscale = vc4->viewport.scale; in vc4_emit_state() 36 float *vptranslate = vc4->viewport.translate; in vc4_emit_state() 129 cl_f(&bcl, vc4->viewport.scale[0] * 16.0f); in vc4_emit_state() 130 cl_f(&bcl, vc4->viewport.scale[1] * 16.0f); in vc4_emit_state() 133 cl_f(&bcl, vc4->viewport.translate[2]); in vc4_emit_state() 134 cl_f(&bcl, vc4->viewport.scale[2]); in vc4_emit_state() 137 cl_u16(&bcl, 16 * vc4->viewport.translate[0]); in vc4_emit_state() 138 cl_u16(&bcl, 16 * vc4->viewport.translate[1]); in vc4_emit_state()
|
/external/autotest/client/deps/glbench/src/ |
D | windowmanagertest.cc | 95 GLint viewport[2]; in main() local 96 glGetIntegerv(GL_MAX_VIEWPORT_DIMS, viewport); in main() 97 printf("# MAX_VIEWPORT_DIMS=(%d, %d)\n", viewport[0], viewport[1]); in main() 98 if (viewport[0] < g_width || viewport[1] < g_height) { in main()
|
/external/swiftshader/src/OpenGL/libGL/ |
D | Device.cpp | 491 void Device::setViewport(const Viewport &viewport) in setViewport() argument 493 this->viewport = viewport; in setViewport() 688 if(viewport.width <= 0 || viewport.height <= 0) in bindViewport() 711 scissor.x0 = viewport.x0; in bindViewport() 712 scissor.x1 = viewport.x0 + viewport.width; in bindViewport() 713 scissor.y0 = viewport.y0; in bindViewport() 714 scissor.y1 = viewport.y0 + viewport.height; in bindViewport() 736 view.x0 = (float)viewport.x0; in bindViewport() 737 view.y0 = (float)viewport.y0; in bindViewport() 738 view.width = (float)viewport.width; in bindViewport() [all …]
|
/external/deqp/external/vulkancts/modules/vulkan/draw/ |
D | vktDrawBaseClass.cpp | 157 vk::VkViewport viewport; in initPipeline() local 158 viewport.x = 0; in initPipeline() 159 viewport.y = 0; in initPipeline() 160 viewport.width = static_cast<float>(WIDTH); in initPipeline() 161 viewport.height = static_cast<float>(HEIGHT); in initPipeline() 162 viewport.minDepth = 0.0f; in initPipeline() 163 viewport.maxDepth = 1.0f; in initPipeline() 177 …ate(PipelineCreateInfo::ViewportState(1, std::vector<vk::VkViewport>(1, viewport), std::vector<vk:… in initPipeline()
|
/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()
|