zink: fixup initialization of operand_mask / num_extra_operands

This doesn't change behavior, but makes the code a bit easier to read.
Both values are zero, but I somehow swapped the logical meaning of them
when initializing.
This commit is contained in:
Erik Faye-Lund 2019-12-19 10:17:14 +01:00
parent 3be4b89c03
commit 09b37ba65f

View file

@ -530,9 +530,9 @@ spirv_builder_emit_image_sample(struct spirv_builder *b,
operands++;
}
SpvImageOperandsMask operand_mask = 0;
SpvImageOperandsMask operand_mask = SpvImageOperandsMaskNone;
SpvId extra_operands[4];
int num_extra_operands = SpvImageOperandsMaskNone;
int num_extra_operands = 0;
if (bias) {
extra_operands[++num_extra_operands] = bias;
operand_mask |= SpvImageOperandsBiasMask;