svga: Fix banded DMA upload
authorThomas Hellstrom <thellstrom@vmware.com>
Wed, 5 Feb 2020 06:54:19 +0000 (07:54 +0100)
committerMarge Bot <eric+marge@anholt.net>
Thu, 6 Feb 2020 11:26:04 +0000 (11:26 +0000)
commit451cf228d53ba8f51beb3dcf04370e126fb7ccb6
tree7c38854cad0abe1a63f535033dccfb43d5830975
parent5aec9e84a86f578d0babae1d5c1800578c1c1b53
svga: Fix banded DMA upload

A previous commit ("winsys/svga: Limit the maximum DMA hardware buffer
size") made banded DMA transfer kick in when transfering gnome-shell
window contents under gnome-shell / wayland. This uncovered a bug where
we assumed that banded DMA transfers always occur to the top (y=0) of the
surface.
Fix this by taking the destination y offset into account.

Cc: 19.2 19.3 20.0 <mesa-stable@lists.freedesktop.org>
Fixes: 287c94ea498 ("Squashed commit of the following:")
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3733>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3733>
src/gallium/drivers/svga/svga_resource_texture.c