On Mon, 2007-08-13 at 16:32 -0700, Eric Anholt wrote: > */ > - map->offset += dev->agp->base; > + if (map->offset < dev->agp->base || > + map->offset > dev->agp->base + > + dev->agp->agp_info.aper_size * 1024 * 1024) { > + map->offset += dev->agp->base; > + }
Looks like this will always add dev->agp->base if the aperture is at the very end of the address space (dev->agp->base + dev->agp->agp_info.aper_size * 1024 * 1024 wraps to 0). (Been there, done that in the radeon driver...) -- Earthling Michel Dänzer | http://tungstengraphics.com Libre software enthusiast | Debian, X and DRI developer ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -- _______________________________________________ Dri-devel mailing list Dri-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dri-devel