am ceb8d321: Merge "Fix the bug for AllocationRead() that cannot handle 3d Allocation correctly. Add the following functions to make it symmetric for read and write."

* commit 'ceb8d321879ba542b708910f9c835bc94eb6c4c8':
  Fix the bug for AllocationRead() that cannot handle 3d Allocation correctly. Add the following functions to make it symmetric for read and write.