nir/spirv: Handle the MatrixStride member decoration
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 5 Sep 2015 16:47:11 +0000 (09:47 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sat, 5 Sep 2015 16:47:45 +0000 (09:47 -0700)
src/glsl/nir/spirv_to_nir.c

index 9495fba0652438d80c3103f5a4f3ad6e4e3c4be8..8c2b31cf3ece80887cddbf52a4eb1005045e2d58 100644 (file)
@@ -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: