struct spirv_to_nir_options {
enum nir_spirv_execution_environment environment;
- /* Whether or not to lower all workgroup variable access to offsets
- * up-front. This means you will _shared intrinsics instead of _var
- * for workgroup data access.
- *
- * This is currently required for full variable pointers support.
- */
- bool lower_workgroup_access_to_offsets;
-
/* Whether or not to lower all UBO/SSBO access to offsets up-front. */
bool lower_ubo_ssbo_access_to_offsets;
nir_address_format global_addr_format;
nir_address_format temp_addr_format;
+ /* Whether UniformConstant memory should be treated as normal global memory.
+ * This is usefull for CL 2.0 implementations with fine grain system SVM
+ * support.
+ */
+ bool constant_as_global;
+
struct {
void (*func)(void *private_data,
enum nir_spirv_debug_level level,