radeon: unmap in case of two dma regions being used for one cmdbuf
authorDave Airlie <airlied@redhat.com>
Wed, 11 Feb 2009 09:03:56 +0000 (19:03 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 11 Feb 2009 09:03:56 +0000 (19:03 +1000)
src/mesa/drivers/dri/radeon/common_misc.c

index 333db053bbbe07cd694e2073834a180e1a34d3cb..9456f2a43893cee3d177884a5a603f5e8d4ce9d3 100644 (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;
        }