Skip to content

Commit

Permalink
increase more branch quotas
Browse files Browse the repository at this point in the history
  • Loading branch information
Snektron committed Aug 23, 2024
1 parent 492521b commit 18f38ef
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/vulkan/render.zig
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const preamble =
\\ ) !void {
\\ try writer.writeAll(@typeName(FlagsType) ++ "{");
\\ var first = true;
\\ @setEvalBranchQuota(10_000);
\\ @setEvalBranchQuota(100_000);
\\ inline for (comptime std.meta.fieldNames(FlagsType)) |name| {
\\ if (name[0] == '_') continue;
\\ if (@field(self, name)) {
Expand Down Expand Up @@ -1400,7 +1400,7 @@ fn Renderer(comptime WriterType: type) type {
\\ break :blk cmds;
\\ }};
\\ pub const Dispatch = blk: {{
\\ @setEvalBranchQuota(10_000);
\\ @setEvalBranchQuota(100_000);
\\ const Type = std.builtin.Type;
\\ const fields_len = fields_len: {{
\\ var fields_len: u32 = 0;
Expand Down Expand Up @@ -1522,6 +1522,7 @@ fn Renderer(comptime WriterType: type) type {

try self.writer.print(
\\pub fn {0s}Proxy(comptime apis: []const ApiInfo) type {{
\\ @setEvalBranchQuota(100_000);
\\ return struct {{
\\ const Self = @This();
\\ pub const Wrapper = {1s}Wrapper(apis);
Expand Down Expand Up @@ -2031,7 +2032,7 @@ fn Renderer(comptime WriterType: type) type {
if (returns_vk_result) {
try self.writer.writeAll(
\\data = try allocator.realloc(data, count);
\\result = try
\\result = try
);
} else {
try self.writer.writeAll("const data = try allocator.alloc(");
Expand Down

0 comments on commit 18f38ef

Please sign in to comment.