aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/frontends
diff options
context:
space:
mode:
authorAxel Davy <[email protected]>2020-05-09 13:18:42 +0200
committerMarge Bot <[email protected]>2020-05-15 15:43:57 +0000
commitdbb08255708b9005b5bb719a94ebd93194f51861 (patch)
tree144cc8e1667956966ffdfe89598148bd195435dc /src/gallium/frontends
parent1c474dde282aa7b02513097b58435a470eee23f9 (diff)
st/nine: Ignore pDirtyRegion
We supported it, but it's not much useful. Besides it gets more complicated to handle right when you support resizing before display. Signed-off-by: Axel Davy <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5015>
Diffstat (limited to 'src/gallium/frontends')
-rw-r--r--src/gallium/frontends/nine/swapchain9.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gallium/frontends/nine/swapchain9.c b/src/gallium/frontends/nine/swapchain9.c
index b9578b54600..dab6ba6aa29 100644
--- a/src/gallium/frontends/nine/swapchain9.c
+++ b/src/gallium/frontends/nine/swapchain9.c
@@ -733,6 +733,10 @@ present( struct NineSwapChain9 *This,
This, pSourceRect, pDestRect, pDirtyRegion,
hDestWindowOverride, (int)dwFlags, This->buffers[0]->base.resource);
+ /* We can choose to only update pDirtyRegion, but the backend can choose
+ * to update everything. Let's ignore */
+ (void) pDirtyRegion;
+
if (pSourceRect) {
DBG("pSourceRect = (%u..%u)x(%u..%u)\n",
pSourceRect->left, pSourceRect->right,
@@ -921,7 +925,7 @@ bypass_rendering:
if (!This->enable_threadpool) {
This->tasks[0]=NULL;
- hr = ID3DPresent_PresentBuffer(This->present, This->present_handles[0], hDestWindowOverride, pSourceRect, pDestRect ? &dest_rect : NULL, pDirtyRegion, dwFlags);
+ hr = ID3DPresent_PresentBuffer(This->present, This->present_handles[0], hDestWindowOverride, pSourceRect, pDestRect ? &dest_rect : NULL, NULL, dwFlags);
if (FAILED(hr)) { UNTESTED(3);return hr; }
}