nir: Add option lower_uniforms_to_ubo
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6316>
diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h
index 22d6e6c..7bc6f2a 100644
--- a/src/compiler/nir/nir.h
+++ b/src/compiler/nir/nir.h
@@ -3319,6 +3319,10 @@
unsigned max_unroll_iterations;
+ /* For the non-zero value of the enum corresponds multiplier when
+ * calling lower_uniforms_to_ubo */
+ bool lower_uniforms_to_ubo;
+
nir_lower_int64_options lower_int64_options;
nir_lower_doubles_options lower_doubles_options;
} nir_shader_compiler_options;