Home
last modified time | relevance | path

Searched refs:caseDef (Results 1 – 25 of 105) sorted by relevance

12345

/third_party/vk-gl-cts/external/openglcts/modules/common/subgroups/
DglcSubgroupsVoteTests.cpp115 void initFrameBufferPrograms (SourceCollections& programCollection, CaseDefinition caseDef) in initFrameBufferPrograms() argument
118 …BOOL == caseDef.format || FORMAT_R32G32_BOOL == caseDef.format || FORMAT_R32G32B32_BOOL == caseDef in initFrameBufferPrograms()
120 if (SHADER_STAGE_FRAGMENT_BIT != caseDef.shaderStage) in initFrameBufferPrograms()
123 if (SHADER_STAGE_FRAGMENT_BIT == caseDef.shaderStage) in initFrameBufferPrograms()
134 else if (SHADER_STAGE_VERTEX_BIT != caseDef.shaderStage) in initFrameBufferPrograms()
138 (OPTYPE_ALL == caseDef.opType) ? in initFrameBufferPrograms()
139 " result = " + getOpTypeName(caseDef.opType) + in initFrameBufferPrograms()
141 " result |= " + getOpTypeName(caseDef.opType) + in initFrameBufferPrograms()
144 : (OPTYPE_ANY == caseDef.opType) ? in initFrameBufferPrograms()
145 " result = " + getOpTypeName(caseDef.opType) + in initFrameBufferPrograms()
[all …]
DglcSubgroupsQuadTests.cpp89 void initFrameBufferPrograms (SourceCollections& programCollection, CaseDefinition caseDef) in initFrameBufferPrograms() argument
95 if (SHADER_STAGE_VERTEX_BIT != caseDef.shaderStage) in initFrameBufferPrograms()
103 if (SHADER_STAGE_VERTEX_BIT == caseDef.shaderStage) in initFrameBufferPrograms()
113 …<< " " << subgroups::getFormatNameForGLSL(caseDef.format) << " data[" << subgroups::maxSupportedS… in initFrameBufferPrograms()
119 << swapTable[caseDef.opType]; in initFrameBufferPrograms()
121 if (OPTYPE_QUAD_BROADCAST == caseDef.opType) in initFrameBufferPrograms()
123 vertexSrc << " " << subgroups::getFormatNameForGLSL(caseDef.format) << " op = " in initFrameBufferPrograms()
124 …<< getOpTypeName(caseDef.opType) << "(data[gl_SubgroupInvocationID], " << caseDef.direction << "u)… in initFrameBufferPrograms()
125 << " uint otherID = (gl_SubgroupInvocationID & ~0x3u) + " << caseDef.direction << "u;\n"; in initFrameBufferPrograms()
129 vertexSrc << " " << subgroups::getFormatNameForGLSL(caseDef.format) << " op = " in initFrameBufferPrograms()
[all …]
DglcSubgroupsPartitionedTests.cpp345 string getTestString(const CaseDefinition &caseDef) in getTestString() argument
349 string fmt = subgroups::getFormatNameForGLSL(caseDef.format); in getTestString()
358 …" " + fmt + " allResult = " + getOpTypeNamePartitioned(caseDef.opType) + "(data[gl_SubgroupInvoca… in getTestString()
359 …" " + fmt + " refResult = " + getOpTypeName(caseDef.opType) + "(data[gl_SubgroupInvocationID]);\n" in getTestString()
360 " if (" + getCompare(caseDef.opType, caseDef.format, "allResult", "refResult") + ") {\n" in getTestString()
369 …" " + fmt + " allResult = " + getOpTypeNamePartitioned(caseDef.opType) + "(data[gl_SubgroupInvo… in getTestString()
370 …" " + fmt + " refResult = " + getOpTypeName(caseDef.opType) + "(data[gl_SubgroupInvocationID]);… in getTestString()
371 " if (" + getCompare(caseDef.opType, caseDef.format, "allResult", "refResult") + ") {\n" in getTestString()
381 if (caseDef.opType >= OPTYPE_EXCLUSIVE_ADD && in getTestString()
382 caseDef.opType <= OPTYPE_EXCLUSIVE_XOR) { in getTestString()
[all …]
DglcSubgroupsArithmeticTests.cpp395 void initFrameBufferPrograms (SourceCollections& programCollection, CaseDefinition caseDef) in initFrameBufferPrograms() argument
402 if (SHADER_STAGE_VERTEX_BIT != caseDef.shaderStage) in initFrameBufferPrograms()
405 switch (caseDef.opType) in initFrameBufferPrograms()
431 << " " << subgroups::getFormatNameForGLSL(caseDef.format) << " ref = " in initFrameBufferPrograms()
432 << getIdentity(caseDef.opType, caseDef.format) << ";\n" in initFrameBufferPrograms()
438 …<< " ref = " << getOpTypeOperation(caseDef.opType, caseDef.format, "ref", "data[index]") << "… in initFrameBufferPrograms()
441 << " tempResult = " << getCompare(caseDef.opType, caseDef.format, "ref", in initFrameBufferPrograms()
442 getOpTypeName(caseDef.opType) + "(data[gl_SubgroupInvocationID])") << " ? 0x1u : 0u;\n" in initFrameBufferPrograms()
446 << " ref = " << getIdentity(caseDef.opType, caseDef.format) << ";\n" in initFrameBufferPrograms()
451 …<< " ref = " << getOpTypeOperation(caseDef.opType, caseDef.format, "ref", "data[index]") <<… in initFrameBufferPrograms()
[all …]
DglcSubgroupsBallotBroadcastTests.cpp82 std::string getBodySource(CaseDefinition caseDef) in getBodySource() argument
89 if (OPTYPE_BROADCAST == caseDef.opType) in getBodySource()
96 << " " << subgroups::getFormatNameForGLSL(caseDef.format) in getBodySource()
142 void initFrameBufferPrograms(SourceCollections& programCollection, CaseDefinition caseDef) in initFrameBufferPrograms() argument
146 if (SHADER_STAGE_VERTEX_BIT != caseDef.shaderStage) in initFrameBufferPrograms()
149 std::string bdyStr = getBodySource(caseDef); in initFrameBufferPrograms()
151 if (SHADER_STAGE_VERTEX_BIT == caseDef.shaderStage) in initFrameBufferPrograms()
160 …<< " " << subgroups::getFormatNameForGLSL(caseDef.format) << " data1[" << subgroups::maxSupported… in initFrameBufferPrograms()
172 else if (SHADER_STAGE_GEOMETRY_BIT == caseDef.shaderStage) in initFrameBufferPrograms()
183 …<< " " << subgroups::getFormatNameForGLSL(caseDef.format) << " data1[" <<subgroups::maxSupportedS… in initFrameBufferPrograms()
[all …]
DglcSubgroupsBuiltinMaskVarTests.cpp62 std::string subgroupMask (const CaseDefinition& caseDef) in subgroupMask() argument
70 << " uvec4 var = " << caseDef.varName << ";\n" in subgroupMask()
74 if ("gl_SubgroupEqMask" == caseDef.varName) in subgroupMask()
81 else if ("gl_SubgroupGeMask" == caseDef.varName) in subgroupMask()
88 else if ("gl_SubgroupGtMask" == caseDef.varName) in subgroupMask()
95 else if ("gl_SubgroupLeMask" == caseDef.varName) in subgroupMask()
102 else if ("gl_SubgroupLtMask" == caseDef.varName) in subgroupMask()
138 void initFrameBufferPrograms(SourceCollections& programCollection, CaseDefinition caseDef) in initFrameBufferPrograms() argument
142 if (SHADER_STAGE_VERTEX_BIT != caseDef.shaderStage) in initFrameBufferPrograms()
145 if (SHADER_STAGE_VERTEX_BIT == caseDef.shaderStage) in initFrameBufferPrograms()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/subgroups/
DvktSubgroupsVoteTests.cpp144 const string getStageTestSource (const CaseDefinition& caseDef) in getStageTestSource() argument
146 const bool formatIsBoolean = fmtIsBoolean(caseDef.format); in getStageTestSource()
147 const string op = getOpTypeName(caseDef.opType); in getStageTestSource()
148 const string fmt = subgroups::getFormatNameForGLSL(caseDef.format); in getStageTestSource()
149 const string computePart = isAllComputeStages(caseDef.shaderStage) in getStageTestSource()
154 (OPTYPE_ALL == caseDef.opType || OPTYPE_ALL_ARB == caseDef.opType) ? in getStageTestSource()
158 : (OPTYPE_ANY == caseDef.opType || OPTYPE_ANY_ARB == caseDef.opType) ? in getStageTestSource()
162 : (OPTYPE_ALLEQUAL == caseDef.opType || OPTYPE_ALLEQUAL_ARB == caseDef.opType) ? in getStageTestSource()
176 void initFrameBufferPrograms (SourceCollections& programCollection, CaseDefinition caseDef) in initFrameBufferPrograms() argument
179 const bool spirv14required = isAllRayTracingStages(caseDef.shaderStage); in initFrameBufferPrograms()
[all …]
DvktSubgroupsBallotBroadcastTests.cpp90 string getExtHeader (const CaseDefinition& caseDef) in getExtHeader() argument
92 return (caseDef.extShaderSubGroupBallotTests ? "#extension GL_ARB_shader_ballot: enable\n" in getExtHeader()
96 + subgroups::getAdditionalExtensionForFormat(caseDef.format); in getExtHeader()
99 string getTestSrc (const CaseDefinition &caseDef) in getTestSrc() argument
106 const string fmt = subgroups::getFormatNameForGLSL(caseDef.format); in getTestSrc()
108 if (caseDef.extShaderSubGroupBallotTests) in getTestSrc()
126 if (caseDef.subgroupSizeControl) in getTestSrc()
127 max = caseDef.requiredSubgroupSize; in getTestSrc()
136 if (caseDef.opType == OPTYPE_BROADCAST) in getTestSrc()
153 else if (caseDef.opType == OPTYPE_BROADCAST_NONCONST) in getTestSrc()
[all …]
DvktSubgroupsBallotTests.cpp68 void initFrameBufferPrograms (SourceCollections& programCollection, CaseDefinition caseDef) in initFrameBufferPrograms() argument
71 …const string extensionHeader = (caseDef.extShaderSubGroupBallotTests ? "OpExtension \"SPV_KHR… in initFrameBufferPrograms()
72 …const string capabilityBallotHeader = (caseDef.extShaderSubGroupBallotTests ? "OpCapability Sub… in initFrameBufferPrograms()
77 if (VK_SHADER_STAGE_VERTEX_BIT != caseDef.shaderStage) in initFrameBufferPrograms()
80 if (VK_SHADER_STAGE_VERTEX_BIT == caseDef.shaderStage) in initFrameBufferPrograms()
175 …"%15 = " + (caseDef.extShaderSubGroupBallotTests ? "OpSubgroupBallotKHR %10 %13" : "OpGroupNonUnif… in initFrameBufferPrograms()
190 …"%42 = " + (caseDef.extShaderSubGroupBallotTests ? "OpSubgroupBallotKHR %10 %41" : "OpGroupNonUnif… in initFrameBufferPrograms()
199 …"%52 = " + (caseDef.extShaderSubGroupBallotTests ? "OpSubgroupBallotKHR %10 %51" : "OpGroupNonUnif… in initFrameBufferPrograms()
219 else if (VK_SHADER_STAGE_GEOMETRY_BIT == caseDef.shaderStage) in initFrameBufferPrograms()
254 << (*caseDef.geometryPointSizeSupported ? "OpCapability GeometryPointSize\n" : "") in initFrameBufferPrograms()
[all …]
DvktSubgroupsArithmeticTests.cpp174 string getExtHeader (const CaseDefinition& caseDef) in getExtHeader() argument
178 subgroups::getAdditionalExtensionForFormat(caseDef.format); in getExtHeader()
181 string getIndexVars (const CaseDefinition& caseDef) in getIndexVars() argument
183 switch (caseDef.scanType) in getIndexVars()
192 string getTestSrc (const CaseDefinition& caseDef) in getTestSrc() argument
194 const string indexVars = getIndexVars(caseDef); in getTestSrc()
198 " " + subgroups::getFormatNameForGLSL(caseDef.format) + " ref = " in getTestSrc()
199 + getIdentity(caseDef.op, caseDef.format) + ";\n" in getTestSrc()
205 " ref = " + getOpOperation(caseDef.op, caseDef.format, "ref", "data[index]") + ";\n" in getTestSrc()
208 …" tempRes = " + getCompare(caseDef.op, caseDef.format, "ref", getOpTypeName(caseDef.op, caseDef.s… in getTestSrc()
[all …]
DvktSubgroupsShuffleTests.cpp99 string getExtHeader (const CaseDefinition& caseDef) in getExtHeader() argument
101 const string eSource = (OPTYPE_SHUFFLE == caseDef.opType || OPTYPE_SHUFFLE_XOR == caseDef.opType) in getExtHeader()
107 + subgroups::getAdditionalExtensionForFormat(caseDef.format); in getExtHeader()
110 vector<string> getPerStageHeadDeclarations (const CaseDefinition& caseDef) in getPerStageHeadDeclarations() argument
112 const string formatName = subgroups::getFormatNameForGLSL(caseDef.format); in getPerStageHeadDeclarations()
113 const deUint32 stageCount = subgroups::getStagesCount(caseDef.shaderStage); in getPerStageHeadDeclarations()
114 const bool fragment = (caseDef.shaderStage & VK_SHADER_STAGE_FRAGMENT_BIT) != 0; in getPerStageHeadDeclarations()
130 const string b2Layout = ((caseDef.argType == ArgType::DYNAMIC) ? "std430" : "std140"); in getPerStageHeadDeclarations()
131 const string b2Type = ((caseDef.argType == ArgType::DYNAMIC) ? "readonly buffer" : "uniform"); in getPerStageHeadDeclarations()
148 vector<string> getFramebufferPerStageHeadDeclarations (const CaseDefinition& caseDef) in getFramebufferPerStageHeadDeclarations() argument
[all …]
DvktSubgroupsShapeTests.cpp85 string getExtHeader (const CaseDefinition& caseDef) in getExtHeader() argument
87 const string testExtensions = (OPTYPE_CLUSTERED == caseDef.opType) in getExtHeader()
96 string getBodySource (const CaseDefinition& caseDef) in getBodySource() argument
103 if (OPTYPE_CLUSTERED == caseDef.opType) in getBodySource()
156 vector<string> getFramebufferPerStageHeadDeclarations (const CaseDefinition& caseDef) in getFramebufferPerStageHeadDeclarations() argument
160 DE_UNREF(caseDef); in getFramebufferPerStageHeadDeclarations()
170 void initFrameBufferPrograms (SourceCollections& programCollection, CaseDefinition caseDef) in initFrameBufferPrograms() argument
173 const string extHeader = getExtHeader(caseDef); in initFrameBufferPrograms()
174 const string testSrc = getBodySource(caseDef); in initFrameBufferPrograms()
175 const vector<string> headDeclarations = getFramebufferPerStageHeadDeclarations(caseDef); in initFrameBufferPrograms()
[all …]
DvktSubgroupsBuiltinMaskVarTests.cpp138 static inline string subgroupComparison (const CaseDefinition& caseDef) in subgroupComparison() argument
140 const string spirvOp = getTestSpirvOp(caseDef.testType); in subgroupComparison()
141 const string result = (VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT == caseDef.shaderStage) in subgroupComparison()
148 static inline string varSubgroupMask (const CaseDefinition& caseDef) in varSubgroupMask() argument
150 const string spirvBuiltin = getTestSpirvBuiltinName(caseDef.testType); in varSubgroupMask()
151 const string result = (VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT == caseDef.shaderStage) in varSubgroupMask()
158 string subgroupMask (const CaseDefinition& caseDef) in subgroupMask() argument
160 const string varName = getTestVarName(caseDef.testType); in subgroupMask()
161 const string comp = getTestMathOp(caseDef.testType); in subgroupMask()
184 void initFrameBufferPrograms(SourceCollections& programCollection, CaseDefinition caseDef) in initFrameBufferPrograms() argument
[all …]
DvktSubgroupsClusteredTests.cpp102 string getExtHeader (CaseDefinition& caseDef) in getExtHeader() argument
106 subgroups::getAdditionalExtensionForFormat(caseDef.format); in getExtHeader()
109 string getTestSrc (CaseDefinition& caseDef) in getTestSrc() argument
111 const string formatName = subgroups::getFormatNameForGLSL(caseDef.format); in getTestSrc()
112 const string opTypeName = getOpTypeName(caseDef.op); in getTestSrc()
113 const string identity = getIdentity(caseDef.op, caseDef.format); in getTestSrc()
114 const string opOperation = getOpOperation(caseDef.op, caseDef.format, "ref", "data[index]"); in getTestSrc()
115 const string compare = getCompare(caseDef.op, caseDef.format, "ref", "op"); in getTestSrc()
156 void initFrameBufferPrograms (SourceCollections& programCollection, CaseDefinition caseDef) in initFrameBufferPrograms() argument
159 const string extHeader = getExtHeader(caseDef); in initFrameBufferPrograms()
[all …]
DvktSubgroupsQuadTests.cpp112 string getTestSrc (const CaseDefinition &caseDef) in getTestSrc() argument
125 const string fmt = subgroups::getFormatNameForGLSL(caseDef.format); in getTestSrc()
126 const string op = getOpTypeName(caseDef.opType); in getTestSrc()
130 << swapTable[caseDef.opType] in getTestSrc()
133 if (caseDef.opType == OPTYPE_QUAD_BROADCAST) in getTestSrc()
144 else if (caseDef.opType == OPTYPE_QUAD_BROADCAST_NONCONST) in getTestSrc()
180 void initFrameBufferPrograms (SourceCollections& programCollection, CaseDefinition caseDef) in initFrameBufferPrograms() argument
182 …const SpirvVersion spirvVersion = (caseDef.opType == OPTYPE_QUAD_BROADCAST_NONCONST) ? SPIRV_VER… in initFrameBufferPrograms()
185 … buildOptions, caseDef.shaderStage, caseDef.format, *caseDef.geometryPointSizeSupported, getExtHea… in initFrameBufferPrograms()
188 void initPrograms (SourceCollections& programCollection, CaseDefinition caseDef) in initPrograms() argument
[all …]
DvktSubgroupsSizeControlTests.cpp68 struct CaseDefinition caseDef; member
102 const CaseDefinition& caseDef, in getRequiredSubgroupSizeFromMode() argument
109 switch (caseDef.requiredSubgroupSizeMode) in getRequiredSubgroupSizeFromMode()
144 …if (checkInternalData->caseDef.requiredSubgroupSizeMode != REQUIRED_SUBGROUP_SIZE_NONE && data[i] … in checkVertexPipelineStages()
185 if (checkInternalData->caseDef.requiredSubgroupSizeMode != REQUIRED_SUBGROUP_SIZE_NONE && in checkFragmentPipelineStages()
228 if (checkInternalData->caseDef.requiredSubgroupSizeMode != REQUIRED_SUBGROUP_SIZE_NONE && in checkCompute()
279 …if ((checkInternalData->caseDef.pipelineShaderStageCreateFlags == VK_PIPELINE_SHADER_STAGE_CREATE_… in checkComputeRequireFull()
280 && checkInternalData->caseDef.spirvVersion < SPIRV_VERSION_1_6) in checkComputeRequireFull()
288 …if ((checkInternalData->caseDef.pipelineShaderStageCreateFlags == VK_PIPELINE_SHADER_STAGE_CREATE_… in checkComputeRequireFull()
289 && checkInternalData->caseDef.spirvVersion < SPIRV_VERSION_1_6) in checkComputeRequireFull()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/subgroups/
DvktSubgroupsVoteTests.cpp144 const string getStageTestSource (const CaseDefinition& caseDef) in getStageTestSource() argument
146 const bool formatIsBoolean = fmtIsBoolean(caseDef.format); in getStageTestSource()
147 const string op = getOpTypeName(caseDef.opType); in getStageTestSource()
148 const string fmt = subgroups::getFormatNameForGLSL(caseDef.format); in getStageTestSource()
149 const string computePart = isAllComputeStages(caseDef.shaderStage) in getStageTestSource()
154 (OPTYPE_ALL == caseDef.opType || OPTYPE_ALL_ARB == caseDef.opType) ? in getStageTestSource()
158 : (OPTYPE_ANY == caseDef.opType || OPTYPE_ANY_ARB == caseDef.opType) ? in getStageTestSource()
162 : (OPTYPE_ALLEQUAL == caseDef.opType || OPTYPE_ALLEQUAL_ARB == caseDef.opType) ? in getStageTestSource()
176 void initFrameBufferPrograms (SourceCollections& programCollection, CaseDefinition caseDef) in initFrameBufferPrograms() argument
179 const bool spirv14required = isAllRayTracingStages(caseDef.shaderStage); in initFrameBufferPrograms()
[all …]
DvktSubgroupsBallotBroadcastTests.cpp90 string getExtHeader (const CaseDefinition& caseDef) in getExtHeader() argument
92 return (caseDef.extShaderSubGroupBallotTests ? "#extension GL_ARB_shader_ballot: enable\n" in getExtHeader()
96 + subgroups::getAdditionalExtensionForFormat(caseDef.format); in getExtHeader()
99 string getTestSrc (const CaseDefinition &caseDef) in getTestSrc() argument
106 const string fmt = subgroups::getFormatNameForGLSL(caseDef.format); in getTestSrc()
108 if (caseDef.extShaderSubGroupBallotTests) in getTestSrc()
126 if (caseDef.subgroupSizeControl) in getTestSrc()
127 max = caseDef.requiredSubgroupSize; in getTestSrc()
136 if (caseDef.opType == OPTYPE_BROADCAST) in getTestSrc()
153 else if (caseDef.opType == OPTYPE_BROADCAST_NONCONST) in getTestSrc()
[all …]
DvktSubgroupsArithmeticTests.cpp174 string getExtHeader (const CaseDefinition& caseDef) in getExtHeader() argument
178 subgroups::getAdditionalExtensionForFormat(caseDef.format); in getExtHeader()
181 string getIndexVars (const CaseDefinition& caseDef) in getIndexVars() argument
183 switch (caseDef.scanType) in getIndexVars()
192 string getTestSrc (const CaseDefinition& caseDef) in getTestSrc() argument
194 const string indexVars = getIndexVars(caseDef); in getTestSrc()
198 " " + subgroups::getFormatNameForGLSL(caseDef.format) + " ref = " in getTestSrc()
199 + getIdentity(caseDef.op, caseDef.format) + ";\n" in getTestSrc()
205 " ref = " + getOpOperation(caseDef.op, caseDef.format, "ref", "data[index]") + ";\n" in getTestSrc()
208 …" tempRes = " + getCompare(caseDef.op, caseDef.format, "ref", getOpTypeName(caseDef.op, caseDef.s… in getTestSrc()
[all …]
DvktSubgroupsBallotTests.cpp68 void initFrameBufferPrograms (SourceCollections& programCollection, CaseDefinition caseDef) in initFrameBufferPrograms() argument
71 …const string extensionHeader = (caseDef.extShaderSubGroupBallotTests ? "OpExtension \"SPV_KHR… in initFrameBufferPrograms()
72 …const string capabilityBallotHeader = (caseDef.extShaderSubGroupBallotTests ? "OpCapability Sub… in initFrameBufferPrograms()
77 if (VK_SHADER_STAGE_VERTEX_BIT != caseDef.shaderStage) in initFrameBufferPrograms()
80 if (VK_SHADER_STAGE_VERTEX_BIT == caseDef.shaderStage) in initFrameBufferPrograms()
175 …"%15 = " + (caseDef.extShaderSubGroupBallotTests ? "OpSubgroupBallotKHR %10 %13" : "OpGroupNonUnif… in initFrameBufferPrograms()
190 …"%42 = " + (caseDef.extShaderSubGroupBallotTests ? "OpSubgroupBallotKHR %10 %41" : "OpGroupNonUnif… in initFrameBufferPrograms()
199 …"%52 = " + (caseDef.extShaderSubGroupBallotTests ? "OpSubgroupBallotKHR %10 %51" : "OpGroupNonUnif… in initFrameBufferPrograms()
219 else if (VK_SHADER_STAGE_GEOMETRY_BIT == caseDef.shaderStage) in initFrameBufferPrograms()
254 << (*caseDef.geometryPointSizeSupported ? "OpCapability GeometryPointSize\n" : "") in initFrameBufferPrograms()
[all …]
DvktSubgroupsShuffleTests.cpp99 string getExtHeader (const CaseDefinition& caseDef) in getExtHeader() argument
101 const string eSource = (OPTYPE_SHUFFLE == caseDef.opType || OPTYPE_SHUFFLE_XOR == caseDef.opType) in getExtHeader()
107 + subgroups::getAdditionalExtensionForFormat(caseDef.format); in getExtHeader()
110 vector<string> getPerStageHeadDeclarations (const CaseDefinition& caseDef) in getPerStageHeadDeclarations() argument
112 const string formatName = subgroups::getFormatNameForGLSL(caseDef.format); in getPerStageHeadDeclarations()
113 const deUint32 stageCount = subgroups::getStagesCount(caseDef.shaderStage); in getPerStageHeadDeclarations()
114 const bool fragment = (caseDef.shaderStage & VK_SHADER_STAGE_FRAGMENT_BIT) != 0; in getPerStageHeadDeclarations()
130 const string b2Layout = ((caseDef.argType == ArgType::DYNAMIC) ? "std430" : "std140"); in getPerStageHeadDeclarations()
131 const string b2Type = ((caseDef.argType == ArgType::DYNAMIC) ? "readonly buffer" : "uniform"); in getPerStageHeadDeclarations()
148 vector<string> getFramebufferPerStageHeadDeclarations (const CaseDefinition& caseDef) in getFramebufferPerStageHeadDeclarations() argument
[all …]
DvktSubgroupsShapeTests.cpp85 string getExtHeader (const CaseDefinition& caseDef) in getExtHeader() argument
87 const string testExtensions = (OPTYPE_CLUSTERED == caseDef.opType) in getExtHeader()
96 string getBodySource (const CaseDefinition& caseDef) in getBodySource() argument
103 if (OPTYPE_CLUSTERED == caseDef.opType) in getBodySource()
156 vector<string> getFramebufferPerStageHeadDeclarations (const CaseDefinition& caseDef) in getFramebufferPerStageHeadDeclarations() argument
160 DE_UNREF(caseDef); in getFramebufferPerStageHeadDeclarations()
170 void initFrameBufferPrograms (SourceCollections& programCollection, CaseDefinition caseDef) in initFrameBufferPrograms() argument
173 const string extHeader = getExtHeader(caseDef); in initFrameBufferPrograms()
174 const string testSrc = getBodySource(caseDef); in initFrameBufferPrograms()
175 const vector<string> headDeclarations = getFramebufferPerStageHeadDeclarations(caseDef); in initFrameBufferPrograms()
[all …]
DvktSubgroupsBuiltinMaskVarTests.cpp138 static inline string subgroupComparison (const CaseDefinition& caseDef) in subgroupComparison() argument
140 const string spirvOp = getTestSpirvOp(caseDef.testType); in subgroupComparison()
141 const string result = (VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT == caseDef.shaderStage) in subgroupComparison()
148 static inline string varSubgroupMask (const CaseDefinition& caseDef) in varSubgroupMask() argument
150 const string spirvBuiltin = getTestSpirvBuiltinName(caseDef.testType); in varSubgroupMask()
151 const string result = (VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT == caseDef.shaderStage) in varSubgroupMask()
158 string subgroupMask (const CaseDefinition& caseDef) in subgroupMask() argument
160 const string varName = getTestVarName(caseDef.testType); in subgroupMask()
161 const string comp = getTestMathOp(caseDef.testType); in subgroupMask()
184 void initFrameBufferPrograms(SourceCollections& programCollection, CaseDefinition caseDef) in initFrameBufferPrograms() argument
[all …]
DvktSubgroupsClusteredTests.cpp102 string getExtHeader (CaseDefinition& caseDef) in getExtHeader() argument
106 subgroups::getAdditionalExtensionForFormat(caseDef.format); in getExtHeader()
109 string getTestSrc (CaseDefinition& caseDef) in getTestSrc() argument
111 const string formatName = subgroups::getFormatNameForGLSL(caseDef.format); in getTestSrc()
112 const string opTypeName = getOpTypeName(caseDef.op); in getTestSrc()
113 const string identity = getIdentity(caseDef.op, caseDef.format); in getTestSrc()
114 const string opOperation = getOpOperation(caseDef.op, caseDef.format, "ref", "data[index]"); in getTestSrc()
115 const string compare = getCompare(caseDef.op, caseDef.format, "ref", "op"); in getTestSrc()
156 void initFrameBufferPrograms (SourceCollections& programCollection, CaseDefinition caseDef) in initFrameBufferPrograms() argument
159 const string extHeader = getExtHeader(caseDef); in initFrameBufferPrograms()
[all …]
DvktSubgroupsQuadTests.cpp112 string getTestSrc (const CaseDefinition &caseDef) in getTestSrc() argument
125 const string fmt = subgroups::getFormatNameForGLSL(caseDef.format); in getTestSrc()
126 const string op = getOpTypeName(caseDef.opType); in getTestSrc()
130 << swapTable[caseDef.opType] in getTestSrc()
133 if (caseDef.opType == OPTYPE_QUAD_BROADCAST) in getTestSrc()
144 else if (caseDef.opType == OPTYPE_QUAD_BROADCAST_NONCONST) in getTestSrc()
180 void initFrameBufferPrograms (SourceCollections& programCollection, CaseDefinition caseDef) in initFrameBufferPrograms() argument
182 …const SpirvVersion spirvVersion = (caseDef.opType == OPTYPE_QUAD_BROADCAST_NONCONST) ? SPIRV_VER… in initFrameBufferPrograms()
185 … buildOptions, caseDef.shaderStage, caseDef.format, *caseDef.geometryPointSizeSupported, getExtHea… in initFrameBufferPrograms()
188 void initPrograms (SourceCollections& programCollection, CaseDefinition caseDef) in initPrograms() argument
[all …]

12345