nir/spirv: Set the system value mode on builtins
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 26 Jun 2015 00:31:56 +0000 (17:31 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 26 Jun 2015 00:36:34 +0000 (17:36 -0700)
src/glsl/nir/spirv_to_nir.c

index fbf6969f2fd35daa22aba8d1365f44605cd594ee..7632ca2bf1879fa7c005d747a85c51e9772de977 100644 (file)
@@ -419,6 +419,7 @@ var_decoration_cb(struct vtn_builder *b, struct vtn_value *val,
       var->data.descriptor_set = dec->literals[0];
       break;
    case SpvDecorationBuiltIn:
+      var->data.mode = nir_var_system_value;
       var->data.read_only = true;
       switch ((SpvBuiltIn)dec->literals[0]) {
       case SpvBuiltInFrontFacing: