@@ -16087,7 +16087,7 @@ void CompilerGLSL::emit_instruction(const Instruction &instruction)
1608716087 join("createTensorLayoutNV(", to_expression(type.ext.tensorLayoutNv.dim_id), ", ",
1608816088 to_pretty_expression_if_int_constant(type.ext.tensorLayoutNv.clamp_mode_id,
1608916089 std::begin(CooperativeMatrixClampModeNames),
16090- std::end(CooperativeMatrixClampModeNames), true, "" ),
16090+ std::end(CooperativeMatrixClampModeNames), true),
1609116091 ")"),
1609216092 true);
1609316093 break;
@@ -17123,7 +17123,7 @@ string CompilerGLSL::type_to_glsl(const SPIRType &type, uint32_t id)
1712317123 uint32_t dim = dim_constant.scalar();
1712417124 auto clamp_expr = to_pretty_expression_if_int_constant(type.ext.tensorLayoutNv.clamp_mode_id,
1712517125 std::begin(CooperativeMatrixClampModeNames),
17126- std::end(CooperativeMatrixClampModeNames), true, "" );
17126+ std::end(CooperativeMatrixClampModeNames), true);
1712717127 return join("tensorLayoutNV<", dim, ", ", clamp_expr, ">");
1712817128 }
1712917129
@@ -20409,8 +20409,7 @@ std::string CompilerGLSL::format_double(double value) const
2040920409std::string CompilerGLSL::to_pretty_expression_if_int_constant(uint32_t id,
2041020410 const GlslConstantNameMapping *mapping_start,
2041120411 const GlslConstantNameMapping *mapping_end,
20412- bool register_expression_read,
20413- const char* target_type)
20412+ bool register_expression_read)
2041420413{
2041520414 auto *c = maybe_get<SPIRConstant>(id);
2041620415 if (c && !c->specialization)
@@ -20421,5 +20420,5 @@ std::string CompilerGLSL::to_pretty_expression_if_int_constant(uint32_t id,
2042120420 if (pretty_name != mapping_end)
2042220421 return pretty_name->alias;
2042320422 }
20424- return join(target_type, " (", to_expression(id, register_expression_read), ")");
20423+ return join("int (", to_expression(id, register_expression_read), ")");
2042520424}
0 commit comments