asahi: switch to NIR loop unrolling

Reviewed-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16543>
This commit is contained in:
Timothy Arceri 2022-05-06 11:26:25 +10:00 committed by Marge Bot
parent 3ceaf589d6
commit c4295816af
2 changed files with 1 additions and 2 deletions

View File

@ -223,6 +223,7 @@ static const nir_shader_compiler_options agx_nir_options = {
.lower_rotate = true,
.has_fsub = true,
.has_isub = true,
.max_unroll_iterations = 32,
.lower_uniforms_to_ubo = true,
.force_indirect_unrolling_sampler = true,
.force_indirect_unrolling = (nir_var_shader_in | nir_var_shader_out | nir_var_function_temp),

View File

@ -964,8 +964,6 @@ agx_get_shader_param(struct pipe_screen* pscreen,
return (1 << PIPE_SHADER_IR_NIR) | (1 << PIPE_SHADER_IR_NIR_SERIALIZED);
case PIPE_SHADER_CAP_MAX_UNROLL_ITERATIONS_HINT:
return 32;
case PIPE_SHADER_CAP_MAX_SHADER_BUFFERS:
case PIPE_SHADER_CAP_MAX_SHADER_IMAGES:
case PIPE_SHADER_CAP_MAX_HW_ATOMIC_COUNTERS: