| author | |
| committer | |
| log | cb026c5d599dddc38f34ee93438d52bbffe2f6ad |
| tree | 75bf3c0edeac952b30eaac1dc4a4ef1d579824f4 |
| parent | 255737ea572f437afb1f2ad67096d3a157d79d70 |
| signature | Signed by SSH key SHA256:CQ99aPxq+RueiL9u7z0FEki5Fm7V6T8q4PrEGmINrA4 |
A parameter like this is not always optional, even if that is
usually implied. SPIR-V tools fail to parse a module with an
OpLoopMerge instruction where the loop control parameter is
left out.1 files changed, 0 insertions(+), 7 deletions(-)
src/codegen/spirv/Section.zig-7| ... | ... | @@ -198,10 +198,6 @@ fn writeExtendedMask(section: *Section, comptime Operand: type, operand: Operand |
| 198 | 198 | } |
| 199 | 199 | } |
| 200 | 200 | |
| 201 | if (mask == 0) { | |
| 202 | return; | |
| 203 | } | |
| 204 | ||
| 205 | 201 | section.writeWord(mask); |
| 206 | 202 | |
| 207 | 203 | inline for (@typeInfo(Operand).Struct.fields) |field| { |
| ... | ... | @@ -304,9 +300,6 @@ fn extendedMaskSize(comptime Operand: type, operand: Operand) usize { |
| 304 | 300 | else => unreachable, |
| 305 | 301 | } |
| 306 | 302 | } |
| 307 | if (!any_set) { | |
| 308 | return 0; | |
| 309 | } | |
| 310 | 303 | return total + 1; // Add one for the mask itself. |
| 311 | 304 | } |
| 312 | 305 |