r200: fixup DMA region stuff
authorDave Airlie <airlied@redhat.com>
Wed, 4 Feb 2009 13:40:41 +0000 (23:40 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 4 Feb 2009 13:40:41 +0000 (23:40 +1000)
src/mesa/drivers/dri/r200/r200_context.c
src/mesa/drivers/dri/r200/r200_maos_arrays.c

index c2b5afc3850e9c87b16beccb1604ff23d0b04ef0..7a8c596ecf9c5ce1479226cb381ee2100e948d84 100644 (file)
@@ -586,7 +586,6 @@ void r200DestroyContext( __DRIcontextPrivate *driContextPriv )
       r200ReleaseArrays( rmesa->radeon.glCtx, ~0 );
 
       if (rmesa->radeon.dma.current) {
-        radeonReleaseDmaRegion(&rmesa->radeon);
         rcommonFlushCmdBuf( &rmesa->radeon, __FUNCTION__ );
       }
 
index 1bf7ef33f8e051aac0eaba6f8a397fb563383e72..716f9037dd9aba4f3ed1f3af3be89eb74d334fa4 100644 (file)
@@ -222,7 +222,6 @@ after_emit:
       rmesa->hw.vtx.cmd[VTX_VTXFMT_1] = vfmt1;
    }
 
-   radeon_bo_unmap(rmesa->radeon.dma.current);
    rmesa->tcl.nr_aos_components = nr;
 }
 
@@ -237,5 +236,4 @@ void r200ReleaseArrays( GLcontext *ctx, GLuint newinputs )
        rmesa->tcl.aos[i].bo = NULL;
      }
    }
-   radeonReleaseDmaRegion(&rmesa->radeon);
 }