Skip to content

radeonsi: Only call nir_lower_var_copies at the end of the opt loop

Marek Olšák requested to merge mareko/mesa:si-fix-split-array-loop into master

In 283ad859, radeonsi started using nir_find_var_copies. However, it was also calling nir_lower_var_copies in the optimization loop and the two can end up fighting. The simple solution is to wait to lower copies until the end of the optimization loop.

Fixes: 283ad859 Closes: #3550 (closed)

Reviewed-by: Marek Olšák marek.olsak@amd.com

Merge request reports