Home
last modified time | relevance | path

Searched refs:tcu (Results 1 – 25 of 665) sorted by relevance

12345678910>>...27

/external/deqp/modules/glshared/
DglsTextureTestUtil.hpp46 namespace tcu namespace
88 SamplerType getSamplerType (tcu::TextureFormat format);
89 SamplerType getFetchSamplerType (tcu::TextureFormat format);
118 tcu::Vec4 w; //!< w coordinates for quad vertices.
123 tcu::Vec4 colorScale; //!< Scale for texture color values.
124 tcu::Vec4 colorBias; //!< Bias for texture color values.
192 …ProgramLibrary (const glu::RenderContext& context, tcu::TestContext& testCtx, glu::GLSLVersion g…
203 tcu::TestContext& m_testCtx;
212 …TextureRenderer (const glu::RenderContext& context, tcu::TestContext& testCtx, glu::GLSLVersion …
225 tcu::TestContext& m_testCtx;
[all …]
DglsRasterizationTestUtil.cpp46 …rsect (const tcu::Vector<deInt64, 2>& line0Beg, const tcu::Vector<deInt64, 2>& line0End, const tcu in lineLineIntersect()
48 typedef tcu::Vector<deInt64, 2> I64Vec2; in lineLineIntersect()
84 bool isTriangleClockwise (const tcu::Vec4& p0, const tcu::Vec4& p1, const tcu::Vec4& p2) in isTriangleClockwise()
86 const tcu::Vec2 u (p1.x() / p1.w() - p0.x() / p0.w(), p1.y() / p1.w() - p0.y() / p0.w()); in isTriangleClockwise()
87 const tcu::Vec2 v (p2.x() / p2.w() - p0.x() / p0.w(), p2.y() / p2.w() - p0.y() / p0.w()); in isTriangleClockwise()
93 bool compareColors (const tcu::RGBA& colorA, const tcu::RGBA& colorB, int redBits, int greenBits, i… in compareColors()
104 bool pixelNearLineSegment (const tcu::IVec2& pixel, const tcu::Vec2& p0, const tcu::Vec2& p1) in pixelNearLineSegment()
106 const tcu::Vec2 pixelCenterPosition = tcu::Vec2(pixel.x() + 0.5f, pixel.y() + 0.5f); in pixelNearLineSegment()
114 const tcu::Vec2 line = p1 - p0; in pixelNearLineSegment()
115 const tcu::Vec2 v = pixelCenterPosition - p0; in pixelNearLineSegment()
[all …]
DglsTextureTestUtil.cpp41 using tcu::TestLog;
53 SamplerType getSamplerType (tcu::TextureFormat format) in getSamplerType()
55 using tcu::TextureFormat; in getSamplerType()
79 SamplerType getFetchSamplerType (tcu::TextureFormat format) in getFetchSamplerType()
81 using tcu::TextureFormat; in getFetchSamplerType()
105 static tcu::Texture1DView getSubView (const tcu::Texture1DView& view, int baseLevel, int maxLevel) in getSubView()
110 return tcu::Texture1DView(numLevels, view.getLevels()+clampedBase); in getSubView()
113 static tcu::Texture2DView getSubView (const tcu::Texture2DView& view, int baseLevel, int maxLevel) in getSubView()
118 return tcu::Texture2DView(numLevels, view.getLevels()+clampedBase); in getSubView()
121 static tcu::TextureCubeView getSubView (const tcu::TextureCubeView& view, int baseLevel, int maxLev… in getSubView()
[all …]
DglsSamplerObjectTest.cpp72 TextureSamplerTest::TextureSamplerTest (tcu::TestContext& testCtx, glu::RenderContext& renderCtx, c… in TextureSamplerTest()
73 : tcu::TestCase (testCtx, spec.name, spec.desc) in TextureSamplerTest()
241 glu::makeVtxFragSources(tcu::StringTemplate(vertexShaderTemplate).specialize(params), in init()
242 tcu::StringTemplate(fragmentShaderTemplate).specialize(params))); in init()
246 tcu::TestLog& log = m_testCtx.getLog(); in init()
382tcu::Texture2D refTexture (tcu::TextureFormat(tcu::TextureFormat::RGBA, tcu::TextureFormat::UNORM_… in createTexture2D()
385tcu::fillWithComponentGradients(refTexture.getLevel(0), tcu::Vec4(0.0f, 0.0f, 0.0f, 0.0f), tcu::Ve… in createTexture2D()
408tcu::Texture3D refTexture (tcu::TextureFormat(tcu::TextureFormat::RGBA, tcu::TextureFormat::UNORM_… in createTexture3D()
411tcu::fillWithComponentGradients(refTexture.getLevel(0), tcu::Vec4(0.0f, 0.0f, 0.0f, 0.0f), tcu::Ve… in createTexture3D()
434tcu::TextureCube refTexture (tcu::TextureFormat(tcu::TextureFormat::RGBA, tcu::TextureFormat::UNOR… in createTextureCube()
[all …]
DglsRasterizationTestUtil.hpp60 tcu::Vec4 positions[3];
61 tcu::Vec4 colors[3];
72 tcu::Vec4 positions[2];
73 tcu::Vec4 colors[2];
84 tcu::Vec4 position;
85 tcu::Vec4 color;
108 …lculateTriangleCoverage (const tcu::Vec4& p0, const tcu::Vec4& p1, const tcu::Vec4& p2, const tcu:…
119 …gleGroupRasterization (const tcu::Surface& surface, const TriangleSceneSpec& scene, const Rasteriz…
130 …yLineGroupRasterization (const tcu::Surface& surface, const LineSceneSpec& scene, const Rasterizat…
141 …PointGroupRasterization (const tcu::Surface& surface, const PointSceneSpec& scene, const Rasteriza…
[all …]
/external/deqp/modules/gles2/functional/
Des2fClippingTests.cpp50 using tcu::PixelBufferAccess;
51 using tcu::ConstPixelBufferAccess;
52 using tcu::TestLog;
54 static const tcu::Vec4 MASK_COLOR_OK = tcu::Vec4(0.0f, 0.1f, 0.0f, 1.0f);
55 static const tcu::Vec4 MASK_COLOR_DEV = tcu::Vec4(0.8f, 0.5f, 0.0f, 1.0f);
56 static const tcu::Vec4 MASK_COLOR_FAIL = tcu::Vec4(1.0f, 0.0f, 1.0f, 1.0f);
80 inline bool isBlack (const tcu::IVec4& a) in isBlack()
85 inline bool isHalfFilled (const tcu::IVec4& a) in isHalfFilled()
87 const tcu::IVec4 halfFilled (127, 0, 0, 0); in isHalfFilled()
88 const tcu::IVec4 threshold (20, 256, 256, 256); in isHalfFilled()
[all …]
Des2fNegativeVertexArrayApiTests.cpp45 using tcu::TestLog;
60 …m_log << tcu::TestLog::Section("", "GL_INVALID_VALUE is generated if index is greater than or equa… in init()
70 m_log << tcu::TestLog::EndSection; in init()
74 …m_log << tcu::TestLog::Section("", "GL_INVALID_VALUE is generated if index is greater than or equa… in init()
85 m_log << tcu::TestLog::EndSection; in init()
89 …m_log << tcu::TestLog::Section("", "GL_INVALID_ENUM is generated if type is not an accepted value.… in init()
92 m_log << tcu::TestLog::EndSection; in init()
94 …m_log << tcu::TestLog::Section("", "GL_INVALID_VALUE is generated if index is greater than or equa… in init()
98 m_log << tcu::TestLog::EndSection; in init()
100 … m_log << tcu::TestLog::Section("", "GL_INVALID_VALUE is generated if size is not 1, 2, 3, or 4."); in init()
[all …]
Des2fRasterizationTests.cpp90 …void drawPrimitives (tcu::Surface& result, const std::vector<tcu::Vec4>& vertexData, glw::GLe…
91 …void drawPrimitives (tcu::Surface& result, const std::vector<tcu::Vec4>& vertexData, const st…
127 …throw tcu::NotSupportedError(std::string("Render target size must be at least ") + de::toString(m_… in init()
135 …throw tcu::NotSupportedError(std::string("Support for line width ") + de::toString(m_lineWidth) + … in init()
137 …m_testCtx.getLog() << tcu::TestLog::Message << "ALIASED_LINE_WIDTH_RANGE = [" << range[0] << ", " … in init()
146 …throw tcu::NotSupportedError(std::string("Support for point size ") + de::toString(m_pointSize) + … in init()
148 …m_testCtx.getLog() << tcu::TestLog::Message << "ALIASED_POINT_SIZE_RANGE = [" << range[0] << ", " … in init()
156 …m_testCtx.getLog() << tcu::TestLog::Message << "Sample count = " << m_numSamples << tcu::TestLog::… in init()
157 …m_testCtx.getLog() << tcu::TestLog::Message << "SUBPIXEL_BITS = " << m_subpixelBits << tcu::TestLo… in init()
162 tcu::StringTemplate vertexSource (s_shaderVertexTemplate); in init()
[all …]
Des2fDefaultVertexAttributeTests.cpp60 tcu::Vector<T1, S1> convertToTypeVec (const tcu::Vector<T2, S2>& v) in convertToTypeVec()
62 tcu::Vector<T1, S1> retVal; in convertToTypeVec()
82 virtual tcu::Vec4 load (glu::CallLogWrapper& gl, int index, const tcu::Vec4& v) const = 0;
99 tcu::Vec4 load (glu::CallLogWrapper& gl, int index, const tcu::Vec4& v) const \
101 tcu::Vector<TYPE, COMPONENTS> value; \
133 tcu::Vec4 load (glu::CallLogWrapper& gl, int index, const tcu::Vec4& v) const \
135 tcu::Vector<TYPE, COMPONENTS> value; \
178 bool renderWithValue (const tcu::Vec4& v);
179 tcu::Vec4 computeColor (const tcu::Vec4& value);
180 bool verifyUnicoloredBuffer (const tcu::Surface& scene, const tcu::Vec4& refValue);
[all …]
/external/deqp/modules/gles3/functional/
Des3fClippingTests.cpp50 using tcu::PixelBufferAccess;
51 using tcu::ConstPixelBufferAccess;
52 using tcu::TestLog;
54 static const tcu::Vec4 MASK_COLOR_OK = tcu::Vec4(0.0f, 0.1f, 0.0f, 1.0f);
55 static const tcu::Vec4 MASK_COLOR_DEV = tcu::Vec4(0.8f, 0.5f, 0.0f, 1.0f);
56 static const tcu::Vec4 MASK_COLOR_FAIL = tcu::Vec4(1.0f, 0.0f, 1.0f, 1.0f);
83 inline bool isBlack (const tcu::IVec4& a) in isBlack()
88 inline bool isHalfFilled (const tcu::IVec4& a) in isHalfFilled()
90 const tcu::IVec4 halfFilled (127, 0, 0, 0); in isHalfFilled()
91 const tcu::IVec4 threshold (20, 256, 256, 256); in isHalfFilled()
[all …]
Des3fNegativeVertexArrayApiTests.cpp55 using tcu::TestLog;
70 …m_log << tcu::TestLog::Section("", "GL_INVALID_VALUE is generated if index is greater than or equa… in init()
80 m_log << tcu::TestLog::EndSection; in init()
84 …m_log << tcu::TestLog::Section("", "GL_INVALID_VALUE is generated if index is greater than or equa… in init()
95 m_log << tcu::TestLog::EndSection; in init()
103 …m_log << tcu::TestLog::Section("", "GL_INVALID_VALUE is generated if index is greater than or equa… in init()
108 m_log << tcu::TestLog::EndSection; in init()
116 …m_log << tcu::TestLog::Section("", "GL_INVALID_VALUE is generated if index is greater than or equa… in init()
121 m_log << tcu::TestLog::EndSection; in init()
125 …m_log << tcu::TestLog::Section("", "GL_INVALID_ENUM is generated if type is not an accepted value.… in init()
[all …]
Des3fShaderDerivateTests.cpp66 using tcu::TestLog;
185 static inline tcu::BVec4 getDerivateMask (glu::DataType type) in getDerivateMask()
189 case glu::TYPE_FLOAT: return tcu::BVec4(true, false, false, false); in getDerivateMask()
190 case glu::TYPE_FLOAT_VEC2: return tcu::BVec4(true, true, false, false); in getDerivateMask()
191 case glu::TYPE_FLOAT_VEC3: return tcu::BVec4(true, true, true, false); in getDerivateMask()
192 case glu::TYPE_FLOAT_VEC4: return tcu::BVec4(true, true, true, true); in getDerivateMask()
195 return tcu::BVec4(true); in getDerivateMask()
199 static inline tcu::Vec4 readDerivate (const tcu::ConstPixelBufferAccess& surface, const tcu::Vec4& … in readDerivate()
204 static inline tcu::UVec4 getCompExpBits (const tcu::Vec4& v) in getCompExpBits()
206 return tcu::UVec4(tcu::Float32(v[0]).exponentBits(), in getCompExpBits()
[all …]
Des3fFboTestUtil.hpp61 void setColor (sglr::Context& context, deUint32 program, const tcu::Vec4& color);
76 …Gradient (sglr::Context& context, deUint32 program, const tcu::Vec4& gradientMin, const tcu::Vec…
88 …lerTypes, glu::DataType outputType, const tcu::Vec4& outScale = tcu::Vec4(1.0f), const tcu::Vec4& …
92 void setTexScaleBias (int samplerNdx, const tcu::Vec4& scale, const tcu::Vec4& bias);
93 void setOutScaleBias (const tcu::Vec4& scale, const tcu::Vec4& bias);
104 tcu::Vec4 scale;
105 tcu::Vec4 bias;
109 tcu::Vec4 m_outScale;
110 tcu::Vec4 m_outBias;
121 void setFace (tcu::CubeFace face);
[all …]
Des3fFramebufferBlitTests.cpp45 using tcu::TestLog;
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;
71 void render (tcu::Surface& dst) in render()
119 tcu::TextureLevel data (glu::mapGLTransferFormat(format, dataType), texW, texH, 1); in render()
[all …]
Des3fRasterizationTests.cpp87 static tcu::PixelFormat getInternalFormatPixelFormat (glw::GLenum internalFormat) in getInternalFormatPixelFormat()
89 …const tcu::IVec4 bitDepth = tcu::getTextureFormatBitDepth(glu::mapGLInternalFormat(internalFormat)… in getInternalFormatPixelFormat()
90 return tcu::PixelFormat(bitDepth.x(), bitDepth.y(), bitDepth.z(), bitDepth.w()); in getInternalFormatPixelFormat()
118 …void drawPrimitives (tcu::Surface& result, const std::vector<tcu::Vec4>& vertexData, glw::GLe…
119 …void drawPrimitives (tcu::Surface& result, const std::vector<tcu::Vec4>& vertexData, const st…
123 const tcu::PixelFormat& getPixelFormat (void) const;
134 const tcu::PixelFormat m_pixelFormat;
179 …throw tcu::NotSupportedError(std::string("Render target size must be at least ") + de::toString(m_… in init()
191 …throw tcu::NotSupportedError("Test requires " + de::toString(m_numRequestedSamples) + "x msaa rbo"… in init()
197 tcu::StringTemplate vertexSource (s_shaderVertexTemplate); in init()
[all …]
/external/deqp/framework/opengl/
DgluStrUtilPrototypes.inl71 tcu::Format::Bitfield<16> getBufferMaskStr (int value);
72 tcu::Format::Bitfield<16> getBufferMapFlagsStr (int value);
73 tcu::Format::Bitfield<16> getMemoryBarrierFlagsStr (int value);
75 inline tcu::Format::Enum getErrorStr (int value) { return tcu::Format::Enum(getErrorName, …
76 inline tcu::Format::Enum getTypeStr (int value) { return tcu::Format::Enum(getTypeName, …
77 inline tcu::Format::Enum getParamQueryStr (int value) { return tcu::Format::Enum(getParamQuery…
78 inline tcu::Format::Enum getProgramParamStr (int value) { return tcu::Format::Enum(getProgramP…
79 inline tcu::Format::Enum getUniformParamStr (int value) { return tcu::Format::Enum(getUniformP…
80 inline tcu::Format::Enum getFramebufferAttachmentStr (int value) { return tcu::Format::Enum(getF…
81 inline tcu::Format::Enum getFramebufferAttachmentParameterStr (int value) { return tcu::Format::Enu…
[all …]
DgluTextureUtil.cpp45 TransferFormat getTransferFormat (tcu::TextureFormat texFormat) in getTransferFormat()
47 using tcu::TextureFormat; in getTransferFormat()
117 throw tcu::InternalError("Can't map texture format to GL transfer format"); in getTransferFormat()
132 deUint32 getInternalFormat (tcu::TextureFormat texFormat) in getInternalFormat()
134 DE_STATIC_ASSERT(tcu::TextureFormat::CHANNELORDER_LAST < (1<<16)); in getInternalFormat()
135 DE_STATIC_ASSERT(tcu::TextureFormat::CHANNELTYPE_LAST < (1<<16)); in getInternalFormat()
138 #define FMT_CASE(ORDER, TYPE) PACK_FMT(tcu::TextureFormat::ORDER, tcu::TextureFormat::TYPE) in getInternalFormat()
214 throw tcu::InternalError("Can't map texture format to GL internal format"); in getInternalFormat()
227 deUint32 getGLFormat (tcu::CompressedTexture::Format format) in getGLFormat()
231 case tcu::CompressedTexture::ETC1_RGB8: return GL_ETC1_RGB8_OES; in getGLFormat()
[all …]
/external/deqp/modules/internal/
DditImageCompareTests.cpp39 using tcu::TestLog;
43 static void loadImageRGBA8 (tcu::TextureLevel& dst, const tcu::Archive& archive, const char* path) in loadImageRGBA8()
45 tcu::TextureLevel tmp; in loadImageRGBA8()
46 tcu::ImageIO::loadImage(tmp, archive, path); in loadImageRGBA8()
48 …dst.setStorage(tcu::TextureFormat(tcu::TextureFormat::RGBA, tcu::TextureFormat::UNORM_INT8), tmp.g… in loadImageRGBA8()
49 tcu::copy(dst, tmp); in loadImageRGBA8()
52 class FuzzyComparisonMetricCase : public tcu::TestCase
55 …FuzzyComparisonMetricCase (tcu::TestContext& testCtx, const char* name, const char* refImg, const … in FuzzyComparisonMetricCase()
56 : tcu::TestCase (testCtx, name, "") in FuzzyComparisonMetricCase()
66 tcu::TextureLevel refImg; in iterate()
[all …]
/external/deqp/modules/gles31/functional/
Des31fSampleVariableTests.cpp51 virtual bool verify (const tcu::RGBA& testColor, const tcu::IVec2& position) const = 0;
52 virtual void logInfo (tcu::TestLog& log) const = 0;
58 ColorVerifier (const tcu::Vec3& _color, int _threshold = 8) in ColorVerifier()
59 : m_color (tcu::Vec4(_color.x(), _color.y(), _color.z(), 1.0f)) in ColorVerifier()
60 , m_threshold (tcu::IVec3(_threshold)) in ColorVerifier()
64 ColorVerifier (const tcu::Vec3& _color, tcu::IVec3 _threshold) in ColorVerifier()
65 : m_color (tcu::Vec4(_color.x(), _color.y(), _color.z(), 1.0f)) in ColorVerifier()
70 bool verify (const tcu::RGBA& testColor, const tcu::IVec2& position) const in verify()
73 …return !tcu::boolAny(tcu::greaterThan(tcu::abs(m_color.toIVec().swizzle(0, 1, 2) - testColor.toIVe… in verify()
76 void logInfo (tcu::TestLog& log) const in logInfo()
[all …]
Des31fFboTestUtil.hpp58 …lerTypes, glu::DataType outputType, const tcu::Vec4& outScale = tcu::Vec4(1.0f), const tcu::Vec4& …
62 void setTexScaleBias (int samplerNdx, const tcu::Vec4& scale, const tcu::Vec4& bias);
63 void setOutScaleBias (const tcu::Vec4& scale, const tcu::Vec4& bias);
74 tcu::Vec4 scale;
75 tcu::Vec4 bias;
79 tcu::Vec4 m_outScale;
80 tcu::Vec4 m_outBias;
92 void setFace (tcu::CubeFace face);
93 void setTexScaleBias (const tcu::Vec4& scale, const tcu::Vec4& bias);
101 tcu::Vec4 m_texScale;
[all …]
Des31fTextureFilteringTests.cpp53 using tcu::TestLog;
56 static const char* getFaceDesc (const tcu::CubeFace face) in getFaceDesc()
60 case tcu::CUBEFACE_NEGATIVE_X: return "-X"; in getFaceDesc()
61 case tcu::CUBEFACE_POSITIVE_X: return "+X"; in getFaceDesc()
62 case tcu::CUBEFACE_NEGATIVE_Y: return "-Y"; in getFaceDesc()
63 case tcu::CUBEFACE_POSITIVE_Y: return "+Y"; in getFaceDesc()
64 case tcu::CUBEFACE_NEGATIVE_Z: return "-Z"; in getFaceDesc()
65 case tcu::CUBEFACE_POSITIVE_Z: return "+Z"; in getFaceDesc()
138 tcu::Vec2 bottomLeft;
139 tcu::Vec2 topRight;
[all …]
Des31fTextureGatherTests.cpp49 using tcu::ConstPixelBufferAccess;
50 using tcu::PixelBufferAccess;
51 using tcu::TestLog;
52 using tcu::IVec2;
53 using tcu::IVec3;
54 using tcu::IVec4;
55 using tcu::UVec4;
56 using tcu::Vec2;
57 using tcu::Vec3;
58 using tcu::Vec4;
[all …]
Des31fShaderTextureSizeTests.cpp82 void createTexture (const tcu::IVec3& size);
84 void runShader (tcu::Surface& dst, const tcu::IVec3& size);
85 bool verifyImage (const tcu::Surface& dst);
94 std::vector<tcu::IVec3> m_iterations;
123 static const tcu::IVec2 testSizes2D[] = in init()
125 tcu::IVec2(1, 1), in init()
126 tcu::IVec2(1, 4), in init()
127 tcu::IVec2(4, 8), in init()
128 tcu::IVec2(21, 11), in init()
129 tcu::IVec2(107, 254), in init()
[all …]
/external/deqp/framework/referencerenderer/
DrrFragmentOperations.hpp48 tcu::IVec2 pixelCoord;
54 …Fragment (const tcu::IVec2& pixelCoord_, const GenericVec4& value_, deUint32 coverage_, const floa… in Fragment()
63 …Fragment (const tcu::IVec2& pixelCoord_, const GenericVec4& value_, const GenericVec4& value1_, de… in Fragment()
83 void clearMultisampleColorBuffer (const tcu::PixelBufferAccess& dst, const tcu::Vec4& value, const…
84 void clearMultisampleColorBuffer (const tcu::PixelBufferAccess& dst, const tcu::IVec4& value, cons…
85 void clearMultisampleColorBuffer (const tcu::PixelBufferAccess& dst, const tcu::UVec4& value, cons…
86 void clearMultisampleDepthBuffer (const tcu::PixelBufferAccess& dst, float value, const WindowR…
87 void clearMultisampleStencilBuffer (const tcu::PixelBufferAccess& dst, int value, const Window…
119 tcu::Vec4 clampedBlendSrcColor;
120 tcu::Vec4 clampedBlendSrc1Color;
[all …]
/external/deqp/framework/egl/
DegluStrUtilPrototypes.inl24 tcu::Format::Bitfield<16> getAPIBitsStr (int value);
25 tcu::Format::Bitfield<16> getSurfaceBitsStr (int value);
27 inline tcu::Format::Enum getBooleanStr (int value) { return tcu::Format::Enum(getBooleanName, …
28 inline tcu::Format::Enum getBoolDontCareStr (int value) { return tcu::Format::Enum(getBoolDontCar…
29 inline tcu::Format::Enum getAPIStr (int value) { return tcu::Format::Enum(getAPIName, value…
30 inline tcu::Format::Enum getErrorStr (int value) { return tcu::Format::Enum(getErrorName, va…
31 inline tcu::Format::Enum getContextAttribStr (int value) { return tcu::Format::Enum(getContextAtt…
32 inline tcu::Format::Enum getConfigAttribStr (int value) { return tcu::Format::Enum(getConfigAttri…
33 inline tcu::Format::Enum getSurfaceAttribStr (int value) { return tcu::Format::Enum(getSurfaceAtt…
34 inline tcu::Format::Enum getSurfaceTargetStr (int value) { return tcu::Format::Enum(getSurfaceTar…
[all …]

12345678910>>...27