diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2025-08-07 20:55:50 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-07 20:55:50 -0700 |
| commit | 3fb86841cc65437c65a6d599117833e260ea797c (patch) | |
| tree | 2f4df8b5da41e8df00ba0989ca72beb26566b6c1 /src/Zcu.zig | |
| parent | 5998a8cebe3973d70c258b2a1440c5c3252d3539 (diff) | |
| parent | cd4b03c5ed1bc5b48ad9c353679b309ead75551d (diff) | |
| download | zig-3fb86841cc65437c65a6d599117833e260ea797c.tar.gz zig-3fb86841cc65437c65a6d599117833e260ea797c.zip | |
Merge pull request #24661 from alichraghi/spv4
spirv: refactor and remove deduplication ISel
Diffstat (limited to 'src/Zcu.zig')
| -rw-r--r-- | src/Zcu.zig | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Zcu.zig b/src/Zcu.zig index d77a6edc31..f27b369515 100644 --- a/src/Zcu.zig +++ b/src/Zcu.zig @@ -3651,9 +3651,8 @@ pub fn errorSetBits(zcu: *const Zcu) u16 { if (zcu.error_limit == 0) return 0; if (target.cpu.arch.isSpirV()) { - if (!target.cpu.has(.spirv, .storage_push_constant16)) { - return 32; - } + // As expected by https://github.com/Snektron/zig-spirv-test-executor + if (zcu.comp.config.is_test) return 32; } return @as(u16, std.math.log2_int(ErrorInt, zcu.error_limit)) + 1; |
