summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeif Delgass <ldelgass@users.sourceforge.net>2002-07-08 16:34:36 +0000
committerLeif Delgass <ldelgass@users.sourceforge.net>2002-07-08 16:34:36 +0000
commit7998edbef426e17d5a6229fa19f84cb5f323509c (patch)
treecbb2a044179138e3de34e91a5a43917776a32705
parent3f1b232c6bde202220952c5658db8acdfb1793bc (diff)
Don't emit setup for swaps if there are no cliprects.
-rw-r--r--linux/mach64_state.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/linux/mach64_state.c b/linux/mach64_state.c
index 07391e5d..8f59eb47 100644
--- a/linux/mach64_state.c
+++ b/linux/mach64_state.c
@@ -322,6 +322,9 @@ static int mach64_dma_dispatch_swap( drm_device_t *dev )
break;
}
+ if ( !nbox )
+ return 0;
+
DMAGETPTR( dev_priv, 13 + nbox * 4 ); /* returns on failure to get buffer */
DMAOUTREG( MACH64_Z_CNTL, 0 );