st/nine: Ignore pDirtyRegion
authorAxel Davy <davyaxel0@gmail.com>
Sat, 9 May 2020 11:18:42 +0000 (13:18 +0200)
committerMarge Bot <eric+marge@anholt.net>
Fri, 15 May 2020 15:43:57 +0000 (15:43 +0000)
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 <davyaxel0@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5015>

src/gallium/frontends/nine/swapchain9.c

index b9578b54600ec5cb05ab982dcae73d41b4f408e9..dab6ba6aa291b1cd0fa7ca6b5da0e607b6402222 100644 (file)
@@ -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; }
     }