radeon: unmap in case of two dma regions being used for one cmdbuf

This commit is contained in:
Dave Airlie 2009-02-11 19:03:56 +10:00
parent 7e98907eb8
commit 3713a7accf

View file

@ -2446,6 +2446,7 @@ void radeonRefillCurrentDmaRegion(radeonContextPtr rmesa, int size)
}
if (rmesa->dma.current) {
radeon_bo_unmap(rmesa->dma.current);
radeon_bo_unref(rmesa->dma.current);
rmesa->dma.current = 0;
}