/external/deqp/modules/gles31/functional/ |
H A D | es31fVertexAttributeBindingTests.cpp | 78 static bool verifyImageYellowGreen (const tcu::Surface& image, tcu::TestLog& log, bool logImageOnSuccess) 80 using tcu::TestLog; 84 tcu::Surface error (image.getWidth(), image.getHeight()); 92 const tcu::RGBA pixel = image.getPixel(x, y); 103 error.setPixel(x, y, (pixelOk) ? (tcu::RGBA(0, 255, 0, 255)) : (tcu::RGBA(255, 0, 0, 255))); 144 virtual void renderTo (tcu::Surface& dst) = 0; 171 throw tcu::NotSupportedError("Test requires at least " + de::toString<int>(TEST_RENDER_SIZE) + "x" + de::toString<int>(TEST_RENDER_SIZE) + " render target"); 176 throw tcu [all...] |
H A D | es31fNegativeTestShared.hpp | 31 namespace tcu namespace 36 } // tcu 59 NegativeTestContext (ErrorCase& host, glu::RenderContext& renderCtx, const glu::ContextInfo& ctxInfo, tcu::TestLog& log, tcu::ResultCollector& results, bool enableLog); 62 const tcu::ResultCollector& getResults (void) const; 80 tcu::ResultCollector& m_results;
|
H A D | 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 [all...] |
H A D | 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);
|
H A D | es31fTextureMultisampleTests.cpp | 138 void drawSample (tcu::Surface& dst, int sampleNdx); 139 void convertToSceneSpec (TriangleSceneSpec& scene, const tcu::Vec2& samplePos) const; 143 tcu::Vec4 p1; 144 tcu::Vec4 p2; 145 tcu::Vec4 p3; 158 std::vector<tcu::Vec2> m_samplePositions; 197 throw tcu::NotSupportedError("render target size must be at least " + de::toString(m_canvasSize) + "x" + de::toString(m_canvasSize)); 201 throw tcu::NotSupportedError("Requested sample count is greater than GL_MAX_COLOR_TEXTURE_SAMPLES"); 203 m_testCtx.getLog() << tcu::TestLog::Message << "GL_MAX_COLOR_TEXTURE_SAMPLES = " << maxSamples << tcu [all...] |
/external/deqp/framework/opengl/ |
H A D | 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 [all...] |
/external/deqp/modules/egl/ |
H A D | teglColorClearTests.cpp | 57 static void createColorClearGroups (EglTestContext& eglTestCtx, tcu::TestCaseGroup* group, const ColorClearGroupSpec* first, const ColorClearGroupSpec* last) 61 tcu::TestCaseGroup* configGroup = new tcu::TestCaseGroup(eglTestCtx.getTestContext(), groupIter->name, groupIter->desc); 108 tcu::TestCaseGroup* singleContextGroup = new tcu::TestCaseGroup(m_testCtx, "single_context", "Single-context color clears"); 112 tcu::TestCaseGroup* multiContextGroup = new tcu::TestCaseGroup(m_testCtx, "multi_context", "Multi-context color clears with shared surface"); 116 tcu::TestCaseGroup* multiThreadGroup = new tcu::TestCaseGroup(m_testCtx, "multi_thread", "Multi-thread color clears with shared surface");
|
H A D | teglImageFormatTests.cpp | 77 using tcu::ConstPixelBufferAccess; 121 virtual bool invoke (ImageApi& api, MovePtr<UniqueImage>& image, tcu::Texture2D& refImg) const = 0; 178 bool invoke (ImageApi& api, MovePtr<UniqueImage>& image, tcu::Texture2D& ref) const; 179 virtual bool invokeGLES2 (GLES2ImageApi& api, MovePtr<UniqueImage>& image, tcu::Texture2D& ref) const = 0; 187 bool invokeGLES2 (GLES2ImageApi& api, MovePtr<UniqueImage>& image, tcu::Texture2D& ref) const; 200 class RenderTexture2D : public Render { public: bool invokeGLES2 (GLES2ImageApi& api, MovePtr<UniqueImage>& image, tcu::Texture2D& ref) const; }; 201 class RenderTextureCubemap : public Render { public: bool invokeGLES2 (GLES2ImageApi& api, MovePtr<UniqueImage>& image, tcu::Texture2D& ref) const; }; 202 class RenderReadPixelsRenderbuffer : public Render { public: bool invokeGLES2 (GLES2ImageApi& api, MovePtr<UniqueImage>& image, tcu::Texture2D& ref) const; }; 203 class RenderDepthbuffer : public Render { public: bool invokeGLES2 (GLES2ImageApi& api, MovePtr<UniqueImage>& image, tcu::Texture2D& ref) const; }; 204 class RenderStencilbuffer : public Render { public: bool invokeGLES2 (GLES2ImageApi& api, MovePtr<UniqueImage>& image, tcu [all...] |
/external/deqp/framework/referencerenderer/ |
H A D | 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) argument 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 132 isTheCenterOfTheFragment(const tcu::Vector<deInt64,2>& a) argument 150 vertexOnLeftSideOfLine(const tcu::Vector<deInt64,2>& p, const SubpixelLineSegment& l) argument 159 vertexOnRightSideOfLine(const tcu::Vector<deInt64,2>& p, const SubpixelLineSegment& l) argument 168 vertexOnLine(const tcu::Vector<deInt64,2>& p, const SubpixelLineSegment& l) argument 177 vertexOnLineSegment(const tcu::Vector<deInt64,2>& p, const SubpixelLineSegment& l) argument 193 getVertexSide(const tcu::Vector<deInt64,2>& v, const SubpixelLineSegment& l) argument 209 lineInCornerAngleRange(const SubpixelLineSegment& line, const tcu::Vector<deInt64,2>& cornerExitNormal) argument 222 lineInCornerOutsideAngleRange(const SubpixelLineSegment& line, const tcu::Vector<deInt64,2>& cornerExitNormal) argument 234 doesLineSegmentExitDiamond(const SubpixelLineSegment& line, const tcu::Vector<deInt64,2>& diamondCenter) argument [all...] |
/external/deqp/modules/gles3/performance/ |
H A D | es3pBufferDataUploadTests.cpp | 566 tcu::warmupCPU(); 588 tcu::warmupCPU(); 622 float dummy = *tcu::warmupCPUInternal::g_dummy.m_v; 645 *tcu::warmupCPUInternal::g_dummy.m_v = dummy; 664 return tcu::mix((float)values[lowerNdx], (float)values[higherNdx], interpolationFactor); 911 std::vector<tcu::Vec2> samplePoints; 915 tcu::Vec2 point; 929 std::vector<tcu::Vec2> samplePoints; 933 tcu::Vec2 point; 1093 static typename EnableIf<void, SampleTypeTraits<SampleType>::HAS_MAP_STATS>::Type logMapRangeStats (tcu [all...] |
/external/deqp/modules/internal/ |
H A D | ditSeedBuilderTests.cpp | 30 using tcu::IVec2; 31 using tcu::IVec3; 32 using tcu::IVec4; 33 using tcu::TestLog; 41 class SeedBuilderTest : public tcu::TestCase 44 SeedBuilderTest (tcu::TestContext& testCtx, const T& value, deUint32 seed, const char* name, const char* description) 45 : tcu::TestCase (testCtx, name, description) 54 tcu::SeedBuilder builder; 75 class SeedBuilderMultipleValuesTest : public tcu::TestCase 78 SeedBuilderMultipleValuesTest (tcu [all...] |
H A D | 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 [all...] |
/external/deqp/modules/gles2/functional/ |
H A D | 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 argument [all...] |
H A D | es2fBooleanStateQueryTests.cpp | 48 StateVerifier (const glw::Functions& gl, tcu::TestLog& log, const char* testNamePostfix); 53 virtual void verifyBoolean (tcu::TestContext& testCtx, GLenum name, bool reference) = DE_NULL; 54 virtual void verifyBoolean4 (tcu::TestContext& testCtx, GLenum name, bool reference0, bool reference1, bool reference2, bool reference3) = DE_NULL; 55 virtual void verifyBooleanAnything (tcu::TestContext& testCtx, GLenum name) = DE_NULL; 60 StateVerifier::StateVerifier (const glw::Functions& gl, tcu::TestLog& log, const char* testNamePostfix) 81 IsEnabledVerifier (const glw::Functions& gl, tcu::TestLog& log); 82 void verifyBoolean (tcu::TestContext& testCtx, GLenum name, bool reference); 83 void verifyBoolean4 (tcu::TestContext& testCtx, GLenum name, bool reference0, bool reference1, bool reference2, bool reference3); 84 void verifyBooleanAnything (tcu::TestContext& testCtx, GLenum name); 87 IsEnabledVerifier::IsEnabledVerifier (const glw::Functions& gl, tcu [all...] |
H A D | es2fDepthRangeTests.cpp | 51 using tcu::Vec2; 52 using tcu::Vec3; 53 using tcu::Vec4; 54 using tcu::TestLog; 96 inline float triQuadInterpolate (const float x, const float y, const tcu::Vec4& quad) 115 DepthRangeCompareCase (Context& context, const char* name, const char* desc, const tcu::Vec4& depthCoord, const float zNear, const float zFar, const deUint32 compareFunc); 121 const tcu::Vec4 m_depthCoord; 127 DepthRangeCompareCase::DepthRangeCompareCase (Context& context, const char* name, const char* desc, const tcu::Vec4& depthCoord, const float zNear, const float zFar, const deUint32 compareFunc) 144 const tcu::RenderTarget& renderTarget = m_context.getRenderContext().getRenderTarget(); 149 tcu [all...] |
H A D | es2fPolygonOffsetTests.cpp | 73 static const tcu::Vec4 MASK_COLOR_OK = tcu::Vec4(0.0f, 0.1f, 0.0f, 1.0f); 74 static const tcu::Vec4 MASK_COLOR_DEV = tcu::Vec4(0.8f, 0.5f, 0.0f, 1.0f); 75 static const tcu::Vec4 MASK_COLOR_FAIL = tcu::Vec4(1.0f, 0.0f, 1.0f, 1.0f); 77 inline bool compareThreshold (const tcu::IVec4& a, const tcu::IVec4& b, const tcu::IVec4& threshold) 79 return tcu [all...] |
/external/deqp/framework/platform/win32/ |
H A D | tcuWin32Platform.cpp | 32 namespace tcu namespace 89 } // tcu 92 tcu::Platform* createPlatform (void) 94 return new tcu::Win32Platform();
|
/external/deqp/modules/gles31/ |
H A D | 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
|
/external/deqp/modules/glshared/ |
H A D | 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;
|
H A D | 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 [all...] |
H A D | glsTextureStateQueryTests.hpp | 77 tcu::TestCase* createIsTextureTest (tcu::TestContext& testCtx, const glu::RenderContext& renderCtx, const std::string& name, const std::string& description, glw::GLenum target); 78 tcu::TestCase* createTexParamTest (tcu::TestContext& testCtx, const glu::RenderContext& renderCtx, const std::string& name, const std::string& description, StateQueryUtil::QueryType queryType, glw::GLenum target, TesterType tester); 79 tcu::TestCase* createSamplerParamTest (tcu::TestContext& testCtx, const glu::RenderContext& renderCtx, const std::string& name, const std::string& description, StateQueryUtil::QueryType queryType, TesterType tester);
|
/external/deqp/modules/gles3/functional/ |
H A D | es3fPolygonOffsetTests.cpp | 76 static const tcu::Vec4 MASK_COLOR_OK = tcu::Vec4(0.0f, 0.1f, 0.0f, 1.0f); 77 static const tcu::Vec4 MASK_COLOR_DEV = tcu::Vec4(0.8f, 0.5f, 0.0f, 1.0f); 78 static const tcu::Vec4 MASK_COLOR_FAIL = tcu::Vec4(1.0f, 0.0f, 1.0f, 1.0f); 80 inline bool compareThreshold (const tcu::IVec4& a, const tcu::IVec4& b, const tcu::IVec4& threshold) 82 return tcu [all...] |
H A D | es3fShaderPackingFunctionTests.cpp | 41 using tcu::TestLog; 49 const deUint32 aBits = tcu::Float32(a).bits(); 50 const deUint32 bBits = tcu::Float32(b).bits(); 62 return str << v.value << " / " << tcu::toHex(tcu::Float32(v.value).bits()); 109 throw tcu::TestError("Compile failed"); 160 std::vector<tcu::Vec2> inputs; 167 inputs.push_back(tcu::Vec2(0.0f, 0.0f)); 168 inputs.push_back(tcu::Vec2(-1.0f, 1.0f)); 169 inputs.push_back(tcu [all...] |
/external/deqp/modules/gles2/ |
H A D | tes2Context.cpp | 40 Context::Context (tcu::TestContext& testCtx) 73 const tcu::RenderTarget& Context::getRenderTarget (void) const
|
/external/deqp/modules/gles3/accuracy/ |
H A D | 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 143 isValidFloatVec(glu::Precision precision, const tcu::Vector<float, Size>& vec) argument [all...] |