On Fri, 2005-05-27 at 19:02 +0100, Alan Hourihane wrote:
> >
> > Why does the mga_drv.c set DRIVER_REQUIRE_AGP when it doesn't 'require' it
> > if there's a PCI Matrox card ?
> >
> > Couldn't we do....
> >
> > if (drm_device_is_agp(dev) || DRIVER_REQUIRE_AGP)
> > dev->agp = drm_agp_init(dev);
> >
> > and remove DRIVER_REQUIRE_AGP from mga_drv.c ?
>
> Oops, try again...
>
> if (drm_device_is_agp(dev) || drm_core_check_feature(dev,
> DRIVER_REQUIRE_AGP))
> dev->agp = drm_agp_init(dev);
>
> if (dev->agp == NULL)) {
> DRM_ERROR("Cannot initialize the agpgart module.\n");
> retcode = -EINVAL;
> goto error_out_unreg;
> }
Shouldn't it be:
if (drm_device_is_agp(dev))
dev->agp = drm_agp_init(dev);
if (drm_core_check_feature(dev, DRIVER_REQUIRE_AGP))
{
if (dev->agp == NULL)) {
DRM_ERROR("Cannot initialize the agpgart module.\n");
retcode = -EINVAL;
goto error_out_unreg;
}
}
--
Earthling Michel Dänzer | Debian (powerpc), X and DRI developer
Libre software enthusiast | http://svcs.affero.net/rm.php?r=daenzer
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel