/external/deqp/external/openglcts/modules/gl/ |
gl4cTextureGatherTests.cpp | 44 using tcu::Vec4; 62 g_color_eps = Vec4(1.f / (float)(1 << pixelFormat.redBits), 1.f / (float)(1 << pixelFormat.greenBits), 68 Vec4 g_color_eps; 266 inline bool ColorEqual(const Vec4& c0, const Vec4& c1, const Vec4& epsilon) 400 " gl_Position = vec4(1); \n" 407 "out vec4 color; \n" + 409 " color = vec4(1); \n" 616 std::vector<Vec4> pixels(csize * csize, Vec4(1.0)) [all...] |
/external/deqp/framework/common/ |
tcuTexLookupVerifier.hpp | 47 Vec4 colorThreshold; //!< Threshold for match. 103 Vec4 computeFixedPointThreshold (const IVec4& bits); 104 Vec4 computeFloatingPointThreshold (const IVec4& bits, const Vec4& value); 113 bool isLookupResultValid (const Texture1DView& texture, const Sampler& sampler, const LookupPrecision& prec, const float coord, const Vec2& lodBounds, const Vec4& result); 114 bool isLookupResultValid (const Texture2DView& texture, const Sampler& sampler, const LookupPrecision& prec, const Vec2& coord, const Vec2& lodBounds, const Vec4& result); 115 bool isLookupResultValid (const TextureCubeView& texture, const Sampler& sampler, const LookupPrecision& prec, const Vec3& coord, const Vec2& lodBounds, const Vec4& result); 116 bool isLookupResultValid (const Texture1DArrayView& texture, const Sampler& sampler, const LookupPrecision& prec, const Vec2& coord, const Vec2& lodBounds, const Vec4& result); 117 bool isLookupResultValid (const Texture2DArrayView& texture, const Sampler& sampler, const LookupPrecision& prec, const Vec3& coord, const Vec2& lodBounds, const Vec4& result); 118 bool isLookupResultValid (const Texture3DView& texture, const Sampler& sampler, const LookupPrecision& prec, const Vec3& coord, const Vec2& lodBounds, const Vec4& result) [all...] |
/external/deqp/external/vulkancts/modules/vulkan/draw/ |
vktDrawBaseClass.hpp | 53 PositionColorVertex (tcu::Vec4 position_, tcu::Vec4 color_) 58 tcu::Vec4 position; 59 tcu::Vec4 color; 64 VertexElementData (tcu::Vec4 position_, tcu::Vec4 color_, deUint32 refVertexIndex_)
|
vktDrawShaderDrawParametersTests.cpp | 154 m_data.push_back(VertexElementData(tcu::Vec4( 1.0f, -1.0f, 1.0f, 1.0f), tcu::Vec4(1.0f), -1)); 155 m_data.push_back(VertexElementData(tcu::Vec4(-1.0f, 1.0f, 1.0f, 1.0f), tcu::Vec4(1.0f), -1)); 160 m_data.push_back(VertexElementData(tcu::Vec4(-0.3f, -0.3f, 1.0f, 1.0f), tcu::Vec4(1.0f), refIndex++)); 161 m_data.push_back(VertexElementData(tcu::Vec4(-0.3f, 0.3f, 1.0f, 1.0f), tcu::Vec4(1.0f), refIndex++)); 162 m_data.push_back(VertexElementData(tcu::Vec4( 0.3f, -0.3f, 1.0f, 1.0f), tcu::Vec4(1.0f), refIndex++)) [all...] |
/external/deqp/modules/internal/ |
ditSRGB8ConversionTest.cpp | 55 const tcu::UVec4 calculateDiscreteFloatDistance (const tcu::Vec4& ref, const tcu::Vec4& res) 76 const tcu::Vec4 res (tcu::sRGBA8ToLinear(src)); 77 const tcu::Vec4 ref (tcu::sRGBToLinear(src.cast<float>() / tcu::Vec4(255.0f))); 78 const tcu::Vec4 diff (res - ref);
|
/external/deqp/external/vulkancts/modules/vulkan/protected_memory/ |
vktProtectedMemImageValidator.hpp | 39 tcu::Vec4 coords[4]; 40 tcu::Vec4 values[4];
|
vktProtectedMemCopyImageToBufferTests.cpp | 319 { tcu::Vec4(0.0f), tcu::Vec4(0.0f), tcu::Vec4(0.0f), tcu::Vec4(0.0f) } 325 { tcu::Vec4(1.0f), tcu::Vec4(1.0f), tcu::Vec4(1.0f), tcu::Vec4(1.0f) } 331 { tcu::Vec4(0.24f), tcu::Vec4(0.24f), tcu::Vec4(0.24f), tcu::Vec4(0.24f) [all...] |
/external/mesa3d/src/gallium/drivers/swr/rasterizer/common/ |
simdlib_interface.hpp | 341 // Vec4, an SOA SIMD set of 4-dimensional vectors 342 union Vec4 344 Vec4() = default; 345 Vec4(Float in) 352 Vec4(Float x, Float y, Float z, Float w) 376 static void vec4_set1_ps(Vec4& r, const float *p); // r[0] = set1(p[0]), r[1] = set1(p[1]), ... 377 static void vec4_set1_vps(Vec4& r, Float s); // r[0] = s, r[1] = s, ... 378 static Float vec4_dp3_ps(const Vec4& v0, const Vec4& v1); // return dp3(v0, v1) 379 static Float vec4_dp4_ps(const Vec4& v0, const Vec4& v1); // return dp4(v0, v1 [all...] |
simdlib.hpp | 84 using Vec4 = SIMD128Impl::Vec4; 141 using Vec4 = SIMD256Impl::Vec4; 198 using Vec4 = SIMD512Impl::Vec4; 214 using Vec4 = typename Traits::Vec4; 219 // Populates a SIMD Vec4 from a non-simd vector. So p = xyzw becomes xxxx yyyy zzzz wwww. 221 void vec4_load1_ps(Vec4& r, const float *p [all...] |
/external/deqp/modules/gles3/functional/ |
es3fDefaultVertexAttributeTests.cpp | 54 "layout(location = 0) out mediump vec4 fragColor;\n" 55 "in mediump vec4 v_color;\n" 84 virtual tcu::Vec4 load (glu::CallLogWrapper& gl, int index, const tcu::Vec4& v) const = 0; 101 tcu::Vec4 load (glu::CallLogWrapper& gl, int index, const tcu::Vec4& v) const \ 135 tcu::Vec4 load (glu::CallLogWrapper& gl, int index, const tcu::Vec4& v) const \ 169 tcu::Vec4 load (glu::CallLogWrapper& gl, int index, const tcu::Vec4& v) const [all...] |
es3fFboTestCase.hpp | 59 void readPixels (tcu::Surface& dst, int x, int y, int width, int height, const tcu::TextureFormat& format, const tcu::Vec4& scale, const tcu::Vec4& bias); 63 void clearColorBuffer (const tcu::TextureFormat& format, const tcu::Vec4& value = tcu::Vec4(0.0f, 0.0f, 0.0f, 0.0f));
|
/external/deqp/modules/glshared/ |
glsLongStressTestUtil.cpp | 32 using tcu::Vec4; 63 params["FRAG_HEADER"] = isGLSL3 ? "#version 300 es\nlayout(location = 0) out mediump vec4 dEQP_FragColor;\n" : ""; 94 "${VTX_OUT} mediump vec4 v_color;\n" 98 " gl_Position = vec4(a_position, 1.0);\n" 104 "${FRAG_IN} mediump vec4 v_color;\n" 118 vtxDummyInputs += "${VTX_IN} mediump vec4 a_in" + toString(i) + ";\n"; 131 context.attributes.push_back(gls::VarSpec("a_in" + de::toString(i), Vec4(0.0f), Vec4(1.0f / (float)numDummyAttributes))); 147 " gl_Position = u_posTrans * vec4(a_position, 1.0);\n" 173 Vec4(0.0f), Vec4(1.0f))) [all...] |
/external/deqp/external/vulkancts/modules/vulkan/dynamic_state/ |
vktDynamicStateTestCaseUtil.hpp | 46 PositionColorVertex(const tcu::Vec4& position_, const tcu::Vec4& color_) 50 tcu::Vec4 position; 51 tcu::Vec4 color;
|
/external/deqp/external/vulkancts/modules/vulkan/geometry/ |
vktGeometryInputGeometryShaderTests.cpp | 51 using tcu::Vec4; 96 const Vec4 offset (-0.5f, -0.2f, 0.0f, 1.0f); 100 m_vertexPosData[ 0] = Vec4( 0, 0, 0.0f, 0.0f) * scale + offset; 101 m_vertexPosData[ 1] = Vec4(-1, -1, 0.0f, 0.0f) * scale + offset; 102 m_vertexPosData[ 2] = Vec4( 0, -1, 0.0f, 0.0f) * scale + offset; 103 m_vertexPosData[ 3] = Vec4( 1, 1, 0.0f, 0.0f) * scale + offset; 104 m_vertexPosData[ 4] = Vec4( 1, 0, 0.0f, 0.0f) * scale + offset; 105 m_vertexPosData[ 5] = Vec4( 0, -2, 0.0f, 0.0f) * scale + offset; 106 m_vertexPosData[ 6] = Vec4( 1, -1, 0.0f, 0.0f) * scale + offset; 107 m_vertexPosData[ 7] = Vec4( 2, 1, 0.0f, 0.0f) * scale + offset [all...] |
/external/deqp/external/vulkancts/modules/vulkan/pipeline/ |
vktPipelineVertexUtil.hpp | 40 tcu::Vec4 position; 41 tcu::Vec4 color; 46 tcu::Vec4 position; 47 tcu::Vec4 texCoord;
|
/external/deqp/modules/egl/ |
teglGLES1RenderUtil.hpp | 37 void clear (int x, int y, int width, int height, const tcu::Vec4& color);
|
teglVGRenderUtil.hpp | 37 void clear (int x, int y, int width, int height, const tcu::Vec4& color);
|
/external/deqp/modules/gles31/functional/ |
es31fFboTestCase.hpp | 59 void readPixels (tcu::Surface& dst, int x, int y, int width, int height, const tcu::TextureFormat& format, const tcu::Vec4& scale, const tcu::Vec4& bias); 63 void clearColorBuffer (const tcu::TextureFormat& format, const tcu::Vec4& value = tcu::Vec4(0.0f, 0.0f, 0.0f, 0.0f));
|
es31fShaderFramebufferFetchTests.cpp | 145 tcu::Vec4 getFixedPointFormatThreshold (const tcu::TextureFormat& sourceFormat, const tcu::TextureFormat& readPixelsFormat) 159 return tcu::Vec4(3.0f) / ((tcu::Vector<deUint64, 4>(1) << (tcu::min(srcBits, readBits).cast<deUint64>())) - tcu::Vector<deUint64, 4>(1)).cast<float>(); 196 case tcu::TEXTURECHANNELCLASS_FLOATING_POINT: return "vec4"; 250 tcu::Vec4 scaleColorValue (tcu::TextureFormat format, const tcu::Vec4& color) 253 const tcu::Vec4 cScale = fmtInfo.valueMax-fmtInfo.valueMin; 254 const tcu::Vec4 cBias = fmtInfo.valueMin; 274 void genFramebufferWithTexture (const tcu::Vec4& color); 275 void genAttachementTexture (const tcu::Vec4& color); 276 void genUniformColor (const tcu::Vec4& color) [all...] |
/external/deqp/modules/gles2/scripts/ |
gen-swizzles.py | 39 # * legal to chain: vec4.rgba.xyzw.stpq 69 VECTOR_TYPES = [ "vec2", "vec3", "vec4", "ivec2", "ivec3", "ivec4", "bvec2", "bvec3", "bvec4" ] 79 "vec4": 4, 190 inVec4 = [Vec4(0.0, 0.5, 0.75, 0.825), Vec4(1.0, 1.25, 1.125, 1.75), 191 Vec4(-0.5, -2.25, -4.875, 9.0), Vec4(-32.0, 64.0, -51.0, 24.0), 192 Vec4(-0.75, -1.0/31.0, 1.0/19.0, 1.0/4.0)] 198 inBVec4 = [Vec4(True, False, False, True), Vec4(False, False, False, True), Vec4(False, True, False, False), Vec4(True, True, True, True), Vec4(Fa (…) [all...] |
/external/deqp/modules/gles3/scripts/ |
gen-swizzles.py | 39 # * legal to chain: vec4.rgba.xyzw.stpq 69 VECTOR_TYPES = [ "vec2", "vec3", "vec4", "ivec2", "ivec3", "ivec4", "bvec2", "bvec3", "bvec4" ] 79 "vec4": 4, 194 inVec4 = [Vec4(0.0, 0.5, 0.75, 0.825), Vec4(1.0, 1.25, 1.125, 1.75), 195 Vec4(-0.5, -2.25, -4.875, 9.0), Vec4(-32.0, 64.0, -51.0, 24.0), 196 Vec4(-0.75, -1.0/31.0, 1.0/19.0, 1.0/4.0)] 202 inBVec4 = [Vec4(True, False, False, True), Vec4(False, False, False, True), Vec4(False, True, False, False), Vec4(True, True, True, True), Vec4(Fa (…) [all...] |
/external/deqp/modules/gles2/functional/ |
es2fDefaultVertexAttributeTests.cpp | 53 static const char* const s_passThroughFragmentShaderSource = "varying mediump vec4 v_color;\n" 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 \ 133 tcu::Vec4 load (glu::CallLogWrapper& gl, int index, const tcu::Vec4& v) const \ 178 bool renderWithValue (const tcu::Vec4& v); 179 tcu::Vec4 computeColor (const tcu::Vec4& value) [all...] |
/external/deqp/external/vulkancts/modules/vulkan/rasterization/ |
vktRasterizationTests.cpp | 67 "layout(location = 0) in highp vec4 a_position;\n" 68 "layout(location = 1) in highp vec4 a_color;\n" 69 "layout(location = 0) ${INTERPOLATION}out highp vec4 v_color;\n" 81 "layout(location = 0) out highp vec4 fragColor;\n" 82 "layout(location = 0) ${INTERPOLATION}in highp vec4 v_color;\n" 150 void drawPrimitives (tcu::Surface& result, const std::vector<tcu::Vec4>& vertexData, VkPrimitiveTopology primitiveTopology); 151 void drawPrimitives (tcu::Surface& result, const std::vector<tcu::Vec4>& vertexData, const std::vector<tcu::Vec4>& coloDrata, VkPrimitiveTopology primitiveTopology); 598 void BaseRenderingTestInstance::drawPrimitives (tcu::Surface& result, const std::vector<tcu::Vec4>& vertexData, VkPrimitiveTopology primitiveTopology) 601 const std::vector<tcu::Vec4> colorData(vertexData.size(), tcu::Vec4(1.0f, 1.0f, 1.0f, 1.0f)) [all...] |
/external/deqp/external/openglcts/modules/common/ |
glcShaderRenderCase.cpp | 61 static const tcu::Vec4 DEFAULT_CLEAR_COLOR = tcu::Vec4(0.0f, 0.0f, 0.0f, 1.0f); 63 inline RGBA toRGBA(const Vec4& a) 70 inline tcu::Vec4 toVec(const RGBA& c) 72 return tcu::Vec4(static_cast<float>(c.getRed()) / 255.0f, static_cast<float>(c.getGreen()) / 255.0f, 141 QuadGrid(int gridSize, int screenWidth, int screenHeight, const Vec4& constCoords, 157 const Vec4& getConstCoords(void) const 170 const Vec4* getPositions(void) const 178 const Vec4* getCoords(void) const 182 const Vec4* getUnitCoords(void) cons [all...] |
/external/deqp/external/vulkancts/modules/vulkan/texture/ |
vktSampleVerifier.cpp | 96 Vec4& resultMin, 97 Vec4& resultMax) const 119 const tcu::Vec4 refPix = (m_imParams.dim == IMG_DIM_1D) ? levelAccess.getPixel(coord[0], layer, 0) 132 Vec4& resultMin, 133 Vec4& resultMax) const 190 Vec4 cornerTexels[3]; 257 resultMin = Vec4(0.0f, 0.0f, 0.0f, 0.0f); 258 resultMax = Vec4(0.0f, 0.0f, 0.0f, 0.0f); 263 resultMin = Vec4(0.0f, 0.0f, 0.0f, 1.0f); 264 resultMax = Vec4(0.0f, 0.0f, 0.0f, 1.0f) [all...] |