From 9be43ef99cba08aab37b97be09b1f40f23288dcb Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Sat, 5 Sep 2015 09:47:11 -0700 Subject: [PATCH] nir/spirv: Handle the MatrixStride member decoration --- src/glsl/nir/spirv_to_nir.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/glsl/nir/spirv_to_nir.c b/src/glsl/nir/spirv_to_nir.c index 9495fba0652..8c2b31cf3ec 100644 --- a/src/glsl/nir/spirv_to_nir.c +++ b/src/glsl/nir/spirv_to_nir.c @@ -365,6 +365,9 @@ struct_member_decoration_cb(struct vtn_builder *b, case SpvDecorationOffset: ctx->type->offsets[member] = dec->literals[0]; break; + case SpvDecorationMatrixStride: + ctx->type->members[member]->stride = dec->literals[0]; + break; case SpvDecorationColMajor: break; /* Nothing to do here. Column-major is the default. */ default: -- 2.30.2