spirv: Shut up unhandled enumeration value warnings.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 11 Jan 2017 23:16:11 +0000 (15:16 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 11 Jan 2017 23:16:27 +0000 (15:16 -0800)
We don't want to do anything for the other cases.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
src/compiler/spirv/vtn_variables.c

index 3ecb54f32db2285921654ce64b2268254abbb66f..1cc1402f72d9817b0695e7b389a272616fce6339 100644 (file)
@@ -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;
       }
    }