/external/deqp/modules/gles31/functional/ |
es31fVertexAttributeBindingTests.cpp | 78 static bool verifyImageYellowGreen (const tcu::Surface& image, tcu::TestLog& log, bool logImageOnSuccess) 80 using tcu::TestLog; 82 const tcu::RGBA green (0, 255, 0, 255); 83 const tcu::RGBA yellow (255, 255, 0, 255); 86 tcu::Surface error (image.getWidth(), image.getHeight()); 94 const tcu::RGBA pixel = image.getPixel(x, y); 105 error.setPixel(x, y, (pixelOk) ? (tcu::RGBA(0, 255, 0, 255)) : (tcu::RGBA(255, 0, 0, 255))); 146 virtual void renderTo (tcu::Surface& dst) = 0 [all...] |
es31fShaderMultisampleInterpolationTests.cpp | 50 static bool verifyGreenImage (const tcu::Surface& image, tcu::TestLog& log) 54 log << tcu::TestLog::Message << "Verifying result image, expecting green." << tcu::TestLog::EndMessage; 61 const tcu::RGBA color = image.getPixel(x, y); 69 log << tcu::TestLog::Image("ResultImage", "Result Image", image.getAccess()) 70 << tcu::TestLog::Message 72 << tcu::TestLog::EndMessage; 74 log << tcu::TestLog::Image("ResultImage", "Result Image", image.getAccess()) 75 << tcu::TestLog::Messag [all...] |
es31fTextureFormatTests.cpp | 39 using tcu::TestLog; 50 using tcu::Sampler; 52 static tcu::CubeFace getCubeFaceFromNdx (int ndx) 56 case 0: return tcu::CUBEFACE_POSITIVE_X; 57 case 1: return tcu::CUBEFACE_NEGATIVE_X; 58 case 2: return tcu::CUBEFACE_POSITIVE_Y; 59 case 3: return tcu::CUBEFACE_NEGATIVE_Y; 60 case 4: return tcu::CUBEFACE_POSITIVE_Z; 61 case 5: return tcu::CUBEFACE_NEGATIVE_Z; 64 return tcu::CUBEFACE_LAST [all...] |
es31fProgramInterfaceQueryTestCase.cpp | 159 tcu::TestContext& m_testCtx; 230 m_testCtx.getLog() << tcu::TestLog::Message << "Error, resource name \"" << resource << "\" refers to a non-basic type." << tcu::TestLog::EndMessage; 246 m_testCtx.getLog() << tcu::TestLog::Message << "Error, could not find resource \"" << resource << "\" in the program" << tcu::TestLog::EndMessage; 254 m_testCtx.getLog() << tcu::TestLog::Message << "Error, could not find builtin resource \"" << resource << "\" in the program" << tcu::TestLog::EndMessage; 323 m_testCtx.getLog() << tcu::TestLog::Message << "Error, could not find resource \"" << resource << "\" in the program" << tcu::TestLog::EndMessage; 353 m_testCtx.getLog() << tcu::TestLog::Message << "Verifying type, expecting " << glu::getDataTypeName(variable->getBasicType() (…) [all...] |
es31fMultisampleShaderRenderCase.hpp | 31 namespace tcu namespace 34 } // tcu 51 class QualityWarning : public tcu::Exception 89 void verifyResultImageAndSetResult (const tcu::Surface& resultImage); 90 void verifyResultBuffersAndSetResult (const std::vector<tcu::Surface>& resultBuffers); 96 virtual bool verifyImage (const tcu::Surface& resultImage) = 0; 97 virtual bool verifySampleBuffers (const std::vector<tcu::Surface>& resultBuffers);
|
/external/deqp/modules/gles3/functional/ |
es3fShaderBuiltinVarTests.cpp | 48 using tcu::TestLog; 194 c.color.xyz() = tcu::Vec3(zNear, zFar, diff*0.5f + 0.5f); 266 m_testCtx.getLog() << tcu::TestLog::Message << "glDepthRangef(" << m_depthRange.zNear << ", " << m_depthRange.zFar << ")" << tcu::TestLog::EndMessage; 299 const tcu::RGBA threshold = tcu::RGBA(1,1,1,1) + m_context.getRenderTarget().getPixelFormat().getColorThreshold(); 300 const tcu::Vec3 scale (1.f / float(width), 1.f / float(height), 1.0f); 302 tcu::Surface testImg (width, height); 303 tcu::Surface refImg (width, height); 324 throw tcu::TestError("Compile failed") [all...] |
es3fReadPixelsTests.cpp | 64 void render (tcu::Texture2D& reference); 79 void getFormatInfo (tcu::TextureFormat& format, int& pixelSize, bool& align); 80 void clearColor (tcu::Texture2D& reference, vector<deUint8>& pixelData, bool align, int pixelSize); 98 void ReadPixelsTest::render (tcu::Texture2D& reference) 115 if (reference.getFormat().type == tcu::TextureFormat::SIGNED_INT32) 117 else if (reference.getFormat().type == tcu::TextureFormat::UNSIGNED_INT32) 126 if (reference.getFormat().type == tcu::TextureFormat::UNSIGNED_INT32) 128 else if (reference.getFormat().type == tcu::TextureFormat::SIGNED_INT32) 183 if (reference.getFormat().type == tcu::TextureFormat::SIGNED_INT32) 184 reference.getLevel(0).setPixel(tcu::IVec4(0, 0, 0, 1000), x, y) [all...] |
es3fTextureWrapTests.cpp | 49 using tcu::TestLog; 50 using tcu::CompressedTexture; 53 using tcu::Sampler; 81 class TextureWrapCase : public tcu::TestCase 84 TextureWrapCase (tcu::TestContext& testCtx, glu::RenderContext& renderCtx, const glu::ContextInfo& ctxInfo, const char* name, const char* description, deUint32 format, deUint32 dataType, deUint32 wrapS, deUint32 wrapT, deUint32 minFilter, deUint32 magFilter, int width, int height); 85 TextureWrapCase (tcu::TestContext& testCtx, glu::RenderContext& renderCtx, const glu::ContextInfo& ctxInfo, const char* name, const char* description, deUint32 wrapS, deUint32 wrapT, deUint32 minFilter, deUint32 magFilter, const std::vector<std::string>& filenames); 86 TextureWrapCase (tcu::TestContext& testCtx, glu::RenderContext& renderCtx, const glu::ContextInfo& ctxInfo, const char* name, const char* description, CompressedTexture::Format compressedFormat, deUint32 wrapS, deUint32 wrapT, deUint32 minFilter, deUint32 magFilter, int width, int height); 99 tcu::Vec2 bottomLeft; 100 tcu::Vec2 topRight; 103 Case (const tcu::Vec2& bl, const tcu::Vec2& tr) : bottomLeft(bl), topRight(tr) { [all...] |
es3fFboColorbufferTests.cpp | 46 using tcu::Vec2; 47 using tcu::Vec3; 48 using tcu::Vec4; 49 using tcu::IVec2; 50 using tcu::IVec3; 51 using tcu::IVec4; 52 using tcu::UVec4; 53 using tcu::TestLog; 56 const tcu::RGBA MIN_THRESHOLD(12, 12, 12, 12); 59 static tcu::Vector<float, Size> randomVector (de::Random& rnd, const tcu::Vector<float, Size>& minVal = tcu:: (…) [all...] |
/external/deqp/modules/egl/ |
teglRenderCase.cpp | 58 using tcu::TestLog; 72 static void postSurface (tcu::egl::Surface& surface) 74 const bool isWindow = instanceOf<tcu::egl::WindowSurface>(surface); 75 const bool isPixmap = instanceOf<tcu::egl::PixmapSurface>(surface); 76 const bool isPbuffer = instanceOf<tcu::egl::PbufferSurface>(surface); 82 tcu::egl::WindowSurface& window = static_cast<tcu::egl::WindowSurface&>(surface); 133 void RenderCase::executeForConfig (tcu::egl::Display& defaultDisplay, EGLConfig config) 135 tcu::TestLog& log = m_testCtx.getLog(); 144 tcu::ScopedLogSection(log, (string("Config") + de::toString(configId) + "-Window").c_str() [all...] |
teglColorClearTests.cpp | 62 static void createColorClearGroups (EglTestContext& eglTestCtx, tcu::TestCaseGroup* group, const ColorClearGroupSpec* first, const ColorClearGroupSpec* last) 66 tcu::TestCaseGroup* configGroup = new tcu::TestCaseGroup(eglTestCtx.getTestContext(), groupIter->name, groupIter->desc); 103 tcu::TestCaseGroup* singleContextGroup = new tcu::TestCaseGroup(m_testCtx, "single_context", "Single-context color clears"); 107 tcu::TestCaseGroup* multiContextGroup = new tcu::TestCaseGroup(m_testCtx, "multi_context", "Multi-context color clears with shared surface"); 111 tcu::TestCaseGroup* multiThreadGroup = new tcu::TestCaseGroup(m_testCtx, "multi_thread", "Multi-thread color clears with shared surface");
|
/external/deqp/modules/gles2/functional/ |
es2fBufferTestUtil.cpp | 63 using tcu::TestLog; 72 std::copy(tcu::RandomValueIterator<deUint8>::begin(seed, numBytes), tcu::RandomValueIterator<deUint8>::end(), ptr); 75 bool compareByteArrays (tcu::TestLog& log, const deUint8* resPtr, const deUint8* refPtr, int numBytes) 103 << " expected " << tcu::formatArray(tcu::Format::HexIterator<deUint8>(refPtr+diffSpanStart), tcu::Format::HexIterator<deUint8>(refPtr+diffSpanStart+printLen)) << "\n" 104 << " got " << tcu::formatArray(tcu::Format::HexIterator<deUint8>(resPtr+diffSpanStart), tcu::Format::HexIterator<deUint8>(resPtr+diffSpanStart+printLen) [all...] |
es2fTextureSpecificationTests.cpp | 57 using tcu::TestLog; 58 using tcu::Vec4; 59 using tcu::IVec4; 60 using tcu::UVec4; 62 tcu::TextureFormat mapGLUnsizedInternalFormat (deUint32 internalFormat) 64 using tcu::TextureFormat; 73 throw tcu::InternalError(string("Can't map GL unsized internal format (") + tcu::toHex(internalFormat).toString() + ") to texture format"); 78 static tcu::Vector<float, Size> randomVector (de::Random& rnd, const tcu::Vector<float, Size>& minVal = tcu::Vector<float, Size>(0.0f), const tcu::Vector<float, Size>& max (…) [all...] |
/external/deqp/framework/opengl/ |
gluRenderConfig.cpp | 140 throw tcu::InternalError(std::string("Invalid GL configuration: '") + renderCfgName + "'"); 143 void parseRenderConfig (RenderConfig* config, const tcu::CommandLine& cmdLine) 147 case tcu::SURFACETYPE_WINDOW: config->surfaceType = RenderConfig::SURFACETYPE_WINDOW; break; 148 case tcu::SURFACETYPE_OFFSCREEN_NATIVE: config->surfaceType = RenderConfig::SURFACETYPE_OFFSCREEN_NATIVE; break; 149 case tcu::SURFACETYPE_OFFSCREEN_GENERIC: config->surfaceType = RenderConfig::SURFACETYPE_OFFSCREEN_GENERIC; break; 150 case tcu::SURFACETYPE_FBO: config->surfaceType = RenderConfig::SURFACETYPE_DONT_CARE; break; 151 case tcu::SURFACETYPE_LAST: config->surfaceType = RenderConfig::SURFACETYPE_DONT_CARE; break; 153 throw tcu::InternalError("Unsupported surface type"); 171 RenderConfig::Visibility parseWindowVisibility (const tcu::CommandLine& cmdLine) 175 case tcu::WINDOWVISIBILITY_HIDDEN: return RenderConfig::VISIBILITY_HIDDEN [all...] |
/external/deqp/modules/glshared/ |
glsRandomShaderCase.cpp | 114 RandomShaderCase::RandomShaderCase (tcu::TestContext& testCtx, glu::RenderContext& renderCtx, const char* name, const char* description, const rsg::ProgramParameters& params) 115 : tcu::TestCase (testCtx, name, description) 239 tcu::fillWithComponentGradients(m_tex2D->getRefTexture().getLevel(0), tcu::Vec4(-1.0f, -1.0f, -1.0f, 2.0f), tcu::Vec4(1.0f, 1.0f, 1.0f, 0.0f)); 261 static const tcu::Vec4 gradients[tcu::CUBEFACE_LAST][2] = 263 { tcu::Vec4(-1.0f, -1.0f, -1.0f, 2.0f), tcu::Vec4(1.0f, 1.0f, 1.0f, 0.0f) }, // negative x 264 { tcu::Vec4( 0.0f, -1.0f, -1.0f, 2.0f), tcu::Vec4(1.0f, 1.0f, 1.0f, 0.0f) }, // positive [all...] |
glsFragOpInteractionCase.hpp | 49 class FragOpInteractionCase : public tcu::TestCase 52 FragOpInteractionCase (tcu::TestContext& testCtx, glu::RenderContext& renderCtx, const glu::ContextInfo& ctxInfo, const char* name, const rsg::ProgramParameters& params); 82 tcu::IVec2 m_viewportSize;
|
glsSamplerObjectTest.hpp | 40 class TextureSamplerTest : public tcu::TestCase 63 TextureSamplerTest (tcu::TestContext& testCtx, glu::RenderContext& renderCtx, const TestSpec& spec); 72 void renderReferences (tcu::Surface& textureRef, tcu::Surface& samplerRef, int x, int y); 73 void renderResults (tcu::Surface& textureResult, tcu::Surface& samplerResult, int x, int y); 98 class MultiTextureSamplerTest : public tcu::TestCase 122 MultiTextureSamplerTest (tcu::TestContext& testCtx, glu::RenderContext& renderCtx, const TestSpec& spec); 131 void renderReferences (tcu::Surface& textureRef, tcu::Surface& samplerRef, int x, int y) [all...] |
/external/deqp/framework/referencerenderer/ |
rrRasterizer.cpp | 99 const tcu::Vector<deInt64,2> m_v0; 100 const tcu::Vector<deInt64,2> m_v1; 102 SubpixelLineSegment (const tcu::Vector<deInt64,2>& v0, const tcu::Vector<deInt64,2>& v1) 108 tcu::Vector<deInt64,2> direction (void) const 121 static tcu::Vector<deInt64,2> toSubpixelVector (const tcu::Vec2& v) 123 return tcu::Vector<deInt64,2>(toSubpixelCoord(v.x()), toSubpixelCoord(v.y())); 126 static tcu::Vector<deInt64,2> toSubpixelVector (const tcu::IVec2& v [all...] |
/external/deqp/modules/gles3/performance/ |
es3pBufferDataUploadTests.cpp | 585 tcu::warmupCPU(); 607 tcu::warmupCPU(); 641 float dummy = *tcu::warmupCPUInternal::g_dummy.m_v; 664 *tcu::warmupCPUInternal::g_dummy.m_v = dummy; 683 return tcu::mix((float)values[lowerNdx], (float)values[higherNdx], interpolationFactor); 930 std::vector<tcu::Vec2> samplePoints; 934 tcu::Vec2 point; 948 std::vector<tcu::Vec2> samplePoints; 952 tcu::Vec2 point; [all...] |
/external/chromium_org/third_party/angle/tests/deqp_tests/ |
deqp_tests.cpp | 31 static tcu::TestPackage* createTestPackage(tcu::TestContext& testCtx) 35 tcu::TestPackageDescriptor g_gles3PackageDescriptor("dEQP-GLES3", createTestPackage); 38 class Win32EglCustomDisplayPlatform : public tcu::Win32EglPlatform 50 virtual tcu::NativeDisplay* createDefaultDisplay() 52 return new tcu::Win32EglDisplay(mDisplayType); 136 tcu::CommandLine cmdLine(args.size(), args.data()); 137 tcu::DirArchive archive(GetExecutableDirectory().c_str()); 138 tcu::TestLog log(cmdLine.getLogFileName(), cmdLine.getLogFlags()); 139 de::UniquePtr<tcu::Platform> platform(new Win32EglCustomDisplayPlatform(config.displayType)) [all...] |
/external/deqp/framework/platform/win32/ |
tcuWin32Platform.cpp | 32 namespace tcu namespace 89 } // tcu 92 tcu::Platform* createPlatform (void) 94 return new tcu::Win32Platform();
|
/external/deqp/modules/gles31/ |
tes31Context.cpp | 38 Context::Context (tcu::TestContext& testCtx) 43 if (m_testCtx.getCommandLine().getRunMode() == tcu::RUNMODE_EXECUTE) 79 const tcu::RenderTarget& Context::getRenderTarget (void) const
|
tes31TestPackage.cpp | 34 PackageContext::PackageContext (tcu::TestContext& testCtx) 58 TestPackage::TestPackage (tcu::TestContext& testCtx) 59 : tcu::TestPackage (testCtx, "dEQP-GLES31", "dEQP OpenGL ES 3.1 Tests")
|
/external/deqp/modules/internal/ |
ditBuildInfoTests.cpp | 28 using tcu::TestLog; 90 class BuildInfoStringCase : public tcu::TestCase 93 BuildInfoStringCase (tcu::TestContext& testCtx, const char* name, const char* valueName, const char* value) 94 : tcu::TestCase (testCtx, name, valueName) 112 class BuildEnumCase : public tcu::TestCase 117 BuildEnumCase (tcu::TestContext& testCtx, const char* name, const char* varName, int value, GetStringFunc getString) 118 : tcu::TestCase (testCtx, name, varName) 144 class EndiannessConsistencyCase : public tcu::TestCase 147 EndiannessConsistencyCase (tcu::TestContext& context, const char* name, const char* description) 148 : tcu::TestCase(context, name, description [all...] |
/external/deqp/modules/gles3/accuracy/ |
es3aVaryingInterpolationTests.cpp | 46 using tcu::TestLog; 47 using tcu::Vec3; 48 using tcu::Vec4; 61 static inline float projectedTriInterpolate (const tcu::Vec3& s, const tcu::Vec3& w, float nx, float ny) 74 tcu::Vec3 triW[2] = { wCoord.swizzle(0, 1, 2), wCoord.swizzle(3, 2, 1) }; 103 InterpolationCase (Context& context, const char* name, const char* desc, glu::Precision precision, const tcu::Vec3& minVal, const tcu::Vec3& maxVal, bool projective); 110 tcu::Vec3 m_min; 111 tcu::Vec3 m_max [all...] |