[Mesa-dev] [PATCH v2 06/28] spirv/nir: include row major coming from SPIR-V on the glsl type

Alejandro PiƱeiro apinheiro at igalia.com
Thu Sep 27 09:51:45 UTC 2018


---
 src/compiler/spirv/spirv_to_nir.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/compiler/spirv/spirv_to_nir.c b/src/compiler/spirv/spirv_to_nir.c
index 15a3e8cce9a..101e2b0bf02 100644
--- a/src/compiler/spirv/spirv_to_nir.c
+++ b/src/compiler/spirv/spirv_to_nir.c
@@ -725,6 +725,7 @@ struct_member_decoration_cb(struct vtn_builder *b,
       break; /* Nothing to do here.  Column-major is the default. */
    case SpvDecorationRowMajor:
       mutable_matrix_member(b, ctx->type, member)->row_major = true;
+      ctx->fields[member].matrix_layout = GLSL_MATRIX_LAYOUT_ROW_MAJOR;
       break;
 
    case SpvDecorationPatch:
-- 
2.14.1



More information about the mesa-dev mailing list