gallium: Fix VAAPI postproc blit
authorThong Thai <thong.thai@amd.com>
Mon, 7 Dec 2020 15:05:57 +0000 (10:05 -0500)
committerMarge Bot <eric+marge@anholt.net>
Mon, 7 Dec 2020 19:46:24 +0000 (19:46 +0000)
commitc5088b497290ba1207085899ec635ef851635267
treec507ec3856b8d6ce3957fcc84fd2759efee467ce
parentc47fe54bc785788147f1f1808d0da720995f5447
gallium: Fix VAAPI postproc blit

Fixes the VAAPI postproc issue mentioned in this comment
(https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6736#note_626808)
without changing the height of the underlying resource when doing the
blit.

This commit removes the 0.5 pixel center offset from the compute blit - VAAPI postproc is the only function that uses this compute blit.

Fixes: 49465babdb3 ("frontends/va/postproc: Use the actual image height when blitting")
Signed-off-by: Thong Thai <thong.thai@amd.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7970>
src/gallium/auxiliary/util/u_compute.c
src/gallium/frontends/va/postproc.c