-
Notifications
You must be signed in to change notification settings - Fork 802
[NFC] Remove MatrixUse::Unnecessary #7335
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[NFC] Remove MatrixUse::Unnecessary #7335
Conversation
It was previously introduced for backwards compatibility with legacy (without Use matrix paramter) API. It is actually not needed. Signed-off-by: Sidorov, Dmitry <[email protected]>
Signed-off-by: Sidorov, Dmitry <[email protected]>
| template <typename T, std::size_t R, std::size_t C, | ||
| __spv::MatrixUse U = __spv::MatrixUse::Unnecessary, | ||
| template <typename T, std::size_t R, std::size_t C, __spv::MatrixUse U, | ||
| __spv::MatrixLayout L = __spv::MatrixLayout::RowMajor, |
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.
we are making the change to dynamic in this PR right?
If yes, the default for layout should be dynamic
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.
This PR was meant by me to just remove MatrixUse::Unnecessary. Adding dynamic requires a change in layout enum guarding it with if MATRIX_VERSION - and AFAIK Bing is doing this work.
| SPV_MATRIX_LAYOUT_TRAITS(layout::row_major, __spv::MatrixLayout::RowMajor) | ||
| SPV_MATRIX_LAYOUT_TRAITS(layout::col_major, __spv::MatrixLayout::ColumnMajor) | ||
| SPV_MATRIX_LAYOUT_TRAITS(layout::packed_a, __spv::MatrixLayout::PackedA) | ||
| SPV_MATRIX_LAYOUT_TRAITS(layout::packed_b, __spv::MatrixLayout::PackedB) |
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.
when we should make the change: unused --> dynamic
packed_a and packed_b --> packed
Signed-off-by: Sidorov, Dmitry <[email protected]>
|
Manually tests on PVC, the patch works |
|
@dkhaldi please take a look |
dkhaldi
left a comment
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.
LGTM
It was previously introduced for backwards compatibility with legacy (without Use matrix parameter) API. It is actually not needed.
Signed-off-by: Sidorov, Dmitry [email protected]