zink: fix buffer transfer flushes with offsets
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Thu, 16 Jun 2022 18:33:46 +0000 (14:33 -0400)
committerMarge Bot <emma+marge@anholt.net>
Fri, 17 Jun 2022 00:56:33 +0000 (00:56 +0000)
commitce5aa07db1091a83321229c802f256a44f37aded
tree00e6162657b048c5c781c4001d2203dce12fd3e7
parent28d23c9e2614fef5b468674ca9cd6b430d869d95
zink: fix buffer transfer flushes with offsets

the src and dst ofsets need to be adjusted by the base map offset
in order to flush the correct region

cc: mesa-stable

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17095>
src/gallium/drivers/zink/zink_resource.c