Lines Matching defs:format
184 std::string getIdentity(int opType, Format format)
190 switch (format)
193 DE_FATAL("Unhandled format!");
232 return subgroups::getFormatNameForGLSL(format) + "(0)";
236 return subgroups::getFormatNameForGLSL(format) + "(1)";
242 return subgroups::getFormatNameForGLSL(format) + "(intBitsToFloat(0x7f800000))";
246 return subgroups::getFormatNameForGLSL(format) + "(0x7fffffff)";
250 return subgroups::getFormatNameForGLSL(format) + "(0xffffffffu)";
262 return subgroups::getFormatNameForGLSL(format) + "(intBitsToFloat(0xff800000))";
266 return subgroups::getFormatNameForGLSL(format) + "(0x80000000)";
270 return subgroups::getFormatNameForGLSL(format) + "(0u)";
280 return subgroups::getFormatNameForGLSL(format) + "(~0)";
284 return subgroups::getFormatNameForGLSL(format) + "(0)";
288 return subgroups::getFormatNameForGLSL(format) + "(0)";
292 std::string getCompare(int opType, Format format, std::string lhs, std::string rhs)
294 std::string formatName = subgroups::getFormatNameForGLSL(format);
295 switch (format)
342 Format format;
349 string fmt = subgroups::getFormatNameForGLSL(caseDef.format);
360 " if (" + getCompare(caseDef.opType, caseDef.format, "allResult", "refResult") + ") {\n"
371 " if (" + getCompare(caseDef.opType, caseDef.format, "allResult", "refResult") + ") {\n"
383 expectedSelfResult = getIdentity(caseDef.opType, caseDef.format);
389 " if (" + getCompare(caseDef.opType, caseDef.format, "selfResult", expectedSelfResult) + ") {\n"
404 " if (" + getCompare(caseDef.opType, caseDef.format, "idhashFmt", "iFmt") + ") {\n"
406 " tempResult |= " + getCompare(caseDef.opType, caseDef.format, "partitionedResult", "subsetResult") + " ? (0x4u << N) : 0u;\n"
418 " if (" + getCompare(caseDef.opType, caseDef.format, "idhashFmt", "iFmt") + ") {\n"
420 " tempResult |= " + getCompare(caseDef.opType, caseDef.format, "partitionedResult", "subsetResult") + " ? (0x20000u << N) : 0u;\n"
454 << " " << subgroups::getFormatNameForGLSL(caseDef.format) << " data[" << subgroups::maxSupportedSubgroupSize() << "];\n"
480 << " " << subgroups::getFormatNameForGLSL(caseDef.format) << " data[" << subgroups::maxSupportedSubgroupSize() << "];\n"
506 << " " << subgroups::getFormatNameForGLSL(caseDef.format) << " data[" << subgroups::maxSupportedSubgroupSize() << "];\n"
538 << " " << subgroups::getFormatNameForGLSL(caseDef.format) << " data[" << subgroups::maxSupportedSubgroupSize() << "];\n"
577 << " " << subgroups::getFormatNameForGLSL(caseDef.format) << " data[];\n"
607 " " + subgroups::getFormatNameForGLSL(caseDef.format) + " data[];\n"
636 " " + subgroups::getFormatNameForGLSL(caseDef.format) + " data[];\n"
667 " " + subgroups::getFormatNameForGLSL(caseDef.format) + " data[];\n"
695 " " + subgroups::getFormatNameForGLSL(caseDef.format) + " data[];\n"
721 " " + subgroups::getFormatNameForGLSL(caseDef.format) + " data[];\n"
745 if (subgroups::isDoubleFormat(caseDef.format) &&
772 inputData.format = caseDef.format;
820 inputData.format = caseDef.format;
846 inputData.format = caseDef.format;
892 const Format format = formats[formatIndex];
899 switch (format)
952 subgroups::getFormatNameForGLSL(format);
955 const CaseDefinition caseDef = {opTypeIndex, SHADER_STAGE_COMPUTE_BIT, format};
961 const CaseDefinition caseDef = {opTypeIndex, SHADER_STAGE_ALL_GRAPHICS, format};
968 const CaseDefinition caseDef = {opTypeIndex, stages[stageIndex], format};