Lines Matching defs:format
132 std::string getOpTypeOperation(int opType, Format format, std::string lhs, std::string rhs)
150 switch (format)
168 switch (format)
186 switch (format)
202 switch (format)
218 switch (format)
234 std::string getIdentity(int opType, Format format)
240 switch (format)
243 DE_FATAL("Unhandled format!");
282 return subgroups::getFormatNameForGLSL(format) + "(0)";
286 return subgroups::getFormatNameForGLSL(format) + "(1)";
292 return subgroups::getFormatNameForGLSL(format) + "(intBitsToFloat(0x7f800000))";
296 return subgroups::getFormatNameForGLSL(format) + "(0x7fffffff)";
300 return subgroups::getFormatNameForGLSL(format) + "(0xffffffffu)";
312 return subgroups::getFormatNameForGLSL(format) + "(intBitsToFloat(0xff800000))";
316 return subgroups::getFormatNameForGLSL(format) + "(0x80000000)";
320 return subgroups::getFormatNameForGLSL(format) + "(0u)";
330 return subgroups::getFormatNameForGLSL(format) + "(~0)";
334 return subgroups::getFormatNameForGLSL(format) + "(0)";
338 return subgroups::getFormatNameForGLSL(format) + "(0)";
342 std::string getCompare(int opType, Format format, std::string lhs, std::string rhs)
344 std::string formatName = subgroups::getFormatNameForGLSL(format);
345 switch (format)
392 Format format;
431 << " " << subgroups::getFormatNameForGLSL(caseDef.format) << " ref = "
432 << getIdentity(caseDef.opType, caseDef.format) << ";\n"
438 << " ref = " << getOpTypeOperation(caseDef.opType, caseDef.format, "ref", "data[index]") << ";\n"
441 << " tempResult = " << getCompare(caseDef.opType, caseDef.format, "ref",
446 << " ref = " << getIdentity(caseDef.opType, caseDef.format) << ";\n"
451 << " ref = " << getOpTypeOperation(caseDef.opType, caseDef.format, "ref", "data[index]") << ";\n"
454 << " tempResult |= " << getCompare(caseDef.opType, caseDef.format, "ref",
472 << " " << subgroups::getFormatNameForGLSL(caseDef.format) << " data[" << subgroups::maxSupportedSubgroupSize() << "];\n"
497 << " " << subgroups::getFormatNameForGLSL(caseDef.format) << " data[" << subgroups::maxSupportedSubgroupSize() << "];\n"
522 << " " << subgroups::getFormatNameForGLSL(caseDef.format) << " data[" << subgroups::maxSupportedSubgroupSize() << "];\n"
553 << " " << subgroups::getFormatNameForGLSL(caseDef.format) << " data[" << subgroups::maxSupportedSubgroupSize() << "];\n"
603 " " + subgroups::getFormatNameForGLSL(caseDef.format) + " ref = "
604 + getIdentity(caseDef.opType, caseDef.format) + ";\n"
610 " ref = " + getOpTypeOperation(caseDef.opType, caseDef.format, "ref", "data[index]") + ";\n"
613 " tempResult = " + getCompare(caseDef.opType, caseDef.format, "ref", getOpTypeName(caseDef.opType) + "(data[gl_SubgroupInvocationID])") + " ? 0x1u : 0u;\n"
617 " ref = " + getIdentity(caseDef.opType, caseDef.format) + ";\n"
622 " ref = " + getOpTypeOperation(caseDef.opType, caseDef.format, "ref", "data[index]") + ";\n"
625 " tempResult |= " + getCompare(caseDef.opType, caseDef.format, "ref", getOpTypeName(caseDef.opType) + "(data[gl_SubgroupInvocationID])") + " ? 0x2u : 0u;\n"
646 << " " << subgroups::getFormatNameForGLSL(caseDef.format) << " data[];\n"
675 " " + subgroups::getFormatNameForGLSL(caseDef.format) + " data[];\n"
703 " " + subgroups::getFormatNameForGLSL(caseDef.format) + " data[];\n"
733 " " + subgroups::getFormatNameForGLSL(caseDef.format) + " data[];\n"
760 " " + subgroups::getFormatNameForGLSL(caseDef.format) + " data[];\n"
785 " " + subgroups::getFormatNameForGLSL(caseDef.format) + " data[];\n"
809 if (subgroups::isDoubleFormat(caseDef.format) &&
836 inputData.format = caseDef.format;
884 inputData.format = caseDef.format;
910 inputData.format = caseDef.format;
955 const Format format = formats[formatIndex];
962 switch (format)
1017 const CaseDefinition caseDef = {opTypeIndex, SHADER_STAGE_COMPUTE_BIT, format};
1020 subgroups::getFormatNameForGLSL(format),
1025 const CaseDefinition caseDef = {opTypeIndex, SHADER_STAGE_ALL_GRAPHICS, format};
1028 subgroups::getFormatNameForGLSL(format),
1034 const CaseDefinition caseDef = {opTypeIndex, stages[stageIndex], format};
1035 SubgroupFactory<CaseDefinition>::addFunctionCaseWithPrograms(framebufferGroup.get(), de::toLower(op) + "_" + subgroups::getFormatNameForGLSL(format) +