The patch above should fix it, tested the compilation for MIPS + Polaris 11. The actual functionality was not tested (yet).