radeon: fix incorrect loop limit (warned by -O3)