else
op = nir_intrinsic_load_ssbo;
break;
+ case nir_var_mem_global:
+ assert(addr_format_is_global(addr_format));
+ op = nir_intrinsic_load_global;
+ break;
default:
unreachable("Unsupported explicit IO variable mode");
}
else
op = nir_intrinsic_store_ssbo;
break;
+ case nir_var_mem_global:
+ assert(addr_format_is_global(addr_format));
+ op = nir_intrinsic_store_global;
+ break;
default:
unreachable("Unsupported explicit IO variable mode");
}
else
op = ssbo_atomic_for_deref(intrin->intrinsic);
break;
+ case nir_var_mem_global:
+ assert(addr_format_is_global(addr_format));
+ op = global_atomic_for_deref(intrin->intrinsic);
+ break;
default:
unreachable("Unsupported explicit IO variable mode");
}