NIR_INTRINSIC_UCP_ID = 4,
/**
- * The range of a load operation. This specifies the maximum amount of
- * data starting at the base offset (if any) that can be accessed.
+ * The ammount of data, starting from BASE, that this instruction may
+ * access. This is used to provide bounds if the offset is not constant.
*/
NIR_INTRINSIC_RANGE = 5,
assert(exec_list_length(&shader->functions) == 1);
struct exec_node *func_node = exec_list_get_head(&shader->functions);
nir_function *func = exec_node_data(nir_function, func_node, node);
+ assert(func->return_type == glsl_void_type());
+ assert(func->num_params == 0);
return func;
}