OSDN Git Service

nouveau: when mapping a persistent buffer, synchronize on former xfers
authorIlia Mirkin <imirkin@alum.mit.edu>
Sat, 8 Apr 2017 22:31:35 +0000 (18:31 -0400)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 12 Apr 2017 10:32:28 +0000 (11:32 +0100)
commita0a48b641dd15607bed7b0c735a280067dca0e93
tree799dbd248e7b2671ddeb32b4a09d5783ab41919f
parentb6168c3b83d750cb0db2d6a4ae6ee52e2e520292
nouveau: when mapping a persistent buffer, synchronize on former xfers

If the buffer is being used, we should wait for those uses to be
complete before returning the map.

Fixes: GL45-CTS.direct_state_access.buffers_functional
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: mesa-stable@lists.freedesktop.org
(cherry picked from commit d9cc58d6ec56e676b1285508a4118a83f5325833)
src/gallium/drivers/nouveau/nouveau_buffer.c