diff options
| author | Thomas Hellstrom <thomas-at-tungstengraphics-dot-com> | 2007-02-02 09:20:16 +0100 | 
|---|---|---|
| committer | Thomas Hellstrom <thomas-at-tungstengraphics-dot-com> | 2007-02-02 09:22:15 +0100 | 
| commit | 70bba11bc7bbf0cfb028521c1b6676ed0962c317 (patch) | |
| tree | 5dccdf7b540f4e632a5cc9887c95968f08641cbc | |
| parent | 07fabc3fd8f00006e6117081f5183a826a6d2bbb (diff) | |
Disable AGP DMA for chips with the new 3D engine.
| -rw-r--r-- | shared-core/via_dma.c | 5 | 
1 files changed, 5 insertions, 0 deletions
| diff --git a/shared-core/via_dma.c b/shared-core/via_dma.c index 90dbb6a2..a08d7d5a 100644 --- a/shared-core/via_dma.c +++ b/shared-core/via_dma.c @@ -192,6 +192,11 @@ static int via_initialize(drm_device_t * dev,  		return DRM_ERR(EFAULT);  	} +	if (dev_priv->chipset == VIA_DX9_0) { +		DRM_ERROR("AGP DMA is not supported on this chip\n"); +		return DRM_ERR(EINVAL); +	} +  	dev_priv->ring.map.offset = dev->agp->base + init->offset;  	dev_priv->ring.map.size = init->size;  	dev_priv->ring.map.type = 0; | 
