diff options
author | Leif Delgass <ldelgass@users.sourceforge.net> | 2002-07-08 16:34:36 +0000 |
---|---|---|
committer | Leif Delgass <ldelgass@users.sourceforge.net> | 2002-07-08 16:34:36 +0000 |
commit | 7998edbef426e17d5a6229fa19f84cb5f323509c (patch) | |
tree | cbb2a044179138e3de34e91a5a43917776a32705 | |
parent | 3f1b232c6bde202220952c5658db8acdfb1793bc (diff) |
Don't emit setup for swaps if there are no cliprects.
-rw-r--r-- | linux/mach64_state.c | 3 |
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 ); |