/external/angle/src/tests/gl_tests/ |
D | ViewportTest.cpp | 55 GLint viewportSize[4]; in runTest() local 56 glGetIntegerv(GL_VIEWPORT, viewportSize); in runTest() 66 GLint centerViewportX = viewportSize[0] + (viewportSize[2] / 2); in runTest() 67 GLint centerViewportY = viewportSize[1] + (viewportSize[3] / 2); in runTest() 69 GLint redQuadLeftSideX = viewportSize[0] + viewportSize[2] * 3 / 8; in runTest() 70 GLint redQuadRightSideX = viewportSize[0] + viewportSize[2] * 5 / 8; in runTest() 71 GLint redQuadTopSideY = viewportSize[1] + viewportSize[3] * 3 / 8; in runTest() 72 GLint redQuadBottomSideY = viewportSize[1] + viewportSize[3] * 5 / 8; in runTest() 90 checkPixel(viewportSize[0], viewportSize[1], false); in runTest() 91 checkPixel(viewportSize[0], viewportSize[1] + viewportSize[3] - 1, false); in runTest() [all …]
|
D | IndexedPointsTest.cpp | 116 GLint viewportSize[4]; in runTest() local 117 glGetIntegerv(GL_VIEWPORT, viewportSize); in runTest() 153 static_cast<GLuint>(viewportSize[0] + (getIndexPositionX(i) * 0.5f + 0.5f) * in runTest() 154 (viewportSize[2] - viewportSize[0])); in runTest() 156 static_cast<GLuint>(viewportSize[1] + (getIndexPositionY(i) * 0.5f + 0.5f) * in runTest() 157 (viewportSize[3] - viewportSize[1])); in runTest()
|
D | VertexAttributeTest.cpp | 219 GLint viewportSize[4]; in checkPixels() local 220 glGetIntegerv(GL_VIEWPORT, viewportSize); in checkPixels() 222 GLint midPixelX = (viewportSize[0] + viewportSize[2]) / 2; in checkPixels() 223 GLint midPixelY = (viewportSize[1] + viewportSize[3]) / 2; in checkPixels() 228 EXPECT_PIXEL_EQ((midPixelX + viewportSize[0]) / 2, midPixelY, 255, 255, 255, 255); in checkPixels() 229 EXPECT_PIXEL_EQ((midPixelX + viewportSize[2]) / 2, midPixelY, 255, 255, 255, 255); in checkPixels() 230 EXPECT_PIXEL_EQ(midPixelX, (midPixelY + viewportSize[1]) / 2, 255, 255, 255, 255); in checkPixels() 231 EXPECT_PIXEL_EQ(midPixelX, (midPixelY + viewportSize[3]) / 2, 255, 255, 255, 255); in checkPixels() 236 GLint viewportSize[4]; in checkPixelsUnEqual() local 237 glGetIntegerv(GL_VIEWPORT, viewportSize); in checkPixelsUnEqual() [all …]
|
/external/deqp/framework/common/ |
D | tcuRasterizationVerifier.cpp | 141 …cu::IVec2& pixel, const TriangleSceneSpec::SceneTriangle& triangle, const tcu::IVec2& viewportSize) in pixelOnlyOnASharedEdge() argument 153 …ace[0] + tcu::Vec2(1.0f, 1.0f)) * 0.5f * tcu::Vec2((float)viewportSize.x(), (float)viewportSize.y(… in pixelOnlyOnASharedEdge() 154 …ace[1] + tcu::Vec2(1.0f, 1.0f)) * 0.5f * tcu::Vec2((float)viewportSize.x(), (float)viewportSize.y(… in pixelOnlyOnASharedEdge() 155 …ace[2] + tcu::Vec2(1.0f, 1.0f)) * 0.5f * tcu::Vec2((float)viewportSize.x(), (float)viewportSize.y(… in pixelOnlyOnASharedEdge() 184 … getTriangleAABB (const TriangleSceneSpec::SceneTriangle& triangle, const tcu::IVec2& viewportSize) in getTriangleAABB() argument 194 …ace[0] + tcu::Vec2(1.0f, 1.0f)) * 0.5f * tcu::Vec2((float)viewportSize.x(), (float)viewportSize.y(… in getTriangleAABB() 195 …ace[1] + tcu::Vec2(1.0f, 1.0f)) * 0.5f * tcu::Vec2((float)viewportSize.x(), (float)viewportSize.y(… in getTriangleAABB() 196 …ace[2] + tcu::Vec2(1.0f, 1.0f)) * 0.5f * tcu::Vec2((float)viewportSize.x(), (float)viewportSize.y(… in getTriangleAABB() 572 …terpolate (int primitiveNdx, const tcu::IVec2 pixel, const tcu::IVec2 viewportSize, bool multisamp… in interpolate() 580 ….0f) / (float)viewportSize.x() * 2.0f - 1.0f, ((float)pixel.y() + testSquarePos + 0.0f … in interpolate() [all …]
|
D | tcuRasterizationVerifier.hpp | 144 …& p1, const tcu::Vec4& p2, const tcu::IVec2& pixel, const tcu::IVec2& viewportSize, int subpixelBi… 150 …nst tcu::Vec4& p1, const float lineWidth, const tcu::IVec2& pixel, const tcu::IVec2& viewportSize); 156 …1, const tcu::Vec4& p2, const tcu::IVec2& pixel, int subpixelBits, const tcu::IVec2& viewportSize);
|
/external/deqp/modules/gles3/functional/ |
D | es3fShaderDerivateTests.cpp | 684 const tcu::IVec2 viewportSize = getViewportSize(); in iterate() local 685 …iewportX = useFbo ? 0 : rnd.getInt(0, m_context.getRenderTarget().getWidth() - viewportSize.x()); in iterate() 686 …iewportY = useFbo ? 0 : rnd.getInt(0, m_context.getRenderTarget().getHeight() - viewportSize.y()); in iterate() 707 …erStorageMultisample(GL_RENDERBUFFER, m_numSamples, fboFormat, viewportSize.x(), viewportSize.y()); in iterate() 730 …<< TestLog::Message << "Viewport: " << viewportSize.x() << "x" << viewportSize.y() << TestLog::End… in iterate() 811 gl.viewport(viewportX, viewportY, viewportSize.x(), viewportSize.y()); in iterate() 830 …gl.renderbufferStorageMultisample(GL_RENDERBUFFER, 0, fboFormat, viewportSize.x(), viewportSize.y(… in iterate() 835 …gl.blitFramebuffer(0, 0, viewportSize.x(), viewportSize.y(), 0, 0, viewportSize.x(), viewportSize.… in iterate() 845 …mat(tcu::TextureFormat::RGBA, tcu::TextureFormat::UNORM_INT8), viewportSize.x(), viewportSize.y()); in iterate() 854 result.setStorage(dataFormat, viewportSize.x(), viewportSize.y()); in iterate() [all …]
|
D | es3fTextureShadowTests.cpp | 600 const int viewportSize = 28; in iterate() local 601 …const RandomViewport viewport (m_context.getRenderTarget(), viewportSize, viewportSize, deStrin… in iterate() 606 if (viewport.width < viewportSize || viewport.height < viewportSize) in iterate()
|
D | es3fTextureUnitTests.cpp | 343 …void makeSafeLods (const vector<IVec3>& textureSizes, const IVec2& viewportSize); // Modifies … 561 void MultiTexShader::makeSafeLods (const vector<IVec3>& textureSizes, const IVec2& viewportSize) in makeSafeLods() argument 580 Vec2 screenDerivate(1.0f / (float)viewportSize.x(), 1.0f / (float)viewportSize.y()); in makeSafeLods()
|
D | es3fShaderTextureFunctionTests.cpp | 569 tcu::IVec2 viewportSize = getViewportSize(); in initTexture() local 598 …pec.maxCoord[0]-m_lookupSpec.minCoord[0])*proj*(float)m_textureSpec.width / (float)viewportSize[0]; in initTexture() 599 …ec.maxCoord[1]-m_lookupSpec.minCoord[1])*proj*(float)m_textureSpec.height / (float)viewportSize[1]; in initTexture() 656 float dudx = (c10.s - c00.s)*(float)m_textureSpec.width / (float)viewportSize[0]; in initTexture() 657 float dvdy = (c01.t - c00.t)*(float)m_textureSpec.height / (float)viewportSize[1]; in initTexture() 692 …pec.maxCoord[0]-m_lookupSpec.minCoord[0])*proj*(float)m_textureSpec.width / (float)viewportSize[0]; in initTexture() 693 …ec.maxCoord[1]-m_lookupSpec.minCoord[1])*proj*(float)m_textureSpec.height / (float)viewportSize[1]; in initTexture() 722 …ec.maxCoord[0]-m_lookupSpec.minCoord[0])*proj*(float)m_textureSpec.width / (float)viewportSize[0]; in initTexture() 723 …c.maxCoord[1]-m_lookupSpec.minCoord[1])*proj*(float)m_textureSpec.height / (float)viewportSize[1]; in initTexture() 724 …axCoord[2]-m_lookupSpec.minCoord[2])*0.5f*proj*(float)m_textureSpec.depth / (float)viewportSize[0]; in initTexture() [all …]
|
D | es3fTextureFilteringTests.cpp | 582 const int viewportSize = 28; in iterate() local 583 …const RandomViewport viewport (m_renderCtx.getRenderTarget(), viewportSize, viewportSize, deStr… in iterate() 590 if (viewport.width < viewportSize || viewport.height < viewportSize) in iterate()
|
/external/deqp/external/vulkancts/modules/vulkan/shaderrender/ |
D | vktShaderRenderLimitTests.cpp | 68 const UVec2 viewportSize = getViewportSize(); in iterate() local 69 const int width = viewportSize.x(); in iterate() 70 const int height = viewportSize.y(); in iterate()
|
D | vktShaderRenderDerivateTests.cpp | 1044 const tcu::UVec2 viewportSize (VIEWPORT_WIDTH, VIEWPORT_HEIGHT); in verify() local 1045 const float w = float(viewportSize.x()); in verify() 1046 const float h = float(viewportSize.y()); in verify() 1143 const tcu::UVec2 viewportSize (VIEWPORT_WIDTH, VIEWPORT_HEIGHT); in initPrograms() local 1144 const float w = float(viewportSize.x()); in initPrograms() 1145 const float h = float(viewportSize.y()); in initPrograms() 1250 const tcu::UVec2 viewportSize (VIEWPORT_WIDTH, VIEWPORT_HEIGHT); in TextureDerivateCaseInstance() local 1253 …texture = de::MovePtr<tcu::Texture2D>(new tcu::Texture2D(format, viewportSize.x(), viewportSize.y(… in TextureDerivateCaseInstance() 1514 const tcu::UVec2 viewportSize (VIEWPORT_WIDTH, VIEWPORT_HEIGHT); in initPrograms() local 1515 const float w = float(viewportSize.x()); in initPrograms() [all …]
|
D | vktShaderRenderBuiltinVarTests.cpp | 1641 const UVec2 viewportSize = getViewportSize(); in iterate() local 1642 const int width = viewportSize.x(); in iterate() 1643 const int height = viewportSize.y(); in iterate() 1769 const UVec2 viewportSize = getViewportSize(); in iterate() local 1770 const int width = viewportSize.x(); in iterate() 1771 const int height = viewportSize.y(); in iterate() 1892 const UVec2 viewportSize = getViewportSize(); in iterate() local 1893 const int width = viewportSize.x(); in iterate() 1894 const int height = viewportSize.y(); in iterate() 2132 const UVec2 viewportSize = getViewportSize(); in iterate() local [all …]
|
D | vktShaderRenderTextureFunctionTests.cpp | 857 tcu::UVec2 viewportSize = getViewportSize(); in initTexture() local 888 …pec.maxCoord[0]-m_lookupSpec.minCoord[0])*proj*(float)m_textureSpec.width / (float)viewportSize[0]; in initTexture() 889 …ec.maxCoord[1]-m_lookupSpec.minCoord[1])*proj*(float)m_textureSpec.height / (float)viewportSize[1]; in initTexture() 947 float dudx = (c10.s - c00.s)*(float)m_textureSpec.width / (float)viewportSize[0]; in initTexture() 948 float dvdy = (c01.t - c00.t)*(float)m_textureSpec.height / (float)viewportSize[1]; in initTexture() 984 …pec.maxCoord[0]-m_lookupSpec.minCoord[0])*proj*(float)m_textureSpec.width / (float)viewportSize[0]; in initTexture() 985 …ec.maxCoord[1]-m_lookupSpec.minCoord[1])*proj*(float)m_textureSpec.height / (float)viewportSize[1]; in initTexture() 1015 …ec.maxCoord[0]-m_lookupSpec.minCoord[0])*proj*(float)m_textureSpec.width / (float)viewportSize[0]; in initTexture() 1016 …c.maxCoord[1]-m_lookupSpec.minCoord[1])*proj*(float)m_textureSpec.height / (float)viewportSize[1]; in initTexture() 1017 …axCoord[2]-m_lookupSpec.minCoord[2])*0.5f*proj*(float)m_textureSpec.depth / (float)viewportSize[0]; in initTexture() [all …]
|
/external/deqp/modules/gles31/functional/ |
D | es31fPrimitiveBoundingBoxTests.cpp | 107 …ViewportBoundingBoxArea (const ProjectedBBox& bbox, const tcu::IVec2& viewportSize, float size = 0… in getViewportBoundingBoxArea() argument 112 vertexBox.x() = (bbox.min.x() * 0.5f + 0.5f) * (float)viewportSize.x(); in getViewportBoundingBoxArea() 113 vertexBox.y() = (bbox.min.y() * 0.5f + 0.5f) * (float)viewportSize.y(); in getViewportBoundingBoxArea() 114 vertexBox.z() = (bbox.max.x() * 0.5f + 0.5f) * (float)viewportSize.x(); in getViewportBoundingBoxArea() 115 vertexBox.w() = (bbox.max.y() * 0.5f + 0.5f) * (float)viewportSize.y(); in getViewportBoundingBoxArea() 551 tcu::IVec2 viewportSize; member 573 …cu::Vec2& patternPos, const tcu::Vec2& patternSize, const tcu::IVec2& viewportSize, AABBRoundDirec… 769 …config.viewportSize.x() = rnd.getInt(MIN_VIEWPORT_SIZE, de::min<int>(renderTargetSize.x(), MAX_VIE… in generateRandomConfig() 770 …config.viewportSize.y() = rnd.getInt(MIN_VIEWPORT_SIZE, de::min<int>(renderTargetSize.y(), MAX_VIE… in generateRandomConfig() 771 config.viewportPos.x() = rnd.getInt(0, renderTargetSize.x() - config.viewportSize.x()); in generateRandomConfig() [all …]
|
D | es31fTextureFilteringTests.cpp | 338 const int viewportSize = 28; in iterate() local 340 …const RandomViewport viewport (m_context.getRenderTarget(), viewportSize, viewportSize, randomS… in iterate() 347 if (viewport.width < viewportSize || viewport.height < viewportSize) in iterate()
|
/external/deqp/external/openglcts/modules/glesext/texture_shadow_lod/ |
D | esextcTextureShadowLodFunctionsTest.cpp | 477 tcu::IVec2 viewportSize = getViewportSize(); in initTexture() local 506 …Spec.maxCoord[0] - m_lookupSpec.minCoord[0]) * (float)m_textureSpec.width / (float)viewportSize[0]; in initTexture() 508 (float)viewportSize[1]; in initTexture() 548 …Spec.maxCoord[0] - m_lookupSpec.minCoord[0]) * (float)m_textureSpec.width / (float)viewportSize[0]; in initTexture() 550 (float)viewportSize[1]; in initTexture() 612 float dudx = (c10.s - c00.s) * (float)m_textureSpec.width / (float)viewportSize[0]; in initTexture() 613 float dvdy = (c01.t - c00.t) * (float)m_textureSpec.height / (float)viewportSize[1]; in initTexture() 692 float dudx = (c10.s - c00.s) * (float)m_textureSpec.width / (float)viewportSize[0]; in initTexture() 693 float dvdy = (c01.t - c00.t) * (float)m_textureSpec.height / (float)viewportSize[1]; in initTexture()
|
/external/deqp/external/vulkancts/modules/vulkan/geometry/ |
D | vktGeometryBasicGeometryShaderTests.cpp | 275 const tcu::UVec2 viewportSize (4, 1); in createPipelineLayout() local 280 …tureLevel texture (texFormat, static_cast<int>(viewportSize.x()), static_cast<int>(viewportSi… in createPipelineLayout() 297 viewportSize.x(), in createPipelineLayout() 298 viewportSize.y(), in createPipelineLayout()
|
/external/deqp/modules/gles2/functional/ |
D | es2fShaderTextureFunctionTests.cpp | 325 tcu::IVec2 viewportSize = getViewportSize(); in initTexture() local 352 …pec.maxCoord[0]-m_lookupSpec.minCoord[0])*proj*(float)m_textureSpec.width / (float)viewportSize[0]; in initTexture() 353 …ec.maxCoord[1]-m_lookupSpec.minCoord[1])*proj*(float)m_textureSpec.height / (float)viewportSize[1]; in initTexture() 397 float dudx = (c10.s - c00.s)*(float)m_textureSpec.width / (float)viewportSize[0]; in initTexture() 398 float dvdy = (c01.t - c00.t)*(float)m_textureSpec.height / (float)viewportSize[1]; in initTexture()
|
D | es2fTextureFilteringTests.cpp | 535 const int viewportSize = 28; in iterate() local 536 …const RandomViewport viewport (m_renderCtx.getRenderTarget(), viewportSize, viewportSize, deStr… in iterate() 543 if (viewport.width < viewportSize || viewport.height < viewportSize) in iterate()
|
D | es2fTextureUnitTests.cpp | 247 …void makeSafeLods (const vector<IVec2>& textureSizes, const IVec2& viewportSize); // Modifies … 412 void MultiTexShader::makeSafeLods (const vector<IVec2>& textureSizes, const IVec2& viewportSize) in makeSafeLods() argument 424 Vec2 screenDerivate(1.0f / (float)viewportSize.x(), 1.0f / (float)viewportSize.y()); in makeSafeLods()
|
/external/deqp/modules/glshared/ |
D | glsShaderRenderCase.cpp | 431 IVec2 viewportSize = getViewportSize(); in iterate() local 432 int width = viewportSize.x(); in iterate() 433 int height = viewportSize.y(); in iterate()
|
/external/deqp/external/openglcts/modules/common/ |
D | glcShaderRenderCase.cpp | 494 IVec2 viewportSize = getViewportSize(); in iterate() local 495 int width = viewportSize.x(); in iterate() 496 int height = viewportSize.y(); in iterate()
|
/external/deqp/external/vulkancts/modules/vulkan/renderpass/ |
D | vktRenderPassTests.cpp | 1725 const UVec2& viewportSize, in SubpassRenderInfo() argument 1731 , m_viewportSize (viewportSize) in SubpassRenderInfo() 4542 const UVec2 viewportSize ((config.renderSize * UVec2(2)) / UVec2(3)); in initializeSubpassRenderInfo() local 4560 const UVec2 size ((viewportSize * UVec2(2)) / UVec2(3)); in initializeSubpassRenderInfo() 4561 …ec2 offset (viewportOffset.x() + ((deUint32)attachmentRefNdx % 2u) * (viewportSize.x() / 3u), in initializeSubpassRenderInfo() 4562 … viewportOffset.y() + (((deUint32)attachmentRefNdx / 2u) % 2u) * (viewportSize.y() / 3u)); in initializeSubpassRenderInfo() 4571 const UVec2 size ((viewportSize * UVec2(2)) / UVec2(3)); in initializeSubpassRenderInfo() 4572 … offset (viewportOffset.x() + ((deUint32)colorAttachments.size() % 2u) * (viewportSize.x() / 3u), in initializeSubpassRenderInfo() 4573 … viewportOffset.y() + (((deUint32)colorAttachments.size() / 2u) % 2u) * (viewportSize.y() / 3u)); in initializeSubpassRenderInfo() 4585 … = roundToViewport((subpassNdx % 2) == 0 ? 1.0f - w : -1.0f, viewportOffset.x(), viewportSize.x()); in initializeSubpassRenderInfo() [all …]
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/trackselection/ |
D | DefaultTrackSelector.java | 368 Point viewportSize = Util.getCurrentDisplayModeSize(context); in setViewportSizeToPhysicalDisplaySize() local 369 return setViewportSize(viewportSize.x, viewportSize.y, viewportOrientationMayChange); in setViewportSizeToPhysicalDisplaySize()
|