radeonsi: move PKT3_WRITE_DATA generation into a helper function