Skip to content

Commit

Permalink
Fix incorrect extension dependency for Modf
Browse files Browse the repository at this point in the history
  • Loading branch information
eilswe-arm committed Dec 16, 2024
1 parent 8ad28db commit b894997
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SPIRV/GlslangToSpv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8744,7 +8744,7 @@ spv::Id TGlslangToSpvTraverser::createMiscOperation(glslang::TOperator op, spv::
assert(builder.isFloatType(builder.getScalarTypeId(typeId0)));
int width = builder.getScalarTypeWidth(typeId0);
if (width == 16)
builder.addExtension(spv::E_SPV_AMD_gpu_shader_half_float);
builder.addCapability(spv::CapabilityFloat16);
// The returned struct has two members of the same type as the first argument
typeId = builder.makeStructResultType(typeId0, typeId0);
consumedOperands = 1;
Expand Down

0 comments on commit b894997

Please sign in to comment.