summaryrefslogtreecommitdiffstats
path: root/src/compiler/spirv/vtn_variables.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-04-20 10:32:59 -0700
committerJason Ekstrand <[email protected]>2016-04-20 10:33:23 -0700
commit2ef7aef3224cabf70edb409ef0d44b77eedc46ac (patch)
treef5046c8d4b6967846094a307e62b1522a6e67231 /src/compiler/spirv/vtn_variables.c
parentb6dc940ec273252678d40707d300851fa1c85ea5 (diff)
spirv: Trivially handle the NonWriteable decoration
Signed-off-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/compiler/spirv/vtn_variables.c')
-rw-r--r--src/compiler/spirv/vtn_variables.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compiler/spirv/vtn_variables.c b/src/compiler/spirv/vtn_variables.c
index 3cbac1e5da8..3b495b2332c 100644
--- a/src/compiler/spirv/vtn_variables.c
+++ b/src/compiler/spirv/vtn_variables.c
@@ -895,6 +895,9 @@ var_decoration_cb(struct vtn_builder *b, struct vtn_value *val, int member,
/* Handle decorations that apply to a vtn_variable as a whole */
switch (dec->decoration) {
+ case SpvDecorationNonWritable:
+ /* Do nothing with this for now */
+ return;
case SpvDecorationBinding:
vtn_var->binding = dec->literals[0];
return;