Lines Matching full:vec4
200 static inline tcu::Vec4 readDerivate (const tcu::ConstPixelBufferAccess& surface, const tcu::Vec4& derivScale, const tcu::Vec4& derivBias, int x, int y)
205 static inline tcu::UVec4 getCompExpBits (const tcu::Vec4& v)
326 static inline tcu::Vec4 getDerivateThreshold (const glu::Precision precision, const tcu::Vec4& valueMin, const tcu::Vec4& valueMax, const tcu::Vec4& expectedDerivate)
334 return tcu::Vec4(computeFloatingPointError(expectedDerivate[0], numAccurateBits[0]),
345 const tcu::Vec4& v;
348 LogVecComps (const tcu::Vec4& v_, int numComps_)
376 const tcu::Vec4& reference,
377 const tcu::Vec4& threshold,
378 const tcu::Vec4& scale,
379 const tcu::Vec4& bias,
393 const tcu::Vec4 resDerivate = readDerivate(result, scale, bias, x, y);
427 tcu::Vec4 evaluateAt (float screenX, float screenY) const;
430 tcu::Vec4 Linear2DFunctionEvaluator::evaluateAt (float screenX, float screenY) const
441 const tcu::Vec4& derivScale,
442 const tcu::Vec4& derivBias,
443 const tcu::Vec4& surfaceThreshold,
472 const tcu::Vec4 resultDerivative = readDerivate(result, derivScale, derivBias, x, y);
480 const tcu::Vec4 functionValueForward = (derivateFunc == DERIVATE_DFDX)
483 const tcu::Vec4 functionValueBackward = (derivateFunc == DERIVATE_DFDX)
572 tcu::Vec4 getSurfaceThreshold (void) const;
582 tcu::Vec4 m_coordMin;
583 tcu::Vec4 m_coordMax;
584 tcu::Vec4 m_derivScale;
585 tcu::Vec4 m_derivBias;
616 "in highp vec4 a_position;\n"
845 tcu::Vec4 TriangleDerivateCase::getSurfaceThreshold (void) const
854 const tcu::Vec4 normThreshold = intThreshold.asFloat() / 255.0f;
860 case SURFACETYPE_FLOAT_FBO: return tcu::Vec4(0.0f);
863 return tcu::Vec4(0.0f);
898 "layout(location = 0) out mediump vec4 o_color;\n"
910 fragmentParams["VALUE"] = m_dataType == glu::TYPE_FLOAT_VEC4 ? "vec4(1.0, 7.2, -1e5, 0.0)" :
915 m_dataType == glu::TYPE_FLOAT_VEC3 ? "vec4(res, 1.0)" :
916 m_dataType == glu::TYPE_FLOAT_VEC2 ? "vec4(res, 0.0, 1.0)" :
917 /* TYPE_FLOAT */ "vec4(res, 0.0, 0.0, 1.0)";
921 m_derivScale = tcu::Vec4(1e3f, 1e3f, 1e3f, 1e3f);
922 m_derivBias = tcu::Vec4(0.5f, 0.5f, 0.5f, 0.5f);
927 const tcu::Vec4 reference (0.0f); // Derivate of constant argument should always be 0
928 const tcu::Vec4 threshold = getSurfaceThreshold() / abs(m_derivScale);
983 m_dataType == glu::TYPE_FLOAT_VEC3 ? "floatBitsToUint(vec4(res, 1.0))" :
984 m_dataType == glu::TYPE_FLOAT_VEC2 ? "floatBitsToUint(vec4(res, 0.0, 1.0))" :
985 /* TYPE_FLOAT */ "floatBitsToUint(vec4(res, 0.0, 0.0, 1.0))";
990 m_dataType == glu::TYPE_FLOAT_VEC3 ? "vec4(res, 1.0)" :
991 m_dataType == glu::TYPE_FLOAT_VEC2 ? "vec4(res, 0.0, 1.0)" :
992 /* TYPE_FLOAT */ "vec4(res, 0.0, 0.0, 1.0)";
1000 m_coordMin = tcu::Vec4(-97.f, 0.2f, 71.f, 74.f);
1001 m_coordMax = tcu::Vec4(-13.2f, -77.f, 44.f, 76.f);
1005 m_coordMin = tcu::Vec4(-37.0f, 47.f, -7.f, 0.0f);
1006 m_coordMax = tcu::Vec4(-1.0f, 12.f, 7.f, 19.f);
1010 m_coordMin = tcu::Vec4(0.0f, -1.0f, 0.0f, 1.0f);
1011 m_coordMax = tcu::Vec4(1.0f, 1.0f, -1.0f, -1.0f);
1021 m_derivScale = tcu::Vec4(1.0f);
1022 m_derivBias = tcu::Vec4(0.0f);
1027 const tcu::Vec4 dx = (m_coordMax - m_coordMin) / tcu::Vec4(w, w, w*0.5f, -w*0.5f);
1028 const tcu::Vec4 dy = (m_coordMax - m_coordMin) / tcu::Vec4(h, h, h*0.5f, -h*0.5f);
1048 m_derivBias = tcu::Vec4(0.0f, 0.0f, 0.0f, 0.0f);
1054 const tcu::Vec4 xScale = tcu::Vec4(1.0f, 0.0f, 0.5f, -0.5f);
1055 const tcu::Vec4 yScale = tcu::Vec4(0.0f, 1.0f, 0.5f, -0.5f);
1056 const tcu::Vec4 surfaceThreshold = getSurfaceThreshold() / abs(m_derivScale);
1062 const tcu::Vec4 scale = isX ? xScale : yScale;
1063 const tcu::Vec4 reference = ((m_coordMax - m_coordMin) / div) * scale;
1064 const tcu::Vec4 opThreshold = getDerivateThreshold(m_precision, m_coordMin*scale, m_coordMax*scale, reference);
1065 const tcu::Vec4 threshold = max(surfaceThreshold, opThreshold);
1101 const tcu::Vec4 valueRamp = (m_coordMax - m_coordMin);
1121 const tcu::Vec4 dx = ((m_coordMax - m_coordMin) / w) * xScale;
1122 const tcu::Vec4 dy = ((m_coordMax - m_coordMin) / h) * yScale;
1123 const tcu::Vec4 reference = tcu::abs(dx) + tcu::abs(dy);
1124 const tcu::Vec4 dxThreshold = getDerivateThreshold(m_precision, m_coordMin*xScale, m_coordMax*xScale, dx);
1125 const tcu::Vec4 dyThreshold = getDerivateThreshold(m_precision, m_coordMin*yScale, m_coordMax*yScale, dy);
1126 const tcu::Vec4 threshold = max(surfaceThreshold, max(dxThreshold, dyThreshold));
1151 tcu::Vec4 m_texValueMin;
1152 tcu::Vec4 m_texValueMax;
1188 " ${PRECISION} vec4 tex = texture(u_sampler, v_coord);\n"
1209 m_dataType == glu::TYPE_FLOAT_VEC3 ? "floatBitsToUint(vec4(res, 1.0))" :
1210 m_dataType == glu::TYPE_FLOAT_VEC2 ? "floatBitsToUint(vec4(res, 0.0, 1.0))" :
1211 /* TYPE_FLOAT */ "floatBitsToUint(vec4(res, 0.0, 0.0, 1.0))";
1216 m_dataType == glu::TYPE_FLOAT_VEC3 ? "vec4(res, 1.0)" :
1217 m_dataType == glu::TYPE_FLOAT_VEC2 ? "vec4(res, 0.0, 1.0)" :
1218 /* TYPE_FLOAT */ "vec4(res, 0.0, 0.0, 1.0)";
1232 m_texValueMin = tcu::Vec4(-97.f, 0.2f, 71.f, 74.f);
1233 m_texValueMax = tcu::Vec4(-13.2f, -77.f, 44.f, 76.f);
1237 m_texValueMin = tcu::Vec4(-37.0f, 47.f, -7.f, 0.0f);
1238 m_texValueMax = tcu::Vec4(-1.0f, 12.f, 7.f, 19.f);
1242 m_texValueMin = tcu::Vec4(0.0f, -1.0f, 0.0f, 1.0f);
1243 m_texValueMax = tcu::Vec4(1.0f, 1.0f, -1.0f, -1.0f);
1259 m_coordMin = tcu::Vec4(0.0f);
1260 m_coordMax = tcu::Vec4(1.0f);
1271 const tcu::Vec4 s = tcu::Vec4(xf, yf, (xf+yf)/2.0f, 1.0f - (xf+yf)/2.0f);
1283 m_derivScale = tcu::Vec4(1.0f);
1284 m_derivBias = tcu::Vec4(0.0f);
1292 const tcu::Vec4 dx = (m_texValueMax - m_texValueMin) / tcu::Vec4(w, w, w*0.5f, -w*0.5f);
1293 const tcu::Vec4 dy = (m_texValueMax - m_texValueMin) / tcu::Vec4(h, h, h*0.5f, -h*0.5f);
1313 m_derivBias = tcu::Vec4(0.0f, 0.0f, 0.0f, 0.0f);
1346 const tcu::Vec4 xScale = tcu::Vec4(1.0f, 0.0f, 0.5f, -0.5f);
1347 const tcu::Vec4 yScale = tcu::Vec4(0.0f, 1.0f, 0.5f, -0.5f);
1351 const tcu::Vec4 surfaceThreshold = getSurfaceThreshold() / abs(m_derivScale);
1357 const tcu::Vec4 scale = isX ? xScale : yScale;
1358 const tcu::Vec4 reference = ((m_texValueMax - m_texValueMin) / div) * scale;
1359 const tcu::Vec4 opThreshold = getDerivateThreshold(m_precision, m_texValueMin*scale, m_texValueMax*scale, reference);
1360 const tcu::Vec4 threshold = max(surfaceThreshold, opThreshold);
1393 const tcu::Vec4 valueRamp = (m_texValueMax - m_texValueMin);
1410 const tcu::Vec4 dx = ((m_texValueMax - m_texValueMin) / w) * xScale;
1411 const tcu::Vec4 dy = ((m_texValueMax - m_texValueMin) / h) * yScale;
1412 const tcu::Vec4 reference = tcu::abs(dx) + tcu::abs(dy);
1413 const tcu::Vec4 dxThreshold = getDerivateThreshold(m_precision, m_texValueMin*xScale, m_texValueMax*xScale, dx);
1414 const tcu::Vec4 dyThreshold = getDerivateThreshold(m_precision, m_texValueMin*yScale, m_texValueMax*yScale, dy);
1415 const tcu::Vec4 threshold = max(surfaceThreshold, max(dxThreshold, dyThreshold));