Skip to content

Commit 7d2e476

Browse files
committed
adapt code to new pattern since llvm#129689
1 parent 827fb86 commit 7d2e476

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/Target/SPIRV/SPIRVCallLowering.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,8 @@ getExecutionModel(const SPIRVSubtarget &STI, const Function &F) {
280280
const auto value = attribute.getValueAsString();
281281
if (value == "compute")
282282
return SPIRV::ExecutionModel::GLCompute;
283+
if (value == "vertex")
284+
return SPIRV::ExecutionModel::Vertex;
283285

284286
report_fatal_error(
285287
"This HLSL entry point is not supported by this backend.");

0 commit comments

Comments
 (0)