} else {
dev_priv->status = NULL;
}
- dev->agp_buffer_map = drm_core_findmap(dev, init->buffers_offset);
- if (!dev->agp_buffer_map) {
- DRM_ERROR("could not find dma buffer region!\n");
- savage_do_cleanup_bci(dev);
- return DRM_ERR(EINVAL);
+ if (dev_priv->dma_type == SAVAGE_DMA_AGP) {
+ dev->agp_buffer_map = drm_core_findmap(dev,
+ init->buffers_offset);
+ if (!dev->agp_buffer_map) {
+ DRM_ERROR("could not find dma buffer region!\n");
+ savage_do_cleanup_bci(dev);
+ return DRM_ERR(EINVAL);
+ }
}
if (init->agp_textures_offset) {
dev_priv->agp_textures =
#define DRIVER_NAME "savage"
#define DRIVER_DESC "Savage3D/MX/IX, Savage4, SuperSavage, Twister, ProSavage[DDR]"
-#define DRIVER_DATE "20050109"
+#define DRIVER_DATE "20050110"
#define DRIVER_MAJOR 2
#define DRIVER_MINOR 1
-#define DRIVER_PATCHLEVEL 1
+#define DRIVER_PATCHLEVEL 2
/* Interface history:
*
* 1.x The DRM driver from the VIA/S3 code drop, basically a dummy