lima: enable nir lower_varying_from_uniform
Mali GPU pass varying by memory, so enable this optimization. Reviewed-by: Marek Olšák <marek.olsak@amd.com> Signed-off-by: Qiang Yu <yuq825@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15341>
This commit is contained in:
@@ -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 *
|
||||
|
Reference in New Issue
Block a user