radv: Fix fragment resolve destination offset.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tue, 26 Dec 2017 15:11:35 +0000 (16:11 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Wed, 27 Dec 2017 23:26:07 +0000 (00:26 +0100)
commit73279da41dae991afc5d4e4dbe51542060e21c59
tree638b05e288e4f1f3d536756f06d15d8ba3a9aa00
parent258ebe79a0c2133e362035b76f3cf3243880926f
radv: Fix fragment resolve destination offset.

The position start at (dst.x, dst.y), so if we want the source to
start at (src.x, src.y), we have to offset by (src.x-dst.x,src.y-dst.y).

Haven't tested that this fixed anything yet, but found by inspection.

Fixes: 69136f4e633 "radv/meta: add resolve pass using fragment/vertex shaders"
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_meta_resolve_fs.c