/third_party/skia/third_party/externals/angle2/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 …]
|
/third_party/flutter/skia/third_party/externals/angle2/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 | 129 GLint viewportSize[4]; in checkPixels() local 130 glGetIntegerv(GL_VIEWPORT, viewportSize); in checkPixels() 132 GLint midPixelX = (viewportSize[0] + viewportSize[2]) / 2; in checkPixels() 133 GLint midPixelY = (viewportSize[1] + viewportSize[3]) / 2; in checkPixels() 138 EXPECT_PIXEL_EQ((midPixelX + viewportSize[0]) / 2, midPixelY, 255, 255, 255, 255); in checkPixels() 139 EXPECT_PIXEL_EQ((midPixelX + viewportSize[2]) / 2, midPixelY, 255, 255, 255, 255); in checkPixels() 140 EXPECT_PIXEL_EQ(midPixelX, (midPixelY + viewportSize[1]) / 2, 255, 255, 255, 255); in checkPixels() 141 EXPECT_PIXEL_EQ(midPixelX, (midPixelY + viewportSize[3]) / 2, 255, 255, 255, 255); in checkPixels() 146 GLint viewportSize[4]; in checkPixelsUnEqual() local 147 glGetIntegerv(GL_VIEWPORT, viewportSize); in checkPixelsUnEqual() [all …]
|
/third_party/vk-gl-cts/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 | 146 …& p1, const tcu::Vec4& p2, const tcu::IVec2& pixel, const tcu::IVec2& viewportSize, int subpixelBi… 152 …nst tcu::Vec4& p1, const float lineWidth, const tcu::IVec2& pixel, const tcu::IVec2& viewportSize); 158 …1, const tcu::Vec4& p2, const tcu::IVec2& pixel, int subpixelBits, const tcu::IVec2& viewportSize);
|
/third_party/vk-gl-cts/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 …]
|
/third_party/vk-gl-cts/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 | 1759 const UVec2 viewportSize = getViewportSize(); in iterate() local 1760 const int width = viewportSize.x(); in iterate() 1761 const int height = viewportSize.y(); in iterate() 1887 const UVec2 viewportSize = getViewportSize(); in iterate() local 1888 const int width = viewportSize.x(); in iterate() 1889 const int height = viewportSize.y(); in iterate() 2010 const UVec2 viewportSize = getViewportSize(); in iterate() local 2011 const int width = viewportSize.x(); in iterate() 2012 const int height = viewportSize.y(); in iterate() 2250 const UVec2 viewportSize = getViewportSize(); in iterate() local [all …]
|
D | vktShaderRenderTextureFunctionTests.cpp | 871 tcu::UVec2 viewportSize = getViewportSize(); in initTexture() local 902 …pec.maxCoord[0]-m_lookupSpec.minCoord[0])*proj*(float)m_textureSpec.width / (float)viewportSize[0]; in initTexture() 903 …ec.maxCoord[1]-m_lookupSpec.minCoord[1])*proj*(float)m_textureSpec.height / (float)viewportSize[1]; in initTexture() 961 float dudx = (c10.s - c00.s)*(float)m_textureSpec.width / (float)viewportSize[0]; in initTexture() 962 float dvdy = (c01.t - c00.t)*(float)m_textureSpec.height / (float)viewportSize[1]; in initTexture() 998 …pec.maxCoord[0]-m_lookupSpec.minCoord[0])*proj*(float)m_textureSpec.width / (float)viewportSize[0]; in initTexture() 999 …ec.maxCoord[1]-m_lookupSpec.minCoord[1])*proj*(float)m_textureSpec.height / (float)viewportSize[1]; in initTexture() 1029 …ec.maxCoord[0]-m_lookupSpec.minCoord[0])*proj*(float)m_textureSpec.width / (float)viewportSize[0]; in initTexture() 1030 …c.maxCoord[1]-m_lookupSpec.minCoord[1])*proj*(float)m_textureSpec.height / (float)viewportSize[1]; in initTexture() 1031 …axCoord[2]-m_lookupSpec.minCoord[2])*0.5f*proj*(float)m_textureSpec.depth / (float)viewportSize[0]; in initTexture() [all …]
|
/third_party/vk-gl-cts/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() 606 tcu::IVec2 viewportSize; member 628 …cu::Vec2& patternPos, const tcu::Vec2& patternSize, const tcu::IVec2& viewportSize, AABBRoundDirec… 843 …config.viewportSize.x() = rnd.getInt(MIN_VIEWPORT_SIZE, de::min<int>(renderTargetSize.x(), MAX_VIE… in generateRandomConfig() 844 …config.viewportSize.y() = rnd.getInt(MIN_VIEWPORT_SIZE, de::min<int>(renderTargetSize.y(), MAX_VIE… in generateRandomConfig() 845 config.viewportPos.x() = rnd.getInt(0, renderTargetSize.x() - config.viewportSize.x()); in generateRandomConfig() [all …]
|
D | es31fTextureFilteringTests.cpp | 341 const int viewportSize = 28; in iterate() local 343 …const RandomViewport viewport (m_context.getRenderTarget(), viewportSize, viewportSize, randomS… in iterate() 350 if (viewport.width < viewportSize || viewport.height < viewportSize) in iterate()
|
/third_party/vk-gl-cts/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()
|
/third_party/vk-gl-cts/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()
|
/third_party/vk-gl-cts/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()
|
/third_party/vk-gl-cts/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()
|
/third_party/vk-gl-cts/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()
|