From dfff6e10b4296592bae0034e91c633a31b2d2b90 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Wed, 19 Jun 2019 23:04:37 -0500 Subject: iris: Only do an RT flush for transfer maps if using copy_region. If we wrote the data via the CPU, there's no point in doing a render target flush. If using BLORP, we do want a render target flush so the data lands. --- src/gallium/drivers/iris/iris_resource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium') diff --git a/src/gallium/drivers/iris/iris_resource.c b/src/gallium/drivers/iris/iris_resource.c index 1f7ed3e270b..a413cbae9b3 100644 --- a/src/gallium/drivers/iris/iris_resource.c +++ b/src/gallium/drivers/iris/iris_resource.c @@ -1476,7 +1476,7 @@ iris_transfer_flush_region(struct pipe_context *ctx, if (res->base.target == PIPE_BUFFER) { history_flush |= iris_flush_bits_for_history(res) | - PIPE_CONTROL_RENDER_TARGET_FLUSH; + (map->staging ? PIPE_CONTROL_RENDER_TARGET_FLUSH : 0); } for (int i = 0; i < IRIS_BATCH_COUNT; i++) { -- cgit v1.2.3