summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkeithw <keithw>2000-02-06 20:43:47 +0000
committerkeithw <keithw>2000-02-06 20:43:47 +0000
commit1ff123b5f8e7ddd062c9d60cd845a227d4dcfc71 (patch)
treef9d7f30656df92fa15c58e36d643b3902dbaa874
parent1380bb129abd785646870d4a39ce6b65592b3c13 (diff)
bug fix for jeff
-rw-r--r--xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/mga_clear.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/mga_clear.c b/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/mga_clear.c
index 11aeca514..eee18ba2a 100644
--- a/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/mga_clear.c
+++ b/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/mga_clear.c
@@ -327,7 +327,8 @@ int mga_dma(struct inode *inode, struct file *filp, unsigned int cmd,
}
if (d.send_count) {
- drm_mga_buf_priv_t *buf_priv = d.buflist[0]->dev_private;
+ int idx = d.send_indices[0];
+ drm_mga_buf_priv_t *buf_priv = dma->buflist[ idx ]->dev_private;
drm_mga_private_t *dev_priv = dev->dev_private;
buf_priv->dma_type = MGA_DMA_VERTEX;
@@ -337,7 +338,7 @@ int mga_dma(struct inode *inode, struct file *filp, unsigned int cmd,
/* Snapshot the relevent bits of the sarea...
*/
- mgaCopyAndVerifyState( dev );
+ mgaCopyAndVerifyState( dev_priv, buf_priv );
retcode = drm_dma_enqueue(dev, &d);
mga_dma_schedule(dev, 1);