mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 02:00:12 +01:00
gallium/radeon: buffer valid range tracking only works with unshared buffers
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com> Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
parent
be73d35829
commit
afdaffcbdb
1 changed files with 1 additions and 0 deletions
|
|
@ -294,6 +294,7 @@ static void *r600_buffer_transfer_map(struct pipe_context *ctx,
|
|||
* in which case it can be mapped unsynchronized. */
|
||||
if (!(usage & PIPE_TRANSFER_UNSYNCHRONIZED) &&
|
||||
usage & PIPE_TRANSFER_WRITE &&
|
||||
!rbuffer->is_shared &&
|
||||
!util_ranges_intersect(&rbuffer->valid_buffer_range, box->x, box->x + box->width)) {
|
||||
usage |= PIPE_TRANSFER_UNSYNCHRONIZED;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue