nir/spirv: Set the interface type on uniform blocks
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 26 Jun 2015 00:32:10 +0000 (17:32 -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 7632ca2bf1879fa7c005d747a85c51e9772de977..2dd3c42db036cf0d4138cf3eef0bf2f8ace38878 100644 (file)
@@ -537,6 +537,7 @@ vtn_handle_variables(struct vtn_builder *b, SpvOp opcode,
       case SpvStorageClassUniformConstant:
          var->data.mode = nir_var_uniform;
          var->data.read_only = true;
+         var->interface_type = type;
          break;
       case SpvStorageClassInput:
          var->data.mode = nir_var_shader_in;