Replace use of mgpu::FindLog2 with log2_ri.