Lines Matching refs:checks

957 	std::stringstream decls, checks;
1097 checks << " int inboundcoords, clampedLayer;\n";
1098 checks << " " << vecType << " expectedIB2;\n";
1102 checks << " [[unroll]] for (int c = 0; c <= 10; ++c) {\n";
1104 checks << " [[unroll]] for (int c = -10; c <= 10; ++c) {\n";
1109 checks << " [[dont_unroll]] for (int c = 1023; c >= 0; --c) {\n";
1111 checks << " [[dont_unroll]] for (int c = 1050; c >= -1050; --c) {\n";
1115 checks << " int idx = smod(gl_VertexIndex * " << numComponents << ", " << refDataNumElements << ");\n";
1117 checks << " int idx = smod(c * " << numComponents << ", " << refDataNumElements << ");\n";
1237 checks << " expectedIB = zzzz;\n";
1238 checks << " inboundcoords = 0;\n";
1239 checks << " int paddedinboundcoords = 0;\n";
1246 checks << " expectedIB.x = refData[" << idx << "];\n";
1249 checks << " expectedIB.y = refData[" << idx << "+1];\n";
1253 checks << " expectedIB.y = 0;\n";
1257 checks << " expectedIB.z = refData[" << idx << "+2];\n";
1258 checks << " expectedIB.w = refData[" << idx << "+3];\n";
1262 checks << " expectedIB.z = 0;\n";
1263 checks << " expectedIB.w = " << defaultw << ";\n";
1273 checks << " int paddedinboundcoords = " << refDataNumElements / numComponents << ";\n";
1280 checks << " inboundcoords = " << layout.refData.size() / (formatIsR64(format) ? sizeof(deUint64) : sizeof(deUint32)) / numComponents << ";\n";
1300 checks << " inboundcoords = " << coordDim << ";\n";
1307 checks << " if (c < 0 || c >= " << inboundcoords << ") " << genStore(m_data.descriptorType, vecType, bufType, coord) << ";\n";
1311 checks << " if (c < 0 || c >= " << inboundcoords << ") " << genAtomic(m_data.descriptorType, bufType, coord) << ";\n";
1328 checks << " inboundcoords = " << coordDim << ";\n";
1339 checks << " temp.x = attr;\n";
1340 checks << " temp.y = 0l;\n";
1341 checks << " temp.z = 0l;\n";
1342 checks << " temp.w = 0l;\n";
1343 checks << " if (gl_VertexIndex >= 0 && gl_VertexIndex < inboundcoords) temp.x -= expectedIB.x; else temp -= zzzz;\n";
1347 checks << " temp = " << genFetch(m_data, numComponents, vecType, coord, "0") << ";\n";
1348 checks << " if (gl_VertexIndex >= 0 && gl_VertexIndex < inboundcoords) temp -= expectedIB; else temp -= " << expectedOOB << ";\n";
1351 checks << " accum += abs(temp);\n";
1358 checks << " temp = " << genFetch(m_data, numComponents, vecType, coord, "0") << ";\n";
1360 checks << " expectedIB2 = expectedIB;\n";
1364 checks << " if (c >= 0 && c < inboundcoords) expectedIB2 += " << vecType << "(c, 0, 0, 0);\n";
1370 checks << " if (temp == zzzz) temp = " << vecType << "(0);\n";
1372 checks << " else if (temp == zzzo) temp = " << vecType << "(0);\n";
1373 checks << " else temp = " << vecType << "(1);\n";
1377 checks << " if (c >= 0 && c < " << m_data.samples << ") temp -= expectedIB2; else temp = " << vecType << "(0);\n";
1414 checks << " if (c >= 0 && c < inboundcoords) {\n"
1420 checks << " else if (temp == " << expectedOOB << ") temp = " << vecType << "(0);\n";
1423 checks << " else if (temp == zzzz || temp == zzzo) temp = " << vecType << "(0);\n";
1428 checks << " else if (c >= 0 && c < paddedinboundcoords && temp == expectedIB2) temp = " << vecType << "(0);\n";
1435 checks << " else if (temp == zzzo) temp = " << vecType << "(0);\n";
1439 checks << " else if (temp == " << getStoreValue(m_data.descriptorType, numComponents, vecType, bufType) << ") temp = " << vecType << "(0);\n";
1444 checks << " else if (temp == " << vecType << "(";
1446 if (mask & (1 << vecIdx)) checks << storeValue;
1447 else checks << "0";
1449 if (vecIdx != 3) checks << ",";
1451 checks << ")) temp = " << vecType << "(0);\n";
1458 checks << " else if (c == inboundcoords && temp == " << expectedOOB2 << ") temp = " << vecType << "(0);\n";
1460 checks << " else if (c == inboundcoords && temp == " << expectedOOB3 << ") temp = " << vecType << "(0);\n";
1463 checks << " else temp = " << vecType << "(1);\n";
1466 checks << " accum += abs(temp);\n";
1473 checks << " if (c != 0) temp = " << genFetch(m_data, numComponents, vecType, coord0, "c") << "; else temp = " << vecType << "(0);\n";
1474 checks << " if (c != 0) temp -= " << expectedOOB << ";\n";
1475 checks << " accum += abs(temp);\n";
1483 checks << " expectedIB2 = expectedIB;\n";
1488 checks << " clampedLayer = clamp(c, 0, " << coordDim-1 << ");\n";
1489 checks << " expectedIB2 += " << vecType << "(clampedLayer, 0, 0, 0);\n";
1510 checks << " temp = texture(texture0_1, " << coordNorm << ");\n";
1511 checks << normexpected.str();
1512 checks << " accum += abs(temp);\n";
1513 checks << " temp = textureLod(texture0_1, " << coordNorm << ", 0.0f);\n";
1514 checks << normexpected.str();
1515 checks << " accum += abs(temp);\n";
1516 checks << " temp = textureGrad(texture0_1, " << coordNorm << ", " << genCoord("1.0", numNormalizedCoords, m_data.samples, i) << ", " << genCoord("1.0", numNormalizedCoords, m_data.samples, i) << ");\n";
1517 checks << normexpected.str();
1518 checks << " accum += abs(temp);\n";
1538 checks << " temp = textureSize(texture0_1, 0)" << sizeswiz <<";\n";
1539 checks << " accum += abs(temp);\n";
1542 checks << " temp = textureSize(texture0_1, " << -i << ")" << sizeswiz <<";\n";
1543 checks << " accum += abs(temp);\n";
1544 checks << " temp = textureSize(texture0_1, " << (std::numeric_limits<deInt32>::max() - i) << ")" << sizeswiz <<";\n";
1545 checks << " accum += abs(temp);\n";
1549 checks << " temp = textureSize(texture0_1)" << sizeswiz <<";\n";
1550 checks << " accum += abs(temp);\n";
1551 checks << " temp = textureSamples(texture0_1).xxxx;\n";
1552 checks << " accum += abs(temp);\n";
1559 checks << " temp = imageSize(image0_1)" << sizeswiz <<";\n";
1560 checks << " accum += abs(temp);\n";
1564 checks << " temp = imageSize(image0_1)" << sizeswiz <<";\n";
1565 checks << " accum += abs(temp);\n";
1566 checks << " temp = imageSamples(image0_1).xxxx;\n";
1567 checks << " accum += abs(temp);\n";
1574 checks << " temp = " << vecType << "(ssbo0_1.val.length());\n";
1575 checks << " accum += abs(temp);\n";
1576 checks << " temp = " << vecType << "(ssbo0_1_pad.val.length());\n";
1577 checks << " accum += abs(temp);\n";
1581 checks << " }\n";
1588 checks << " temp_ql = " << qLevelType << "(textureQueryLevels(texture0_1));\n";
1589 checks << " temp = " << vecType << "(temp_ql);\n";
1590 checks << " accum += abs(temp);\n";
1599 checks << " vec2 lod = textureQueryLod(texture0_1, gl_FragCoord.x" << lod_str << "\n";
1600 checks << " temp_ql = " << qLevelType << "(ceil(abs(lod.x) + abs(lod.y)));\n";
1601 checks << " temp = " << vecType << "(temp_ql);\n";
1602 checks << " accum += abs(temp);\n";
1629 checks.str() +