/external/deqp/modules/gles31/functional/ |
es31fTextureBorderClampTests.cpp | 298 tcu::fillWithComponentGradients(depthAccess, tcu::Vec4(0.0f), tcu::Vec4(1.0f)); 326 const tcu::Vec4 rampLow = texFormatInfo.valueMin; 327 const tcu::Vec4 rampHigh = texFormatInfo.valueMax; 392 rr::GenericVec4 mapToFormatColorUnits (const tcu::TextureFormat& texFormat, const tcu::Vec4& normalizedRange) 410 rr::GenericVec4 mapToFormatColorRepresentable (const tcu::TextureFormat& texFormat, const tcu::Vec4& normalizedRange) 426 const tcu::Vec4 sRGB = tcu::linearToSRGB(normalizedRange); 431 const tcu::Vec4 linearized = tcu::sRGBToLinear(tcu::Vec4((float)sRGB8[0] / 255.0f, 436 return rr::GenericVec4(tcu::select(linearized, tcu::Vec4(0.0f), channelMask)) [all...] |
es31fTessellationGeometryInteractionTests.cpp | 70 "in highp vec4 a_position;\n" 76 "layout(location = 0) out mediump vec4 fragColor;\n" 79 " fragColor = vec4(1.0);\n" 105 "in highp vec4 a_position;\n" 106 "out highp vec4 v_vertex_color;\n" 110 " v_vertex_color = vec4(a_position.x * 0.5 + 0.5, a_position.y * 0.5 + 0.5, 1.0, 0.4);\n" 119 "in mediump vec4 v_fragment_color;\n" 120 "layout(location = 0) out mediump vec4 fragColor;\n" 198 static const tcu::Vec4 patchBufferData[4] = 200 tcu::Vec4( -0.9f, -0.9f, 0.0f, 1.0f ) [all...] |
/external/deqp/modules/gles2/functional/ |
es2fTextureFilteringTests.cpp | 177 tcu::Vec4 cBias = fmtInfo.valueMin; 178 tcu::Vec4 cScale = fmtInfo.valueMax-fmtInfo.valueMin; 183 tcu::Vec4 gMin = tcu::Vec4(-0.5f, -0.5f, -0.5f, 2.0f)*cScale + cBias; 184 tcu::Vec4 gMax = tcu::Vec4( 1.0f, 1.0f, 1.0f, 0.0f)*cScale + cBias; 440 tcu::Vec4 cBias = fmtInfo.valueMin; 441 tcu::Vec4 cScale = fmtInfo.valueMax-fmtInfo.valueMin; 444 static const tcu::Vec4 gradients[tcu::CUBEFACE_LAST][2] = 446 { tcu::Vec4(0.0f, 0.0f, 0.0f, 1.0f), tcu::Vec4(1.0f, 1.0f, 1.0f, 0.0f) }, // negative [all...] |
es2fBlendTests.cpp | 51 using tcu::Vec4; 76 Vec4 blendColor; 84 Vec4 blendColor_) 152 static const Vec4 baseGradientColors[4] = 154 Vec4(0.0f, 0.5f, 1.0f, 0.5f), 155 Vec4(0.5f, 0.0f, 0.5f, 1.0f), 156 Vec4(0.5f, 1.0f, 0.5f, 0.0f), 157 Vec4(1.0f, 0.5f, 0.0f, 0.5f) 166 m_secondQuad.color[i] = (Vec4(1.0f) - baseGradientColors[i] - 0.5f) * 1.0f + 0.5f; 341 const Vec4 defaultBlendColor(0.2f, 0.4f, 0.6f, 0.8f) [all...] |
es2fBufferTestUtil.cpp | 288 " gl_Position = vec4(a_position, 0.0, 1.0);\n" 295 " gl_FragColor = vec4(v_byteVec, 1.0);\n" 362 static inline tcu::Vec4 fetchVtxColor (const deUint8* ptr, int vtxNdx) 372 using tcu::Vec4; 383 Vec4 v00 = fetchVtxColor(inPtr, quadNdx*4 + 0); 384 Vec4 v10 = fetchVtxColor(inPtr, quadNdx*4 + 1); 385 Vec4 v01 = fetchVtxColor(inPtr, quadNdx*4 + 2); 386 Vec4 v11 = fetchVtxColor(inPtr, quadNdx*4 + 3); 397 const Vec4& t0 = tri ? v00 : v11; 398 const Vec4& t1 = tri ? v01 : v10 [all...] |
/device/google/contexthub/firmware/os/inc/algos/ |
fusion.h | 84 void fusionGetAttitude(const struct Fusion *fusion, struct Vec4 *attitude);
|
/external/deqp/external/openglcts/modules/gl/ |
gl4cTextureFilterMinmaxTests.cpp | 111 " gl_Position = vec4(position, 0.0, 1.0);\n" 117 "out vec4 color;\n" 231 tcu::fillWithGrid(m_texture->getRefTexture().getLevel(0), 4, tcu::Vec4(1.0f, 1.0f, 1.0f, 1.0f), 232 tcu::Vec4(0.0f, 0.0f, 0.0f, 1.0f)); 277 tcu::fillWithGrid(m_texture->getRefTexture().getLevel(0), 4, tcu::Vec4(1.0f, 1.0f, 1.0f, 1.0f), 278 tcu::Vec4(0.0f, 0.0f, 0.0f, 1.0f)); 281 tcu::fillWithGrid(m_texture->getRefTexture().getLevel(1), 4, tcu::Vec4(0.0f, 1.0f, 1.0f, 1.0f), 282 tcu::Vec4(1.0f, 0.0f, 0.0f, 1.0f)); 322 tcu::fillWithGrid(m_texture->getRefTexture().getLevel(0), 4, tcu::Vec4(1.0f, 1.0f, 1.0f, 1.0f), 323 tcu::Vec4(0.0f, 0.0f, 0.0f, 1.0f)) [all...] |
/external/deqp/external/vulkancts/modules/vulkan/pipeline/ |
vktPipelineMultisampleInterpolationTests.cpp | 43 VertexDataNdc (const tcu::Vec4& posNdc) : positionNdc(posNdc) {} 45 tcu::Vec4 positionNdc; 50 VertexDataNdcScreen (const tcu::Vec4& posNdc, const tcu::Vec2& posScreen) : positionNdc(posNdc), positionScreen(posScreen) {} 52 tcu::Vec4 positionNdc; 58 VertexDataNdcBarycentric (const tcu::Vec4& posNdc, const tcu::Vec3& barCoord) : positionNdc(posNdc), barycentricCoord(barCoord) {} 60 tcu::Vec4 positionNdc; 145 vertices.push_back(VertexDataNdc(tcu::Vec4(-1.0f, -1.0f, 0.0f, 1.0f))); 146 vertices.push_back(VertexDataNdc(tcu::Vec4(-1.0f, 4.0f, 0.0f, 1.0f))); 147 vertices.push_back(VertexDataNdc(tcu::Vec4( 4.0f, -1.0f, 0.0f, 1.0f))); 194 << "layout(location = 0) in vec4 vs_in_position_ndc;\n [all...] |
/external/deqp/external/vulkancts/modules/vulkan/texture/ |
vktTextureFilteringAnisotropyTests.cpp | 44 using tcu::Vec4; 112 tcu::fillWithGrid(texture->getLevel(levelNdx, 0), gridSize, Vec4(0.0f, 0.0f, 0.0f, 1.0f), Vec4(1.0f)); 143 renderedFrame.getAccess(), renderedAnisotropyFrame.getAccess(), Vec4(0.05f), tcu::COMPARE_LOG_RESULT))
|
/external/deqp/framework/referencerenderer/ |
rrMultisamplePixelBufferAccess.cpp | 132 tcu::Vec4 sum; 215 tcu::Vec4 resolveMultisamplePixel (const MultisampleConstPixelBufferAccess& access, int x, int y) 217 tcu::Vec4 sum; 224 void clear (const MultisamplePixelBufferAccess& access, const tcu::Vec4& color)
|
/external/deqp/modules/gles3/stress/ |
es3sOcclusionQueryTests.cpp | 49 static const tcu::Vec4 OCCLUDER_COLOR = tcu::Vec4(0.0f, 0.0f, 1.0f, 1.0f); 50 static const tcu::Vec4 TARGET_COLOR = tcu::Vec4(1.0f, 0.0f, 0.0f, 1.0f); 107 "layout(location = 0) in mediump vec4 a_position;\n" 116 "layout(location = 0) out mediump vec4 dEQP_FragColor;\n" 117 "uniform mediump vec4 u_color;\n" 123 " dEQP_FragColor = vec4(u_color.xyz * (depth_gradient + bias), 1.0);\n"
|
/external/deqp/modules/glshared/ |
glsInteractionTestUtil.hpp | 96 tcu::Vec4 blendColor;
|
glsShaderPerformanceMeasurer.cpp | 37 using tcu::Vec4; 53 static inline float triQuadInterpolate (float x, float y, const tcu::Vec4& quad) 93 dst[getVtxIndex(x, y, gridSizeX)*numComponents + compNdx] = triQuadInterpolate(xf, yf, tcu::Vec4(spec.p00[compNdx], spec.p01[compNdx], spec.p10[compNdx], spec.p11[compNdx])); 176 Vec4(-1.0f, -1.0f, 0.0f, 1.0f), 177 Vec4( 1.0f, -1.0f, 0.0f, 1.0f), 178 Vec4(-1.0f, 1.0f, 0.0f, 1.0f), 179 Vec4( 1.0f, 1.0f, 0.0f, 1.0f)));
|
/external/deqp/external/vulkancts/modules/vulkan/draw/ |
vktDrawDifferingInterpolationTests.cpp | 118 "layout(location = 0) in vec4 in_position;\n" 119 "layout(location = 1) in vec4 in_color;\n" 120 "layout(location = 0) ${qualifier:opt} out vec4 out_color;\n" 122 " vec4 gl_Position;\n" 133 "layout(location = 0) ${qualifier:opt} in vec4 in_color;\n" 134 "layout(location = 0) out vec4 out_color;\n" 233 tcu::Vec4(-0.8f, -0.7f, 1.0f, 1.0f), // Coord 234 tcu::Vec4(1.0f, 0.0f, 0.0f, 1.0f)), // Color 237 tcu::Vec4(0.0f, 0.4f, 0.5f, 0.5f), // Coord 238 tcu::Vec4(0.0f, 1.0f, 0.0f, 1.0f)), // Colo [all...] |
/external/deqp/framework/randomshaders/ |
rsgProgramExecutor.cpp | 110 inline float interpolateVertexQuad (const tcu::Vec4& quad, float x, float y) 121 return interpolateVertexQuad(tcu::Vec4(x0y0, (x0y0+x1y1)*0.5f, (x0y0+x1y1)*0.5f, x1y1), x, y); 129 inline float interpolateFragment (const tcu::Vec4& quad, float x, float y) 156 dst.component(ndx).asFloat(dstComp) = interpolateFragment(tcu::Vec4(vtx0.component(ndx).asFloat(), vtx1.component(ndx).asFloat(), vtx2.component(ndx).asFloat(), vtx3.component(ndx).asFloat()), x, y); 203 inline tcu::RGBA toColor (tcu::Vec4 rgba) 348 tcu::Vec4 c = tcu::Vec4(colorValue.component(0).asFloat(cNdx),
|
/external/deqp/modules/gles2/accuracy/ |
es2aVaryingInterpolationTests.cpp | 46 using tcu::Vec4; 64 static void renderReference (const SurfaceAccess& dst, const float coords[4*3], const Vec4& wCoord, const Vec3& scale, const Vec3& bias) 91 Vec4 color = Vec4(r, g, b, 1.0f); 166 "attribute highp vec4 a_position;\n" 182 " gl_FragColor = vec4(v_coords * u_scale + u_bias, 1.0);\n" 202 Vec4 wCoord = m_projective ? Vec4(1.3f, 0.8f, 0.6f, 2.0f) : Vec4(1.0f, 1.0f, 1.0f, 1.0f);
|
/external/deqp/modules/gles3/accuracy/ |
es3aVaryingInterpolationTests.cpp | 48 using tcu::Vec4; 66 static void renderReference (const SurfaceAccess& dst, const float coords[4*3], const Vec4& wCoord, const Vec3& scale, const Vec3& bias) 93 Vec4 color = Vec4(r, g, b, 1.0f); 170 "in highp vec4 a_position;\n" 184 "layout(location = 0) out ${PRECISION} vec4 o_color;\n" 188 " o_color = vec4(v_coords * u_scale + u_bias, 1.0);\n" 208 Vec4 wCoord = m_projective ? Vec4(1.3f, 0.8f, 0.6f, 2.0f) : Vec4(1.0f, 1.0f, 1.0f, 1.0f) [all...] |
/external/deqp/modules/gles3/functional/ |
es3fFboMultisampleTests.cpp | 48 using tcu::Vec4; 163 flatShader.setColor(*getCurrentContext(), flatShaderID, Vec4(r,g,b,a) * (colorFmtInfo.valueMax-colorFmtInfo.valueMin) + colorFmtInfo.valueMin); 194 flatShader.setColor(*getCurrentContext(), flatShaderID, Vec4(0.0f, 0.0f, c, 1.0f) * (colorFmtInfo.valueMax-colorFmtInfo.valueMin) + colorFmtInfo.valueMin); 218 flatShader.setColor(*getCurrentContext(), flatShaderID, Vec4(0.0f, c, 0.0f, 1.0f) * (colorFmtInfo.valueMax-colorFmtInfo.valueMin) + colorFmtInfo.valueMin); 287 glClearBufferfv(GL_COLOR, 0, Vec4(1.0f, 0.0f, 0.0f, 1.0f).getPtr()); 304 glClearBufferfv(GL_COLOR, 0, Vec4(0.0f, 0.0f, 1.0f, 1.0f).getPtr()); 308 glClearBufferfv(GL_COLOR, 0, Vec4(0.0f, 1.0f, 0.0f, 1.0f).getPtr());
|
es3fBlendTests.cpp | 52 using tcu::Vec4; 88 Vec4 blendColor; 96 Vec4 blendColor_) 175 static const Vec4 baseGradientColors[4] = 177 Vec4(0.0f, 0.5f, 1.0f, 0.5f), 178 Vec4(0.5f, 0.0f, 0.5f, 1.0f), 179 Vec4(0.5f, 1.0f, 0.5f, 0.0f), 180 Vec4(1.0f, 0.5f, 0.0f, 0.5f) 189 m_secondQuad.color[i] = (Vec4(1.0f) - baseGradientColors[i] - 0.5f) * 1.0f + 0.5f; 400 const Vec4 defaultBlendColor(0.2f, 0.4f, 0.6f, 0.8f) [all...] |
/external/deqp/external/openglcts/modules/common/ |
glcShaderMultisampleInterpolationTests.cpp | 41 static bool operator<(tcu::Vec4 const& k1, tcu::Vec4 const& k2) 137 "in highp vec4 a_position;\n" 138 "in highp vec4 a_color;\n" 139 "sample out highp vec4 v_color;\n" 148 "sample in highp vec4 v_color;\n" 149 "out highp vec4 o_color;\n" 168 "sample in highp vec4 v_color;\n" 169 "out highp vec4 o_color;\n" 244 int countUniquePixels(const std::vector<tcu::Vec4>& pixels) [all...] |
/external/deqp/external/vulkancts/modules/vulkan/fragment_ops/ |
vktFragmentOperationsEarlyFragmentTests.cpp | 261 << "layout(location = 0) in highp vec4 position;\n" 264 << " vec4 gl_Position;\n" 282 << "layout(location = 0) out highp vec4 fragColor;\n" 291 << " fragColor = vec4(1.0, 1.0, 0.0, 1.0);\n" 375 const VkDeviceSize vertexBufferSizeBytes = sizeof(tcu::Vec4) * numVertices; 380 tcu::Vec4* const pVertices = reinterpret_cast<tcu::Vec4*>(vertexBufferAlloc->getHostPtr()); 382 pVertices[0] = tcu::Vec4( 1.0f, -1.0f, 0.5f, 1.0f); 383 pVertices[1] = tcu::Vec4(-1.0f, -1.0f, 0.0f, 1.0f); 384 pVertices[2] = tcu::Vec4(-1.0f, 1.0f, 0.5f, 1.0f) [all...] |
/external/deqp/external/vulkancts/modules/vulkan/ycbcr/ |
vktYCbCrFormatTests.cpp | 65 using tcu::Vec4; 414 fillGradient(&imageData, Vec4(0.0f), Vec4(1.0f)); 443 vector<Vec4> result; 444 vector<Vec4> reference; 446 Vec4 threshold (0.02f); 507 << TestLog::Image("Result", "Result Image", resAccess, Vec4(1.0f), Vec4(0.0f)) 508 << TestLog::Image("Reference", "Reference Image", refAccess, Vec4(1.0f), Vec4(0.0f)) [all...] |
/external/deqp/modules/gles3/scripts/ |
gen-conversions.py | 50 # + note: vec4(mat2) valid 61 # * legal to chain: vec4.rgba.xyzw.stpq 75 # - base type and size conversion at same time: vec4(bool), int(vec3) allowed? 254 inVec4 = [Vec4(0.0, 0.5, 0.75, 0.825), Vec4(1.0, 1.25, 1.125, 1.75), 255 Vec4(-0.5, -2.25, -4.875, 9.0), Vec4(-32.0, 64.0, -51.0, 24.0), 256 Vec4(-0.75, -1.0/31.0, 1.0/19.0, 1.0/4.0)] 262 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/framework/common/ |
tcuRasterizationVerifier.cpp | 80 bool isTriangleClockwise (const tcu::Vec4& p0, const tcu::Vec4& p1, const tcu::Vec4& p2) 320 static bool isPackedSSLineXMajor (const tcu::Vec4& packedLine) 340 InterpolationRange calcTriangleInterpolationWeights (const tcu::Vec4& p0, const tcu::Vec4& p1, const tcu::Vec4& p2, const tcu::Vec2& ndpixel) 665 tcu::clear(errorMask.getAccess(), tcu::Vec4(0.0f, 0.0f, 0.0f, 1.0f)); 695 tcu::Vec4 colorStackMin; 696 tcu::Vec4 colorStackMax [all...] |
/external/deqp/external/vulkancts/modules/vulkan/shaderrender/ |
vktShaderRenderBuiltinVarTests.cpp | 100 tcu::Vec4 color; 106 color = tcu::Vec4(1.0f, 0.0f, 0.0f, 1.0f); 108 color = tcu::Vec4(0.0f, 1.0f, 0.0f, 1.0f); 135 std::vector<Vec4> vertices; 141 vertices.push_back(Vec4( -0.75f, -0.75f, 0.0f, 1.0f)); 142 vertices.push_back(Vec4( 0.0f, -0.75f, 0.0f, 1.0f)); 143 vertices.push_back(Vec4( -0.37f, 0.75f, 0.0f, 1.0f)); 144 vertices.push_back(Vec4( 0.37f, 0.75f, 0.0f, 1.0f)); 145 vertices.push_back(Vec4( 0.75f, -0.75f, 0.0f, 1.0f)); 146 vertices.push_back(Vec4( 0.0f, -0.75f, 0.0f, 1.0f)) [all...] |