r600: port over the get_lds_unique_index from radeonsi