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.
This commit is contained in:
Kenneth Graunke 2019-06-19 23:04:37 -05:00
parent c4c17ab3ec
commit dfff6e10b4
1 changed files with 1 additions and 1 deletions

View File

@ -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++) {