nir: Add option lower_uniforms_to_ubo
authorGert Wollny <gert.wollny@collabora.com>
Sun, 13 Sep 2020 19:01:55 +0000 (21:01 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 16 Sep 2020 10:07:42 +0000 (10:07 +0000)
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>

src/compiler/nir/nir.h

index 22d6e6c..7bc6f2a 100644 (file)
@@ -3319,6 +3319,10 @@ typedef struct nir_shader_compiler_options {
 
    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;