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>
This commit is contained in:
Gert Wollny
2020-09-13 21:01:55 +02:00
committed by Marge Bot
parent 8939c642e0
commit 2c9fee9b6a

View 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;