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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user