mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02: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. */
|
* in which case it can be mapped unsynchronized. */
|
||||||
if (!(usage & PIPE_TRANSFER_UNSYNCHRONIZED) &&
|
if (!(usage & PIPE_TRANSFER_UNSYNCHRONIZED) &&
|
||||||
usage & PIPE_TRANSFER_WRITE &&
|
usage & PIPE_TRANSFER_WRITE &&
|
||||||
|
!rbuffer->is_shared &&
|
||||||
!util_ranges_intersect(&rbuffer->valid_buffer_range, box->x, box->x + box->width)) {
|
!util_ranges_intersect(&rbuffer->valid_buffer_range, box->x, box->x + box->width)) {
|
||||||
usage |= PIPE_TRANSFER_UNSYNCHRONIZED;
|
usage |= PIPE_TRANSFER_UNSYNCHRONIZED;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue