freedreno/ir3: enable nir_opt_loop_unroll on a6xx
authorHyunjun Ko <zzoon@igalia.com>
Tue, 19 Nov 2019 07:20:10 +0000 (07:20 +0000)
committerMarge Bot <eric+marge@anholt.net>
Tue, 24 Mar 2020 23:21:21 +0000 (23:21 +0000)
commit1ee2ad584c95233b5cdbbed9fa5997533dc80276
tree2662a385fef8911eab0dbe0521d685887fb25565
parent61f7a1dfc566508d505230562a99099ee9c3f70f
freedreno/ir3: enable nir_opt_loop_unroll on a6xx

If precision lowering happens at GLSL IR, loop_analysis at IR doesn't
work as expected since it can't handle things like:

"(expression bool < (expression float16_t f2fmp (var_ref ndx) ) (constant float16_t (1.000000)) )"

So we'd rather do this optimization at the NIR stage.

Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3885>
src/freedreno/ir3/ir3_nir.c