gallium/auxiliary/vl: Clamp coordinates in compute shaders
authorDavid Rosca <nowrep@gmail.com>
Mon, 21 Aug 2023 08:00:59 +0000 (10:00 +0200)
committerMarge Bot <emma+marge@anholt.net>
Tue, 5 Sep 2023 21:31:43 +0000 (21:31 +0000)
commita6a43963ed0648649d70bfe7998971c1927d9b51
tree25c21770f9ad878cbdbe670e018b9be6f64cf527
parenta90b9f1d1e5e69a386cd3fc848e5004677ba6e3b
gallium/auxiliary/vl: Clamp coordinates in compute shaders

Video textures include padding, so this is needed to avoid sampling
outside of src rect due to scaling or additional offset.
Fixes wrong colors on right/bottom edge.

Acked-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: Thong Thai <thong.thai@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24869>
src/gallium/auxiliary/vl/vl_compositor.c
src/gallium/auxiliary/vl/vl_compositor_cs.c