Parse SPIR-V row-major matrices #675
Labels
area: front-end
Input formats for conversion
kind: bug
Something isn't working
lang: SPIR-V
Binary SPIR-V input and output
Our IR is column-major only. There is currently code in SPV-in
fn parse_type_matrix
to check for this:However, it never fires up, because the decoration is actually expected on a struct member instead of the type.
The same applies to matrix stride. They both are not correctly handled in SPV-in.
Here is an example dump from 215.spv:
This is blocking #409
I think the idea on how this should be handled is to try to avoid translating it, unless necessary.
I.e. vector multiplication by a matrix can just switch the order in order to account for this, and it's possible that this is enough.
The text was updated successfully, but these errors were encountered: