Skip to content

Commit

Permalink
Remove incorrect extension dependency from 16bit float Modf
Browse files Browse the repository at this point in the history
  • Loading branch information
eilswe-arm authored and jeremy-lunarg committed Dec 18, 2024
1 parent b3a6aa7 commit 3a2834e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions SPIRV/GlslangToSpv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8742,9 +8742,6 @@ spv::Id TGlslangToSpvTraverser::createMiscOperation(glslang::TOperator op, spv::
{
libCall = spv::GLSLstd450ModfStruct;
assert(builder.isFloatType(builder.getScalarTypeId(typeId0)));
int width = builder.getScalarTypeWidth(typeId0);
if (width == 16)
builder.addExtension(spv::E_SPV_AMD_gpu_shader_half_float);
// 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 3a2834e

Please sign in to comment.