st/nine: Handle full pSourceRect better
authorAxel Davy <davyaxel0@gmail.com>
Sat, 9 May 2020 11:31:25 +0000 (13:31 +0200)
committerMarge Bot <eric+marge@anholt.net>
Fri, 15 May 2020 15:43:57 +0000 (15:43 +0000)
commita887ad7c84e14fdad7907037a39e9fee9d504bf3
tree9e5b0ab744924d9573def0edbbf2b7071cff5e79
parentdbb08255708b9005b5bb719a94ebd93194f51861
st/nine: Handle full pSourceRect better

Some apps do set pSourceRect to the full area even if not needed.

Filtering out this case is helpful, as we currently do not handle
properly resizing (pDestRect or window size not of the size of the resource)
when pSourceRect is set. Indeed in this case pSourceRect needs to be modified
before being passed to the presentation backend.

Signed-off-by: Axel Davy <davyaxel0@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5015>
src/gallium/frontends/nine/swapchain9.c