spirv: Use nir_var_mem_constant for UniformConstant data in CL
[mesa.git] / src / compiler / spirv / nir_spirv.h
index acfcc084f417d33b6b43d1e987ae5b7ef8ad337d..dd7b5b36996eea3099861d638d1a34edd891e7f3 100644 (file)
@@ -64,10 +64,9 @@ struct spirv_to_nir_options {
     */
    bool frag_coord_is_sysval;
 
-   /* Whether to lower TessLevelInner and TessLevelOuter to system values.
-    * This is the inverse of GLSLTessLevelsAsInputs in GLSL.
+   /* Whether to keep ViewIndex as an input instead of rewriting to a sysval.
     */
-   bool tess_levels_are_sysvals;
+   bool view_index_is_input;
 
    struct spirv_supported_capabilities caps;
 
@@ -79,6 +78,7 @@ struct spirv_to_nir_options {
    nir_address_format shared_addr_format;
    nir_address_format global_addr_format;
    nir_address_format temp_addr_format;
+   nir_address_format constant_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