st/nine: Improve pDestRect handling
authorAxel Davy <davyaxel0@gmail.com>
Sat, 9 May 2020 11:17:17 +0000 (13:17 +0200)
committerMarge Bot <eric+marge@anholt.net>
Fri, 15 May 2020 15:43:57 +0000 (15:43 +0000)
commit1c474dde282aa7b02513097b58435a470eee23f9
treebeef8deab28ab9147b68584afc94512142f2ab6c
parentffed34113b652a59e6d6a9d9e212a3eac72dd216
st/nine: Improve pDestRect handling

pSourceRect and pDestRect allows to:
A) display a crop of the backbuffer
B) display the content in a subregion (after an offset)
C) resize the content before displaying

Before this patch, only features A and B were supported.
This patch adds C, but breaks A, which current support
relied on C not being implemented.

I think C is more important than A, and A can be added later.

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