summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2017-01-11 15:16:11 -0800
committerKenneth Graunke <[email protected]>2017-01-11 15:16:27 -0800
commitc17b2f572449e66a035ffb7be9dc833f6d80aac5 (patch)
treed04355b8d2abc732e170fdc34503e4d633d5a26c
parentde8b03f5fbd32f12a0b8257a2ae8e4e26b5ca05b (diff)
spirv: Shut up unhandled enumeration value warnings.
We don't want to do anything for the other cases. Signed-off-by: Kenneth Graunke <[email protected]>
-rw-r--r--src/compiler/spirv/vtn_variables.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/spirv/vtn_variables.c b/src/compiler/spirv/vtn_variables.c
index 3ecb54f32db..1cc1402f72d 100644
--- a/src/compiler/spirv/vtn_variables.c
+++ b/src/compiler/spirv/vtn_variables.c
@@ -1078,6 +1078,8 @@ apply_var_decoration(struct vtn_builder *b, nir_variable *nir_var,
case SpvBuiltInFragCoord:
nir_var->data.pixel_center_integer = b->pixel_center_integer;
break;
+ default:
+ break;
}
}