From 7ab804dbb46ff55ad28c639f04fd050b9959fc6c Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Sun, 13 Sep 2020 21:27:35 +0200 Subject: [PATCH] freedreno/ir3: set lower_uniforms_to_ubo compiler flag MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Gert Wollny Reviewed-by: Marek Olšák Part-of: --- src/freedreno/ir3/ir3_nir.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/freedreno/ir3/ir3_nir.c b/src/freedreno/ir3/ir3_nir.c index f10ec8b9e87..f3ca62063dd 100644 --- a/src/freedreno/ir3/ir3_nir.c +++ b/src/freedreno/ir3/ir3_nir.c @@ -78,6 +78,7 @@ static const nir_shader_compiler_options options = { * supported there. */ .lower_int64_options = (nir_lower_int64_options)~0, + .lower_uniforms_to_ubo = true, }; /* we don't want to lower vertex_id to _zero_based on newer gpus: */ @@ -129,6 +130,7 @@ static const nir_shader_compiler_options options_a6xx = { * supported there. */ .lower_int64_options = (nir_lower_int64_options)~0, + .lower_uniforms_to_ubo = true, }; const nir_shader_compiler_options *