Skip to content

Commit

Permalink
[ir] Update transform names when validating.
Browse files Browse the repository at this point in the history
This Cl updates the names used in validating the IR to always prefix
with the language name. This makes it clearer when both core and
language specific transforms with the same name execute which one you're
looking at.

Change-Id: I9c45126f3104a3bb26f88ca4b2bc84c4577c7cd3
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/212574
Auto-Submit: dan sinclair <[email protected]>
Commit-Queue: James Price <[email protected]>
Reviewed-by: James Price <[email protected]>
  • Loading branch information
dj2 authored and Dawn LUCI CQ committed Oct 28, 2024
1 parent 5f21563 commit 6e4d863
Show file tree
Hide file tree
Showing 64 changed files with 64 additions and 65 deletions.
2 changes: 1 addition & 1 deletion src/tint/lang/core/ir/transform/add_empty_entry_point.cc
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ void Run(ir::Module& ir) {

Result<SuccessType> AddEmptyEntryPoint(Module& ir) {
auto result = ValidateAndDumpIfNeeded(
ir, "AddEmptyEntryPoint transform",
ir, "core.AddEmptyEntryPoint",
core::ir::Capabilities{core::ir::Capability::kAllowHandleVarsWithoutBindings});
if (result != Success) {
return result.Failure();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ Result<ArrayLengthFromUniformResult> ArrayLengthFromUniform(
Module& ir,
BindingPoint ubo_binding,
const std::unordered_map<BindingPoint, uint32_t>& bindpoint_to_size_index) {
auto validated = ValidateAndDumpIfNeeded(ir, "ArrayLengthFromUniform transform");
auto validated = ValidateAndDumpIfNeeded(ir, "core.ArrayLengthFromUniform");
if (validated != Success) {
return validated.Failure();
}
Expand Down
2 changes: 1 addition & 1 deletion src/tint/lang/core/ir/transform/bgra8unorm_polyfill.cc
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ struct State {
} // namespace

Result<SuccessType> Bgra8UnormPolyfill(Module& ir) {
auto result = ValidateAndDumpIfNeeded(ir, "Bgra8UnormPolyfill transform");
auto result = ValidateAndDumpIfNeeded(ir, "core.Bgra8UnormPolyfill");
if (result != Success) {
return result;
}
Expand Down
2 changes: 1 addition & 1 deletion src/tint/lang/core/ir/transform/binary_polyfill.cc
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ struct State {
} // namespace

Result<SuccessType> BinaryPolyfill(Module& ir, const BinaryPolyfillConfig& config) {
auto result = ValidateAndDumpIfNeeded(ir, "BinaryPolyfill transform");
auto result = ValidateAndDumpIfNeeded(ir, "core.BinaryPolyfill");
if (result != Success) {
return result;
}
Expand Down
2 changes: 1 addition & 1 deletion src/tint/lang/core/ir/transform/binding_remapper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ Result<SuccessType> Run(ir::Module& ir,
Result<SuccessType> BindingRemapper(
Module& ir,
const std::unordered_map<BindingPoint, BindingPoint>& binding_points) {
auto result = ValidateAndDumpIfNeeded(ir, "BindingRemapper transform");
auto result = ValidateAndDumpIfNeeded(ir, "core.BindingRemapper");
if (result != Success) {
return result;
}
Expand Down
2 changes: 1 addition & 1 deletion src/tint/lang/core/ir/transform/block_decorated_structs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ void Run(Module& ir) {
} // namespace

Result<SuccessType> BlockDecoratedStructs(Module& ir) {
auto result = ValidateAndDumpIfNeeded(ir, "BlockDecoratedStructs transform");
auto result = ValidateAndDumpIfNeeded(ir, "core.BlockDecoratedStructs");
if (result != Success) {
return result;
}
Expand Down
2 changes: 1 addition & 1 deletion src/tint/lang/core/ir/transform/builtin_polyfill.cc
Original file line number Diff line number Diff line change
Expand Up @@ -930,7 +930,7 @@ struct State {
} // namespace

Result<SuccessType> BuiltinPolyfill(Module& ir, const BuiltinPolyfillConfig& config) {
auto result = ValidateAndDumpIfNeeded(ir, "BuiltinPolyfill transform");
auto result = ValidateAndDumpIfNeeded(ir, "core.BuiltinPolyfill");
if (result != Success) {
return result;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ struct State {
} // namespace

Result<SuccessType> CombineAccessInstructions(Module& ir) {
auto result = ValidateAndDumpIfNeeded(ir, "CombineAccessInstructions transform");
auto result = ValidateAndDumpIfNeeded(ir, "core.CombineAccessInstructions");
if (result != Success) {
return result;
}
Expand Down
2 changes: 1 addition & 1 deletion src/tint/lang/core/ir/transform/conversion_polyfill.cc
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ struct State {
} // namespace

Result<SuccessType> ConversionPolyfill(Module& ir, const ConversionPolyfillConfig& config) {
auto result = ValidateAndDumpIfNeeded(ir, "ConversionPolyfill transform");
auto result = ValidateAndDumpIfNeeded(ir, "core.ConversionPolyfill");
if (result != Success) {
return result;
}
Expand Down
2 changes: 1 addition & 1 deletion src/tint/lang/core/ir/transform/demote_to_helper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ struct State {
} // namespace

Result<SuccessType> DemoteToHelper(Module& ir) {
auto result = ValidateAndDumpIfNeeded(ir, "DemoteToHelper transform",
auto result = ValidateAndDumpIfNeeded(ir, "core.DemoteToHelper",
core::ir::Capabilities{
core::ir::Capability::kAllowVectorElementPointer,
core::ir::Capability::kAllowClipDistancesOnF32,
Expand Down
2 changes: 1 addition & 1 deletion src/tint/lang/core/ir/transform/direct_variable_access.cc
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ struct State {
} // namespace

Result<SuccessType> DirectVariableAccess(Module& ir, const DirectVariableAccessOptions& options) {
auto result = ValidateAndDumpIfNeeded(ir, "DirectVariableAccess transform",
auto result = ValidateAndDumpIfNeeded(ir, "core.DirectVariableAccess",
core::ir::Capabilities{
core::ir::Capability::kAllowClipDistancesOnF32,
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ struct State {
Result<SuccessType> MultiplanarExternalTexture(
Module& ir,
const tint::transform::multiplanar::BindingsMap& multiplanar_map) {
auto result = ValidateAndDumpIfNeeded(ir, "MultiplanarExternalTexture transform");
auto result = ValidateAndDumpIfNeeded(ir, "core.MultiplanarExternalTexture");
if (result != Success) {
return result;
}
Expand Down
2 changes: 1 addition & 1 deletion src/tint/lang/core/ir/transform/prepare_push_constants.cc
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ struct State {

Result<PushConstantLayout> PreparePushConstants(Module& ir,
const PreparePushConstantsConfig& config) {
auto result = ValidateAndDumpIfNeeded(ir, "PreparePushConstants transform");
auto result = ValidateAndDumpIfNeeded(ir, "core.PreparePushConstants");
if (result != Success) {
return result.Failure();
}
Expand Down
2 changes: 1 addition & 1 deletion src/tint/lang/core/ir/transform/preserve_padding.cc
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ struct State {

Result<SuccessType> PreservePadding(Module& ir) {
auto result = ValidateAndDumpIfNeeded(
ir, "PreservePadding transform",
ir, "core.PreservePadding",
core::ir::Capabilities{core::ir::Capability::kAllowHandleVarsWithoutBindings});
if (result != Success) {
return result;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ struct State {
} // namespace

Result<SuccessType> RemoveContinueInSwitch(Module& ir) {
auto result = ValidateAndDumpIfNeeded(ir, "RemoveContinueInSwitch transform",
auto result = ValidateAndDumpIfNeeded(ir, "core.RemoveContinueInSwitch",
core::ir::Capabilities{
core::ir::Capability::kAllowVectorElementPointer,
core::ir::Capability::kAllowHandleVarsWithoutBindings,
Expand Down
2 changes: 1 addition & 1 deletion src/tint/lang/core/ir/transform/remove_terminator_args.cc
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ struct State {
} // namespace

Result<SuccessType> RemoveTerminatorArgs(Module& ir) {
auto result = ValidateAndDumpIfNeeded(ir, "RemoveTerminatorArgs transform",
auto result = ValidateAndDumpIfNeeded(ir, "core.RemoveTerminatorArgs",
core::ir::Capabilities{
core::ir::Capability::kAllow8BitIntegers,
core::ir::Capability::kAllowPointersInStructures,
Expand Down
2 changes: 1 addition & 1 deletion src/tint/lang/core/ir/transform/rename_conflicts.cc
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ struct State {
} // namespace

Result<SuccessType> RenameConflicts(core::ir::Module& ir) {
auto result = ValidateAndDumpIfNeeded(ir, "RenameConflicts transform",
auto result = ValidateAndDumpIfNeeded(ir, "core.RenameConflicts",
core::ir::Capabilities{
core::ir::Capability::kAllow8BitIntegers,
core::ir::Capability::kAllowPointersInStructures,
Expand Down
2 changes: 1 addition & 1 deletion src/tint/lang/core/ir/transform/robustness.cc
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ struct State {
} // namespace

Result<SuccessType> Robustness(Module& ir, const RobustnessConfig& config) {
auto result = ValidateAndDumpIfNeeded(ir, "Robustness transform");
auto result = ValidateAndDumpIfNeeded(ir, "core.Robustness");
if (result != Success) {
return result;
}
Expand Down
2 changes: 1 addition & 1 deletion src/tint/lang/core/ir/transform/single_entry_point.cc
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ Result<SuccessType> Run(ir::Module& ir, std::string_view entry_point_name) {
} // namespace

Result<SuccessType> SingleEntryPoint(Module& ir, std::string_view entry_point_name) {
auto result = ValidateAndDumpIfNeeded(ir, "SingleEntryPoint transform");
auto result = ValidateAndDumpIfNeeded(ir, "core.SingleEntryPoint");
if (result != Success) {
return result.Failure();
}
Expand Down
2 changes: 1 addition & 1 deletion src/tint/lang/core/ir/transform/std140.cc
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ struct State {

Result<SuccessType> Std140(Module& ir) {
auto result = ValidateAndDumpIfNeeded(
ir, "Std140 transform",
ir, "core.Std140",
core::ir::Capabilities{core::ir::Capability::kAllowHandleVarsWithoutBindings});
if (result != Success) {
return result;
Expand Down
2 changes: 1 addition & 1 deletion src/tint/lang/core/ir/transform/value_to_let.cc
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ struct State {
} // namespace

Result<SuccessType> ValueToLet(Module& ir, const ValueToLetConfig& cfg) {
auto result = ValidateAndDumpIfNeeded(ir, "ValueToLet transform",
auto result = ValidateAndDumpIfNeeded(ir, "core.ValueToLet",
core::ir::Capabilities{
core::ir::Capability::kAllow8BitIntegers,
core::ir::Capability::kAllowPointersInStructures,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ struct State {
} // namespace

Result<SuccessType> VectorizeScalarMatrixConstructors(Module& ir) {
auto result = ValidateAndDumpIfNeeded(ir, "VectorizeScalarMatrixConstructors transform",
auto result = ValidateAndDumpIfNeeded(ir, "core.VectorizeScalarMatrixConstructors",
core::ir::Capabilities{
core::ir::Capability::kAllowVectorElementPointer,
core::ir::Capability::kAllowHandleVarsWithoutBindings,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ struct State {
} // namespace

Result<SuccessType> ZeroInitWorkgroupMemory(Module& ir) {
auto result = ValidateAndDumpIfNeeded(ir, "ZeroInitWorkgroupMemory transform");
auto result = ValidateAndDumpIfNeeded(ir, "core.ZeroInitWorkgroupMemory");
if (result != Success) {
return result;
}
Expand Down
2 changes: 1 addition & 1 deletion src/tint/lang/glsl/writer/printer/printer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class Printer : public tint::TextGenerator {
/// @returns the generated GLSL shader
tint::Result<std::string> Generate() {
auto valid = core::ir::ValidateAndDumpIfNeeded(
ir_, "GLSL writer",
ir_, "glsl.Printer",
core::ir::Capabilities{core::ir::Capability::kAllowHandleVarsWithoutBindings});
if (valid != Success) {
return std::move(valid.Failure());
Expand Down
2 changes: 1 addition & 1 deletion src/tint/lang/glsl/writer/raise/binary_polyfill.cc
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ struct State {
} // namespace

Result<SuccessType> BinaryPolyfill(core::ir::Module& ir) {
auto result = ValidateAndDumpIfNeeded(ir, "glsl.BinaryPolyfill transform");
auto result = ValidateAndDumpIfNeeded(ir, "glsl.BinaryPolyfill");
if (result != Success) {
return result.Failure();
}
Expand Down
2 changes: 1 addition & 1 deletion src/tint/lang/glsl/writer/raise/bitcast_polyfill.cc
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ struct State {

Result<SuccessType> BitcastPolyfill(core::ir::Module& ir) {
auto result = ValidateAndDumpIfNeeded(
ir, "glsl::BitcastPolyfill transform",
ir, "glsl.BitcastPolyfill",
core::ir::Capabilities{core::ir::Capability::kAllowHandleVarsWithoutBindings});
if (result != Success) {
return result.Failure();
Expand Down
2 changes: 1 addition & 1 deletion src/tint/lang/glsl/writer/raise/builtin_polyfill.cc
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ struct State {
} // namespace

Result<SuccessType> BuiltinPolyfill(core::ir::Module& ir) {
auto result = ValidateAndDumpIfNeeded(ir, "BuiltinPolyfill transform");
auto result = ValidateAndDumpIfNeeded(ir, "glsl.BuiltinPolyfill");
if (result != Success) {
return result.Failure();
}
Expand Down
2 changes: 1 addition & 1 deletion src/tint/lang/glsl/writer/raise/offset_first_index.cc
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ struct State {
} // namespace

Result<SuccessType> OffsetFirstIndex(core::ir::Module& ir, const OffsetFirstIndexConfig& config) {
auto result = ValidateAndDumpIfNeeded(ir, "glsl.OffsetFirstIndex transform",
auto result = ValidateAndDumpIfNeeded(ir, "glsl.OffsetFirstIndex",
core::ir::Capabilities{
core::ir::Capability::kAllowHandleVarsWithoutBindings,
});
Expand Down
2 changes: 1 addition & 1 deletion src/tint/lang/glsl/writer/raise/shader_io.cc
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ struct StateImpl : core::ir::transform::ShaderIOBackendState {

Result<SuccessType> ShaderIO(core::ir::Module& ir, const ShaderIOConfig& config) {
auto result = ValidateAndDumpIfNeeded(
ir, "ShaderIO transform",
ir, "gls.lShaderIO",
core::ir::Capabilities{core::ir::Capability::kAllowHandleVarsWithoutBindings});
if (result != Success) {
return result;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ struct State {

Result<SuccessType> TextureBuiltinsFromUniform(core::ir::Module& ir,
const TextureBuiltinsFromUniformOptions& cfg) {
auto result = ValidateAndDumpIfNeeded(ir, "glsl.TextureBuiltinsFromUniform transform");
auto result = ValidateAndDumpIfNeeded(ir, "glsl.TextureBuiltinsFromUniform");
if (result != Success) {
return result.Failure();
}
Expand Down
2 changes: 1 addition & 1 deletion src/tint/lang/glsl/writer/raise/texture_polyfill.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1217,7 +1217,7 @@ struct State {
} // namespace

Result<SuccessType> TexturePolyfill(core::ir::Module& ir, const TexturePolyfillConfig& cfg) {
auto result = ValidateAndDumpIfNeeded(ir, "glsl.TexturePolyfill transform");
auto result = ValidateAndDumpIfNeeded(ir, "glsl.TexturePolyfill");
if (result != Success) {
return result.Failure();
}
Expand Down
2 changes: 1 addition & 1 deletion src/tint/lang/hlsl/writer/printer/printer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ class Printer : public tint::TextGenerator {
core::ir::Capability::kAllowVectorElementPointer,
core::ir::Capability::kAllowClipDistancesOnF32,
};
auto valid = core::ir::ValidateAndDumpIfNeeded(ir_, "HLSL writer", capabilities);
auto valid = core::ir::ValidateAndDumpIfNeeded(ir_, "hlsl.Printer", capabilities);
if (valid != Success) {
return std::move(valid.Failure());
}
Expand Down
2 changes: 1 addition & 1 deletion src/tint/lang/hlsl/writer/raise/binary_polyfill.cc
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ struct State {
} // namespace

Result<SuccessType> BinaryPolyfill(core::ir::Module& ir) {
auto result = ValidateAndDumpIfNeeded(ir, "BinaryPolyfill transform",
auto result = ValidateAndDumpIfNeeded(ir, "hlsl.BinaryPolyfill",
core::ir::Capabilities{
core::ir::Capability::kAllowClipDistancesOnF32,
});
Expand Down
2 changes: 1 addition & 1 deletion src/tint/lang/hlsl/writer/raise/builtin_polyfill.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1924,7 +1924,7 @@ struct State {
} // namespace

Result<SuccessType> BuiltinPolyfill(core::ir::Module& ir) {
auto result = ValidateAndDumpIfNeeded(ir, "BuiltinPolyfill transform",
auto result = ValidateAndDumpIfNeeded(ir, "hlsl.BuiltinPolyfill",
core::ir::Capabilities{
core::ir::Capability::kAllowClipDistancesOnF32,
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -898,7 +898,7 @@ struct State {
} // namespace

Result<SuccessType> DecomposeStorageAccess(core::ir::Module& ir) {
auto result = ValidateAndDumpIfNeeded(ir, "DecomposeStorageAccess transform",
auto result = ValidateAndDumpIfNeeded(ir, "hlsl.DecomposeStorageAccess",
core::ir::Capabilities{
core::ir::Capability::kAllowClipDistancesOnF32,
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ struct State {
} // namespace

Result<SuccessType> DecomposeUniformAccess(core::ir::Module& ir) {
auto result = ValidateAndDumpIfNeeded(ir, "DecomposeUniformAccess transform",
auto result = ValidateAndDumpIfNeeded(ir, "hlsl.DecomposeUniformAccess",
core::ir::Capabilities{
core::ir::Capability::kAllowClipDistancesOnF32,
});
Expand Down
2 changes: 1 addition & 1 deletion src/tint/lang/hlsl/writer/raise/fxc_polyfill.cc
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ struct State {
} // namespace

Result<SuccessType> FxcPolyfill(core::ir::Module& ir) {
auto result = ValidateAndDumpIfNeeded(ir, "FxcPolyfill transform");
auto result = ValidateAndDumpIfNeeded(ir, "hlsl.FxcPolyfill");
if (result != Success) {
return result.Failure();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ struct State {
} // namespace

Result<SuccessType> LocalizeStructArrayAssignment(core::ir::Module& ir) {
auto result = ValidateAndDumpIfNeeded(ir, "LocalizeStructArrayAssignment transform");
auto result = ValidateAndDumpIfNeeded(ir, "hlsl.LocalizeStructArrayAssignment");
if (result != Success) {
return result.Failure();
}
Expand Down
2 changes: 1 addition & 1 deletion src/tint/lang/hlsl/writer/raise/pixel_local.cc
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ struct State {
} // namespace

Result<SuccessType> PixelLocal(core::ir::Module& ir, const PixelLocalConfig& config) {
auto result = ValidateAndDumpIfNeeded(ir, "PixelLocal transform",
auto result = ValidateAndDumpIfNeeded(ir, "hlsl.PixelLocal",
core::ir::Capabilities{
core::ir::Capability::kAllowClipDistancesOnF32,
});
Expand Down
2 changes: 1 addition & 1 deletion src/tint/lang/hlsl/writer/raise/promote_initializers.cc
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ struct State {
} // namespace

Result<SuccessType> PromoteInitializers(core::ir::Module& ir) {
auto result = ValidateAndDumpIfNeeded(ir, "PromoteInitializers transform",
auto result = ValidateAndDumpIfNeeded(ir, "hlsl.PromoteInitializers",
core::ir::Capabilities{
core::ir::Capability::kAllowVectorElementPointer,
core::ir::Capability::kAllowClipDistancesOnF32,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ struct State {
} // namespace

Result<SuccessType> ReplaceNonIndexableMatVecStores(core::ir::Module& ir) {
auto result = ValidateAndDumpIfNeeded(ir, "ReplaceNonIndexableMatVecStores transform");
auto result = ValidateAndDumpIfNeeded(ir, "hlsl.ReplaceNonIndexableMatVecStores");
if (result != Success) {
return result.Failure();
}
Expand Down
2 changes: 1 addition & 1 deletion src/tint/lang/hlsl/writer/raise/shader_io.cc
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ struct StateImpl : core::ir::transform::ShaderIOBackendState {
} // namespace

Result<SuccessType> ShaderIO(core::ir::Module& ir, const ShaderIOConfig& config) {
auto result = ValidateAndDumpIfNeeded(ir, "ShaderIO transform");
auto result = ValidateAndDumpIfNeeded(ir, "hlsl.ShaderIO");
if (result != Success) {
return result;
}
Expand Down
2 changes: 1 addition & 1 deletion src/tint/lang/msl/writer/printer/printer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ class Printer : public tint::TextGenerator {
/// @returns the generated MSL shader
tint::Result<PrintResult> Generate() {
auto valid =
core::ir::ValidateAndDumpIfNeeded(ir_, "MSL writer",
core::ir::ValidateAndDumpIfNeeded(ir_, "msl.Printer",
core::ir::Capabilities{
core::ir::Capability::kAllow8BitIntegers,
core::ir::Capability::kAllowPointersInStructures,
Expand Down
2 changes: 1 addition & 1 deletion src/tint/lang/msl/writer/raise/binary_polyfill.cc
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ struct State {
} // namespace

Result<SuccessType> BinaryPolyfill(core::ir::Module& ir) {
auto result = ValidateAndDumpIfNeeded(ir, "BinaryPolyfill transform",
auto result = ValidateAndDumpIfNeeded(ir, "msl.BinaryPolyfill",
core::ir::Capabilities{
core::ir::Capability::kAllowPointersInStructures,
});
Expand Down
Loading

0 comments on commit 6e4d863

Please sign in to comment.