nir/spirv: Use breaks instead of returns in constant handling

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Cc: "12.0" <mesa-stable@lists.freedesktop.org>
This commit is contained in:
Jason Ekstrand 2016-06-01 10:34:04 -07:00
parent a19ae36ce5
commit b26cdd65e8

View file

@ -1028,7 +1028,7 @@ vtn_handle_constant(struct vtn_builder *b, SpvOp opcode,
val->constant->value.u[i] = u[comp];
}
}
return;
break;
}
case SpvOpCompositeExtract:
@ -1105,7 +1105,7 @@ vtn_handle_constant(struct vtn_builder *b, SpvOp opcode,
(*c)->value.u[elem + i] = insert->constant->value.u[i];
}
}
return;
break;
}
default: {
@ -1134,9 +1134,10 @@ vtn_handle_constant(struct vtn_builder *b, SpvOp opcode,
for (unsigned k = 0; k < num_components; k++)
val->constant->value.u[k] = res.u32[k];
return;
break;
} /* default */
}
break;
}
case SpvOpConstantNull: