-
Notifications
You must be signed in to change notification settings - Fork 4.9k
[release/3.0] fix Matrix4x4 + and - operator bugs (#39838) #39889
Conversation
* fix Matrix4x4 + and - operator bugs * fix Add() and Subtract() tests
CC. @stephentoub, @danmosemsft I'm also going to log an issue tracking us reviewing the existing numeric tests to validate we don't have other places where the lhs/rhs inputs are only always the same. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, Tanner.
Logged https://github.com/dotnet/corefx/issues/39890 to track auditing the remaining tests. |
tactics approved - wait to merge for @wtgodbe go ahead. |
@wtgodbe, do you have an ETA on when this can be merged? |
Currently I'm targeting Monday |
@tannergooding please link the PR you are porting in future (see my edits to top post) - it required some effort to find this one and confirm we didn't lose track of the port request. Thanks! |
still waiting on branch |
Branch is open, merging |
Port #39838 to release/3.0
Description
#31779 brought a perf improvement to the
Matrix4x4
addition and subtraction operators, but also introduced a functional regression due to using the left-hand side variable twice.Customer Impact
Customers using the addition or subtraction operators on
Matrix4x4
will compute the wrong resultRegression?
Yes, as per the description.
Risk
Low. The tests are being updated to use different values for the left and right hand side inputs to validate this stays correct and we don't accidentally introduce bugs like this in the future.