break;
case SpvStorageClassPrivate:
var->data.mode = nir_var_global;
+ var->interface_type = NULL;
break;
case SpvStorageClassFunction:
var->data.mode = nir_var_local;
+ var->interface_type = NULL;
break;
case SpvStorageClassWorkgroup:
case SpvStorageClassCrossWorkgroup:
/* Interface block variables aren't actually going to be referenced
* by the generated NIR, so we don't put them in the list
*/
- if (interface_type && glsl_type_is_struct(interface_type->type))
+ if (var->interface_type)
break;
if (var->data.mode == nir_var_local) {