radeon: Fix buffer object unmap to be called only once for dma buffers.
authorPauli Nieminen <suokkos@gmail.com>
Mon, 15 Mar 2010 08:30:18 +0000 (10:30 +0200)
committerPauli Nieminen <suokkos@gmail.com>
Tue, 16 Mar 2010 15:00:14 +0000 (17:00 +0200)
commite9c2c4a76466fc1ccfbf4d5de048414f7126b940
treea74ddb88533cde6752f10bea8d79e26e9bb99ad5
parent346298c7658f2ec8b105e5e53101637af232724f
radeon: Fix buffer object unmap to be called only once for dma buffers.

If flush happens inside radeonRefillCurrentMaRegion the last dma buffer would
be unmapped twice. Unmapping buffer when moving buffer to wait list fixes the
mapping error.
src/mesa/drivers/dri/radeon/radeon_dma.c