projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d5dafd
)
nir/spirv: Handle the MatrixStride member decoration
author
Jason Ekstrand
<jason.ekstrand@intel.com>
Sat, 5 Sep 2015 16:47:11 +0000
(09:47 -0700)
committer
Jason Ekstrand
<jason.ekstrand@intel.com>
Sat, 5 Sep 2015 16:47:45 +0000
(09:47 -0700)
src/glsl/nir/spirv_to_nir.c
patch
|
blob
|
history
diff --git
a/src/glsl/nir/spirv_to_nir.c
b/src/glsl/nir/spirv_to_nir.c
index 9495fba0652438d80c3103f5a4f3ad6e4e3c4be8..8c2b31cf3ece80887cddbf52a4eb1005045e2d58 100644
(file)
--- 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: