Module: Mesa
Branch: master
Commit: 4e14c3dcb15c0f97ba050adfb9d272c0dd000613
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=4e14c3dcb15c0f97ba050adfb9d272c0dd000613

Author: Mike Blumenkrantz <[email protected]>
Date:   Thu Oct  8 15:19:50 2020 -0400

zink: remove extraneous flush in transfer_map_region_flush

this was only needed to cover up some other bugs:
* missing barriers for buffer sampler/image descriptors
* weirdness with first frame handling

there's better ways of handling both cases, and now they're handled better

Reviewed-by: Dave Airlie <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9566>

---

 src/gallium/drivers/zink/zink_resource.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/gallium/drivers/zink/zink_resource.c 
b/src/gallium/drivers/zink/zink_resource.c
index 0949c835dbd..a23361fee1b 100644
--- a/src/gallium/drivers/zink/zink_resource.c
+++ b/src/gallium/drivers/zink/zink_resource.c
@@ -744,8 +744,6 @@ zink_transfer_flush_region(struct pipe_context *pctx,
             zink_copy_buffer(ctx, NULL, res, staging_res, box->x, box->x, 
box->width);
          else
             zink_transfer_copy_bufimage(ctx, res, staging_res, trans);
-         if (batch_uses)
-            pctx->flush(pctx, NULL, 0);
       }
    }
 }

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to