Home
last modified time | relevance | path

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

123

/external/deqp/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 …]
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 …]
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 …]
DglcSubgroupsShuffleTests.cpp94 const std::string DeclSource(CaseDefinition caseDef, int baseBinding) in DeclSource() argument
99 " " + subgroups::getFormatNameForGLSL(caseDef.format) + " data1[];\n" in DeclSource()
107 const std::string TestSource(CaseDefinition caseDef) in TestSource() argument
119 " " + subgroups::getFormatNameForGLSL(caseDef.format) + " op = " in TestSource()
120 + getOpTypeName(caseDef.opType) + "(data1[gl_SubgroupInvocationID], id_in);\n" in TestSource()
121 " uint id = " + idTable[caseDef.opType] + ";\n" in TestSource()
134 void initFrameBufferPrograms (SourceCollections& programCollection, CaseDefinition caseDef) in initFrameBufferPrograms() argument
138 if (SHADER_STAGE_VERTEX_BIT != caseDef.shaderStage) in initFrameBufferPrograms()
142 (OPTYPE_SHUFFLE == caseDef.opType || OPTYPE_SHUFFLE_XOR == caseDef.opType) ? in initFrameBufferPrograms()
146 const std::string testSource = TestSource(caseDef); in initFrameBufferPrograms()
[all …]
DglcSubgroupsBallotOtherTests.cpp96 std::string getBodySource(CaseDefinition caseDef) in getBodySource() argument
114 switch (caseDef.opType) in getBodySource()
240 void initFrameBufferPrograms(SourceCollections& programCollection, CaseDefinition caseDef) in initFrameBufferPrograms() argument
244 if (SHADER_STAGE_VERTEX_BIT != caseDef.shaderStage) in initFrameBufferPrograms()
247 std::string bdyStr = getBodySource(caseDef); in initFrameBufferPrograms()
249 if (SHADER_STAGE_VERTEX_BIT == caseDef.shaderStage) in initFrameBufferPrograms()
266 else if (SHADER_STAGE_GEOMETRY_BIT == caseDef.shaderStage) in initFrameBufferPrograms()
286 else if (SHADER_STAGE_TESS_CONTROL_BIT == caseDef.shaderStage) in initFrameBufferPrograms()
310 else if (SHADER_STAGE_TESS_EVALUATION_BIT == caseDef.shaderStage) in initFrameBufferPrograms()
333 void initPrograms(SourceCollections& programCollection, CaseDefinition caseDef) in initPrograms() argument
[all …]
DglcSubgroupsBuiltinVarTests.cpp322 void initFrameBufferPrograms (SourceCollections& programCollection, CaseDefinition caseDef) in initFrameBufferPrograms() argument
337 if (SHADER_STAGE_VERTEX_BIT != caseDef.shaderStage) in initFrameBufferPrograms()
340 if (SHADER_STAGE_VERTEX_BIT == caseDef.shaderStage) in initFrameBufferPrograms()
356 else if (SHADER_STAGE_TESS_EVALUATION_BIT == caseDef.shaderStage) in initFrameBufferPrograms()
390 else if (SHADER_STAGE_TESS_CONTROL_BIT == caseDef.shaderStage) in initFrameBufferPrograms()
425 else if (SHADER_STAGE_GEOMETRY_BIT == caseDef.shaderStage) in initFrameBufferPrograms()
448 void initPrograms(SourceCollections& programCollection, CaseDefinition caseDef) in initPrograms() argument
450 if (SHADER_STAGE_COMPUTE_BIT == caseDef.shaderStage) in initPrograms()
575 void supportedCheck (Context& context, CaseDefinition caseDef) in supportedCheck() argument
577 DE_UNREF(caseDef); in supportedCheck()
[all …]
DglcSubgroupsShapeTests.cpp81 void initFrameBufferPrograms (SourceCollections& programCollection, CaseDefinition caseDef) in initFrameBufferPrograms() argument
84 std::string extension = (OPTYPE_CLUSTERED == caseDef.opType) ? in initFrameBufferPrograms()
90 if (SHADER_STAGE_VERTEX_BIT != caseDef.shaderStage) in initFrameBufferPrograms()
98 if (OPTYPE_CLUSTERED == caseDef.opType) in initFrameBufferPrograms()
146 if (SHADER_STAGE_VERTEX_BIT == caseDef.shaderStage) in initFrameBufferPrograms()
163 else if (SHADER_STAGE_GEOMETRY_BIT == caseDef.shaderStage) in initFrameBufferPrograms()
184 else if (SHADER_STAGE_TESS_CONTROL_BIT == caseDef.shaderStage) in initFrameBufferPrograms()
208 else if (SHADER_STAGE_TESS_EVALUATION_BIT == caseDef.shaderStage) in initFrameBufferPrograms()
232 void initPrograms(SourceCollections& programCollection, CaseDefinition caseDef) in initPrograms() argument
234 std::string extension = (OPTYPE_CLUSTERED == caseDef.opType) ? in initPrograms()
[all …]
/external/deqp/external/vulkancts/modules/vulkan/subgroups/
DvktSubgroupsVoteTests.cpp142 const string stageTestSource(CaseDefinition caseDef) in stageTestSource() argument
144 const bool formatIsBoolean = fmtIsBoolean(caseDef.format); in stageTestSource()
146 const string op = getOpTypeName(caseDef.opType); in stageTestSource()
147 const string fmt = subgroups::getFormatNameForGLSL(caseDef.format); in stageTestSource()
150 (OPTYPE_ALL == caseDef.opType || OPTYPE_ALL_ARB == caseDef.opType) ? in stageTestSource()
154 : (OPTYPE_ANY == caseDef.opType || OPTYPE_ANY_ARB == caseDef.opType) ? in stageTestSource()
158 : (OPTYPE_ALLEQUAL == caseDef.opType || OPTYPE_ALLEQUAL_ARB == caseDef.opType) ? in stageTestSource()
172 void initFrameBufferPrograms (SourceCollections& programCollection, CaseDefinition caseDef) in initFrameBufferPrograms() argument
175 const bool formatIsBoolean = fmtIsBoolean(caseDef.format); in initFrameBufferPrograms()
176 const bool arbFunctions = caseDef.opType > OPTYPE_LAST_NON_ARB; in initFrameBufferPrograms()
[all …]
DvktSubgroupsBuiltinMaskVarTests.cpp67 std::string subgroupComparison (const CaseDefinition& caseDef) in subgroupComparison() argument
69 if ("gl_SubgroupEqMask" == caseDef.varName) in subgroupComparison()
71 if (VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT == caseDef.shaderStage) in subgroupComparison()
76 else if ("gl_SubgroupGeMask" == caseDef.varName) in subgroupComparison()
78 if (VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT == caseDef.shaderStage) in subgroupComparison()
83 else if ("gl_SubgroupGtMask" == caseDef.varName) in subgroupComparison()
85 if (VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT == caseDef.shaderStage) in subgroupComparison()
90 else if ("gl_SubgroupLeMask" == caseDef.varName) in subgroupComparison()
92 if (VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT == caseDef.shaderStage) in subgroupComparison()
97 else if ("gl_SubgroupLtMask" == caseDef.varName) in subgroupComparison()
[all …]
DvktSubgroupsBallotBroadcastTests.cpp90 std::string getExtHeader(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 std::string getTestSrc(const CaseDefinition &caseDef) in getTestSrc() argument
107 if (caseDef.extShaderSubGroupBallotTests) in getTestSrc()
125 if (caseDef.subgroupSizeControl) in getTestSrc()
126 max = caseDef.requiredSubgroupSize; in getTestSrc()
135 const std::string fmt = subgroups::getFormatNameForGLSL(caseDef.format); in getTestSrc()
137 if (caseDef.opType == OPTYPE_BROADCAST) in getTestSrc()
154 else if (caseDef.opType == OPTYPE_BROADCAST_NONCONST) in getTestSrc()
[all …]
DvktSubgroupsBallotTests.cpp63 void initFrameBufferPrograms(SourceCollections& programCollection, CaseDefinition caseDef) in initFrameBufferPrograms() argument
68 …const string extensionHeader = (caseDef.extShaderSubGroupBallotTests ? "OpExtension \"SPV_KHR_sha… in initFrameBufferPrograms()
69 …const string capabilityBallotHeader = (caseDef.extShaderSubGroupBallotTests ? "OpCapability Subgr… in initFrameBufferPrograms()
73 if (VK_SHADER_STAGE_VERTEX_BIT != caseDef.shaderStage) in initFrameBufferPrograms()
76 if (VK_SHADER_STAGE_VERTEX_BIT == caseDef.shaderStage) in initFrameBufferPrograms()
171 …"%15 = " + (caseDef.extShaderSubGroupBallotTests ? "OpSubgroupBallotKHR %10 %13" : "OpGroupNonUnif… in initFrameBufferPrograms()
186 …"%42 = " + (caseDef.extShaderSubGroupBallotTests ? "OpSubgroupBallotKHR %10 %41" : "OpGroupNonUnif… in initFrameBufferPrograms()
195 …"%52 = " + (caseDef.extShaderSubGroupBallotTests ? "OpSubgroupBallotKHR %10 %51" : "OpGroupNonUnif… in initFrameBufferPrograms()
215 else if (VK_SHADER_STAGE_GEOMETRY_BIT == caseDef.shaderStage) in initFrameBufferPrograms()
249 << (*caseDef.geometryPointSizeSupported ? "OpCapability GeometryPointSize\n" : "") in initFrameBufferPrograms()
[all …]
DvktSubgroupsArithmeticTests.cpp168 std::string getExtHeader(CaseDefinition caseDef) in getExtHeader() argument
172 subgroups::getAdditionalExtensionForFormat(caseDef.format); in getExtHeader()
175 std::string getIndexVars(CaseDefinition caseDef) in getIndexVars() argument
177 switch (caseDef.scanType) in getIndexVars()
190 std::string getTestSrc(CaseDefinition caseDef) in getTestSrc() argument
192 std::string indexVars = getIndexVars(caseDef); in getTestSrc()
196 " " + subgroups::getFormatNameForGLSL(caseDef.format) + " ref = " in getTestSrc()
197 + getIdentity(caseDef.op, caseDef.format) + ";\n" in getTestSrc()
203 " ref = " + getOpOperation(caseDef.op, caseDef.format, "ref", "data[index]") + ";\n" in getTestSrc()
206 …" tempRes = " + getCompare(caseDef.op, caseDef.format, "ref", getOpTypeName(caseDef.op, caseDef.s… in getTestSrc()
[all …]
DvktSubgroupsClusteredTests.cpp98 std::string getExtHeader(CaseDefinition caseDef) in getExtHeader() argument
102 subgroups::getAdditionalExtensionForFormat(caseDef.format); in getExtHeader()
105 std::string getTestSrc(CaseDefinition caseDef) in getTestSrc() argument
117 << " " << subgroups::getFormatNameForGLSL(caseDef.format) << " op = " in getTestSrc()
118 << getOpTypeName(caseDef.op) + "(data[gl_SubgroupInvocationID], clusterSize);\n" in getTestSrc()
121 << " " << subgroups::getFormatNameForGLSL(caseDef.format) << " ref = " in getTestSrc()
122 << getIdentity(caseDef.op, caseDef.format) << ";\n" in getTestSrc()
127 …<< " ref = " << getOpOperation(caseDef.op, caseDef.format, "ref", "data[index]") << ";\… in getTestSrc()
132 << " if (!" << getCompare(caseDef.op, caseDef.format, "ref", "op") << ")\n" in getTestSrc()
145 void initFrameBufferPrograms(SourceCollections& programCollection, CaseDefinition caseDef) in initFrameBufferPrograms() argument
[all …]
DvktSubgroupsShuffleTests.cpp96 const std::string DeclSource(CaseDefinition caseDef, int baseBinding) in DeclSource() argument
101 " " + subgroups::getFormatNameForGLSL(caseDef.format) + " data1[];\n" in DeclSource()
109 const std::string TestSource(CaseDefinition caseDef) in TestSource() argument
121 " " + subgroups::getFormatNameForGLSL(caseDef.format) + " op = " in TestSource()
122 + getOpTypeName(caseDef.opType) + "(data1[gl_SubgroupInvocationID], id_in);\n" in TestSource()
123 " uint id = " + idTable[caseDef.opType] + ";\n" in TestSource()
136 void initFrameBufferPrograms (SourceCollections& programCollection, CaseDefinition caseDef) in initFrameBufferPrograms() argument
142 if (VK_SHADER_STAGE_VERTEX_BIT != caseDef.shaderStage) in initFrameBufferPrograms()
146 (OPTYPE_SHUFFLE == caseDef.opType || OPTYPE_SHUFFLE_XOR == caseDef.opType) ? in initFrameBufferPrograms()
150 const std::string testSource = TestSource(caseDef); in initFrameBufferPrograms()
[all …]
DvktSubgroupsQuadTests.cpp119 std::string getTestSrc(const CaseDefinition &caseDef) in getTestSrc() argument
133 std::string fmt = subgroups::getFormatNameForGLSL(caseDef.format); in getTestSrc()
134 std::string op = getOpTypeName(caseDef.opType); in getTestSrc()
138 << swapTable[caseDef.opType] in getTestSrc()
141 if (caseDef.opType == OPTYPE_QUAD_BROADCAST) in getTestSrc()
152 else if (caseDef.opType == OPTYPE_QUAD_BROADCAST_NONCONST) in getTestSrc()
188 void initFrameBufferPrograms(SourceCollections& programCollection, CaseDefinition caseDef) in initFrameBufferPrograms() argument
190 …const vk::SpirvVersion spirvVersion = (caseDef.opType == OPTYPE_QUAD_BROADCAST_NONCONST) ? vk::S… in initFrameBufferPrograms()
193 … buildOptions, caseDef.shaderStage, caseDef.format, *caseDef.geometryPointSizeSupported, getExtHea… in initFrameBufferPrograms()
196 void initPrograms(SourceCollections& programCollection, CaseDefinition caseDef) in initPrograms() argument
[all …]
DvktSubgroupsPartitionedTests.cpp174 std::string getExtHeader(CaseDefinition caseDef) in getExtHeader() argument
179 subgroups::getAdditionalExtensionForFormat(caseDef.format); in getExtHeader()
182 string getTestString(const CaseDefinition &caseDef) in getTestString() argument
184 Operator op = caseDef.op; in getTestString()
185 ScanType st = caseDef.scanType; in getTestString()
189 string fmt = subgroups::getFormatNameForGLSL(caseDef.format); in getTestString()
200 " if (" + getCompare(op, caseDef.format, "allResult", "refResult") + ") {\n" in getTestString()
211 " if (" + getCompare(op, caseDef.format, "allResult", "refResult") + ") {\n" in getTestString()
222 expectedSelfResult = getIdentity(op, caseDef.format); in getTestString()
227 " if (" + getCompare(op, caseDef.format, "selfResult", expectedSelfResult) + ") {\n" in getTestString()
[all …]
DvktSubgroupsBallotOtherTests.cpp98 std::string getBodySource(CaseDefinition caseDef) in getBodySource() argument
116 switch (caseDef.opType) in getBodySource()
226 void initFrameBufferPrograms(SourceCollections& programCollection, CaseDefinition caseDef) in initFrameBufferPrograms() argument
232 if (VK_SHADER_STAGE_VERTEX_BIT != caseDef.shaderStage) in initFrameBufferPrograms()
235 std::string bdyStr = getBodySource(caseDef); in initFrameBufferPrograms()
237 if (VK_SHADER_STAGE_VERTEX_BIT == caseDef.shaderStage) in initFrameBufferPrograms()
255 else if (VK_SHADER_STAGE_GEOMETRY_BIT == caseDef.shaderStage) in initFrameBufferPrograms()
269 << (*caseDef.geometryPointSizeSupported ? " gl_PointSize = gl_in[0].gl_PointSize;\n" : "") in initFrameBufferPrograms()
277 else if (VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT == caseDef.shaderStage) in initFrameBufferPrograms()
296 …<< (*caseDef.geometryPointSizeSupported ? " gl_out[gl_InvocationID].gl_PointSize = gl_in[gl_Invoc… in initFrameBufferPrograms()
[all …]
DvktSubgroupsBuiltinVarTests.cpp333 void initFrameBufferPrograms (SourceCollections& programCollection, CaseDefinition caseDef) in initFrameBufferPrograms() argument
380 if (VK_SHADER_STAGE_VERTEX_BIT != caseDef.shaderStage) in initFrameBufferPrograms()
383 if (VK_SHADER_STAGE_VERTEX_BIT == caseDef.shaderStage) in initFrameBufferPrograms()
460 else if (VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT == caseDef.shaderStage) in initFrameBufferPrograms()
666 else if (VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT == caseDef.shaderStage) in initFrameBufferPrograms()
872 else if (VK_SHADER_STAGE_GEOMETRY_BIT == caseDef.shaderStage) in initFrameBufferPrograms()
897 << (*caseDef.geometryPointSizeSupported ? in initFrameBufferPrograms()
947 << (*caseDef.geometryPointSizeSupported ? in initFrameBufferPrograms()
963 << (*caseDef.geometryPointSizeSupported ? in initFrameBufferPrograms()
980 void initPrograms(SourceCollections& programCollection, CaseDefinition caseDef) in initPrograms() argument
[all …]
DvktSubgroupsShapeTests.cpp83 void initFrameBufferPrograms (SourceCollections& programCollection, CaseDefinition caseDef) in initFrameBufferPrograms() argument
87 std::string extension = (OPTYPE_CLUSTERED == caseDef.opType) ? in initFrameBufferPrograms()
93 if (VK_SHADER_STAGE_VERTEX_BIT != caseDef.shaderStage) in initFrameBufferPrograms()
101 if (OPTYPE_CLUSTERED == caseDef.opType) in initFrameBufferPrograms()
149 if (VK_SHADER_STAGE_VERTEX_BIT == caseDef.shaderStage) in initFrameBufferPrograms()
167 else if (VK_SHADER_STAGE_GEOMETRY_BIT == caseDef.shaderStage) in initFrameBufferPrograms()
182 << (*caseDef.geometryPointSizeSupported ? " gl_PointSize = gl_in[0].gl_PointSize;\n" : "") in initFrameBufferPrograms()
190 else if (VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT == caseDef.shaderStage) in initFrameBufferPrograms()
209 …<< (*caseDef.geometryPointSizeSupported ? " gl_out[gl_InvocationID].gl_PointSize = gl_in[0].gl_Po… in initFrameBufferPrograms()
216 else if (VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT == caseDef.shaderStage) in initFrameBufferPrograms()
[all …]
DvktSubgroupsBallotMasksTests.cpp93 std::string getBodySource(CaseDefinition caseDef) in getBodySource() argument
97 bdy << "uint64_t value = " << getMaskTypeName(caseDef.maskType) << ";\n"; in getBodySource()
100 switch(caseDef.maskType) in getBodySource()
148 void initFrameBufferPrograms(SourceCollections& programCollection, CaseDefinition caseDef) in initFrameBufferPrograms() argument
154 if (VK_SHADER_STAGE_VERTEX_BIT != caseDef.shaderStage) in initFrameBufferPrograms()
157 std::string bdyStr = getBodySource(caseDef); in initFrameBufferPrograms()
159 if (VK_SHADER_STAGE_VERTEX_BIT == caseDef.shaderStage) in initFrameBufferPrograms()
178 else if (VK_SHADER_STAGE_GEOMETRY_BIT == caseDef.shaderStage) in initFrameBufferPrograms()
193 << (*caseDef.geometryPointSizeSupported ? " gl_PointSize = gl_in[0].gl_PointSize;\n" : "") in initFrameBufferPrograms()
201 else if (VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT == caseDef.shaderStage) in initFrameBufferPrograms()
[all …]
/external/deqp/external/vulkancts/modules/vulkan/image/
DvktImageMultisampleLoadStoreTests.cpp80 void initPrograms (SourceCollections& programCollection, const CaseDef caseDef) in initPrograms() argument
82 …const int dimension = (caseDef.singleLayerBind ? caseDef.texture.layerDimension() : caseDef.te… in initPrograms()
85 …nst ImageType usedImageType = (caseDef.singleLayerBind ? getImageTypeForSingleLayer(caseDef.text… in initPrograms()
86 const std::string formatQualifierStr = getShaderImageFormatQualifier(mapVkFormat(caseDef.format)); in initPrograms()
87 …string msImageTypeStr = getShaderImageType(mapVkFormat(caseDef.format), usedImageType, (caseDef.t… in initPrograms()
89 const std::string xMax = de::toString(caseDef.texture.size().x() - 1); in initPrograms()
90 const std::string yMax = de::toString(caseDef.texture.size().y() - 1); in initPrograms()
91 …const std::string signednessPrefix = isUintFormat(caseDef.format) ? "u" : isIntFormat(caseDef.form… in initPrograms()
93 const int numColorComponents = tcu::getNumUsedChannels(mapVkFormat(caseDef.format).order); in initPrograms()
95 const float storeColorScale = computeStoreColorScale(caseDef.format, caseDef.texture.size()); in initPrograms()
[all …]
/external/deqp/external/vulkancts/modules/vulkan/pipeline/
DvktPipelineMultisampleImageTests.cpp811 …id addSimpleVertexAndFragmentPrograms (SourceCollections& programCollection, const CaseDef caseDef) in addSimpleVertexAndFragmentPrograms() argument
813 const int numComponents = tcu::getNumUsedChannels(mapVkFormat(caseDef.colorFormat).order); in addSimpleVertexAndFragmentPrograms()
814 const bool isUint = isUintFormat(caseDef.colorFormat); in addSimpleVertexAndFragmentPrograms()
815 const bool isSint = isIntFormat(caseDef.colorFormat); in addSimpleVertexAndFragmentPrograms()
862 void renderMultisampledImage (Context& context, const CaseDef& caseDef, const VkImage colorImage) in renderMultisampledImage() argument
877 for (int i = 0; i < caseDef.numLayers; ++i) in renderMultisampledImage()
880 …vk, device, colorImage, VK_IMAGE_VIEW_TYPE_2D, caseDef.colorFormat, makeColorSubresourceRange(i, 1… in renderMultisampledImage()
885 …const std::vector<Vertex4RGBA> vertices = caseDef.colorSamples ? genPerSampleTriangleVertices(ca… in renderMultisampledImage()
897 …renderPass (makeMultisampleRenderPass (vk, device, caseDef.colorFormat, caseDef.numSamples, caseD… in renderMultisampledImage()
898 …const Unique<VkFramebuffer> framebuffer (makeFramebuffer (vk, device, *renderPass, caseDef.num… in renderMultisampledImage()
[all …]

123