nouveau: fix maps with PIPE_TRANSFER_UNSYNCHRONIZED | PIPE_TRANSFER_DONTBLOCK
authorLuca Barbieri <luca@luca-barbieri.com>
Mon, 9 Aug 2010 02:56:03 +0000 (04:56 +0200)
committerLuca Barbieri <luca@luca-barbieri.com>
Mon, 9 Aug 2010 03:02:12 +0000 (05:02 +0200)
commit3bb0719fe1514d2a8fd4674203882fdb08232172
tree8f71420ce5966750d32c0346248d231c7e4a7a20
parentaef0fbd5b6e0b29342d09722c98d512b3661c31b
nouveau: fix maps with PIPE_TRANSFER_UNSYNCHRONIZED | PIPE_TRANSFER_DONTBLOCK

In this case, we were incorrectly prioritizing PIPE_TRANSFER_DONTBLOCK over
PIPE_TRANSFER_UNSYNCHRONIZED.

This can lead to failure in the Mesa VBO draw paths that end up specifying
both, but don't expect map to fail (in particular, the problem manifested as
a leak of buffer objects in teapot with other changes).
src/gallium/drivers/nouveau/nouveau_winsys.h