diff options
author | Alexandros Frantzis <[email protected]> | 2019-05-23 21:16:48 +0300 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2019-06-07 21:45:22 -0700 |
commit | f38cdaebac79788e353b1589f0c0b722f5bc5191 (patch) | |
tree | 17ae8fd7d9e6127a6c486fba6037ec9ef5a4c365 /src/gallium/drivers/tegra/tegra_screen.c | |
parent | 8eb8222c102ee6cd38a01e7df952ea87e1ca4f42 (diff) |
virgl: Avoid unfinished transfer_get with PIPE_TRANSFER_DONTBLOCK
If we are not allowed to block, and we know that we will have to wait,
either because the resource is busy, or because it will become busy due
to a readback, return early to avoid performing an incomplete
transfer_get. Such an incomplete transfer_get may finish at any time,
during which another unsynchronized map could write to the resource
contents, leaving the contents in an undefined state.
Signed-off-by: Alexandros Frantzis <[email protected]>
Suggested-by: Chia-I Wu <[email protected]>
Reviewed-by: Chia-I Wu <[email protected]>
Diffstat (limited to 'src/gallium/drivers/tegra/tegra_screen.c')
0 files changed, 0 insertions, 0 deletions