mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 08:40:11 +01:00
iris: Don't flush the batch for unsynchronized mappings
I messed this up when adding the GPU copy path.
This commit is contained in:
parent
a1cd0040b6
commit
836b47ca4e
1 changed files with 5 additions and 3 deletions
|
|
@ -1256,9 +1256,11 @@ iris_transfer_map(struct pipe_context *ctx,
|
|||
iris_map_copy_region(map);
|
||||
} else {
|
||||
/* Otherwise we're free to map on the CPU. Flush if needed. */
|
||||
for (int i = 0; i < IRIS_BATCH_COUNT; i++) {
|
||||
if (iris_batch_references(&ice->batches[i], res->bo))
|
||||
iris_batch_flush(&ice->batches[i]);
|
||||
if (!(usage & PIPE_TRANSFER_UNSYNCHRONIZED)) {
|
||||
for (int i = 0; i < IRIS_BATCH_COUNT; i++) {
|
||||
if (iris_batch_references(&ice->batches[i], res->bo))
|
||||
iris_batch_flush(&ice->batches[i]);
|
||||
}
|
||||
}
|
||||
|
||||
if (surf->tiling == ISL_TILING_W) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue