aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/spirv/Cache.zig
diff options
context:
space:
mode:
authorRobin Voetter <robin@voetter.nl>2023-09-21 23:02:53 +0200
committerAndrew Kelley <andrew@ziglang.org>2023-09-23 12:36:56 -0700
commit572517376a7695693c59a0ec4ec6cc5442003e3a (patch)
tree6b93537b4f022f84e3646598b9af6721258969bc /src/codegen/spirv/Cache.zig
parent68c7fc5c595b4a48f95b3f2f8c4d0a6c3a388667 (diff)
downloadzig-572517376a7695693c59a0ec4ec6cc5442003e3a.tar.gz
zig-572517376a7695693c59a0ec4ec6cc5442003e3a.zip
spirv: air dbg_var_val and dbg_var_ptr
Diffstat (limited to 'src/codegen/spirv/Cache.zig')
-rw-r--r--src/codegen/spirv/Cache.zig12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/codegen/spirv/Cache.zig b/src/codegen/spirv/Cache.zig
index 7a3b6f61f5..68fea5c47a 100644
--- a/src/codegen/spirv/Cache.zig
+++ b/src/codegen/spirv/Cache.zig
@@ -462,11 +462,11 @@ fn emit(
switch (key) {
.void_type => {
try section.emit(spv.gpa, .OpTypeVoid, .{ .id_result = result_id });
- try spv.debugName(result_id, "void", .{});
+ try spv.debugName(result_id, "void");
},
.bool_type => {
try section.emit(spv.gpa, .OpTypeBool, .{ .id_result = result_id });
- try spv.debugName(result_id, "bool", .{});
+ try spv.debugName(result_id, "bool");
},
.int_type => |int| {
try section.emit(spv.gpa, .OpTypeInt, .{
@@ -481,14 +481,14 @@ fn emit(
.unsigned => "u",
.signed => "i",
};
- try spv.debugName(result_id, "{s}{}", .{ ui, int.bits });
+ try spv.debugNameFmt(result_id, "{s}{}", .{ ui, int.bits });
},
.float_type => |float| {
try section.emit(spv.gpa, .OpTypeFloat, .{
.id_result = result_id,
.width = float.bits,
});
- try spv.debugName(result_id, "f{}", .{float.bits});
+ try spv.debugNameFmt(result_id, "f{}", .{float.bits});
},
.vector_type => |vector| {
try section.emit(spv.gpa, .OpTypeVector, .{
@@ -530,11 +530,11 @@ fn emit(
section.writeOperand(IdResult, self.resultId(member_type));
}
if (self.getString(struct_type.name)) |name| {
- try spv.debugName(result_id, "{s}", .{name});
+ try spv.debugName(result_id, name);
}
for (struct_type.memberNames(), 0..) |member_name, i| {
if (self.getString(member_name)) |name| {
- try spv.memberDebugName(result_id, @as(u32, @intCast(i)), "{s}", .{name});
+ try spv.memberDebugName(result_id, @as(u32, @intCast(i)), name);
}
}
// TODO: Decorations?