radv: Fix 3d blits.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tue, 25 Aug 2020 17:12:37 +0000 (19:12 +0200)
committerMarge Bot <eric+marge@anholt.net>
Thu, 27 Aug 2020 09:58:59 +0000 (09:58 +0000)
commit4d40a719b07670b64d6ed4313818ac8d309bb77f
tree8db2aee2491e1f7185123f1991929e0e391d231f
parent003ea78b774b82dd93948d226d4fd4d9a19ccae0
radv: Fix 3d blits.

- the offsets are inclusive-exclusive so the +1 was wrong
- Since the GPU doesn't do the interpolation on depth (as we render
  per layer), we have to add an offset for the pixel center.

CC: mesa-stable
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3073
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6458>
src/amd/vulkan/radv_meta_blit.c