summaryrefslogtreecommitdiff
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2009-02-11 19:03:56 +1000
committerDave Airlie <airlied@redhat.com>2009-02-11 19:03:56 +1000
commit3713a7accf8e10049c878ae62f6bc199ef1566eb (patch)
tree7d7457b6c633450d8eba006acbb28dec1ed9d45d /src/mesa/drivers
parent7e98907eb8da936d72902fa0bb456962fe6ac551 (diff)
radeon: unmap in case of two dma regions being used for one cmdbuf
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/radeon/common_misc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/radeon/common_misc.c b/src/mesa/drivers/dri/radeon/common_misc.c
index 333db053bb..9456f2a438 100644
--- a/src/mesa/drivers/dri/radeon/common_misc.c
+++ b/src/mesa/drivers/dri/radeon/common_misc.c
@@ -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;
}