Module: Mesa Branch: main Commit: aaf951c47f6706181f258b733d863f2d1566f74e URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=aaf951c47f6706181f258b733d863f2d1566f74e
Author: Qiang Yu <[email protected]> Date: Fri Mar 11 14:04:31 2022 +0800 lima: enable nir lower_varying_from_uniform Mali GPU pass varying by memory, so enable this optimization. Reviewed-by: Marek Olšák <[email protected]> Signed-off-by: Qiang Yu <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15341> --- src/gallium/drivers/lima/lima_program.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/lima/lima_program.c b/src/gallium/drivers/lima/lima_program.c index 891c3d47f70..9f65b46d3ca 100644 --- a/src/gallium/drivers/lima/lima_program.c +++ b/src/gallium/drivers/lima/lima_program.c @@ -62,6 +62,7 @@ static const nir_shader_compiler_options vs_nir_options = { .lower_insert_byte = true, .lower_insert_word = true, .force_indirect_unrolling = (nir_var_shader_in | nir_var_shader_out | nir_var_function_temp), + .lower_varying_from_uniform = true, }; static const nir_shader_compiler_options fs_nir_options = { @@ -82,6 +83,7 @@ static const nir_shader_compiler_options fs_nir_options = { .lower_bitops = true, .lower_vector_cmp = true, .force_indirect_unrolling = (nir_var_shader_in | nir_var_shader_out | nir_var_function_temp), + .lower_varying_from_uniform = true, }; const void *
