mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
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:
parent
3be4b89c03
commit
09b37ba65f
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue