panfrost: Use nir_foreach_variable_with_modes in pan_compile