r600g/radeonsi: Map transfer staging texture unsynchronized when possible
The transfer staging texture is always freshly allocated, so for write-only transfers we don't need to explicitly wait for the BO to become idle. Squeezes a few hundered MB/s more out of x11perf -shmput500 with glamor. Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
9fed627234
commit
6ac5a5e383
|
@ -1039,6 +1039,8 @@ static void *r600_texture_transfer_map(struct pipe_context *ctx,
|
|||
|
||||
if (trans->staging) {
|
||||
buf = trans->staging;
|
||||
if (!rtex->is_depth && !(usage & PIPE_TRANSFER_READ))
|
||||
usage |= PIPE_TRANSFER_UNSYNCHRONIZED;
|
||||
} else {
|
||||
buf = &rtex->resource;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue