aboutsummaryrefslogtreecommitdiff
path: root/src/Zcu.zig
diff options
context:
space:
mode:
authorAli Cheraghi <alichraghi@proton.me>2025-08-02 08:35:44 +0330
committerAli Cheraghi <alichraghi@proton.me>2025-08-02 08:56:39 +0330
commit5525a90a478e4c3d9e9b8cd2d78f9238d7b8795a (patch)
treec2a99d9b362f0c75bd2e1f466191668836fd52b2 /src/Zcu.zig
parent31de2c873fa206a8fd491f7c9c959845fb86b0a1 (diff)
downloadzig-5525a90a478e4c3d9e9b8cd2d78f9238d7b8795a.tar.gz
zig-5525a90a478e4c3d9e9b8cd2d78f9238d7b8795a.zip
spirv: remove deduplication ISel
Diffstat (limited to 'src/Zcu.zig')
-rw-r--r--src/Zcu.zig4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/Zcu.zig b/src/Zcu.zig
index c13f7aaac9..76c3a96d13 100644
--- a/src/Zcu.zig
+++ b/src/Zcu.zig
@@ -3646,9 +3646,7 @@ 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;
- }
+ if (zcu.comp.config.is_test) return 32;
}
return @as(u16, std.math.log2_int(ErrorInt, zcu.error_limit)) + 1;