Fix comma operator support with matrices in Metal.
MetalCodeGen would incorrectly identify `(someMatrix, someScalar)` as a
math operation between `someMatrix` and `someScalar` and attempt to
convert `someScalar` to a matrix. If `someScalar` was a Boolean type,
this would lead to an assertion.
The binary expression is now checked more thoroughly before converting
the scalar into a matrix.
Auto-Submit: John Stiles <firstname.lastname@example.org>
Commit-Queue: Brian Osman <email@example.com>
Reviewed-by: Brian Osman <firstname.lastname@example.org>
5 files changed