drm/amd/amdgpu: Merge get_wptr functions in gfx6