On Thu, 2003-10-02 at 18:41, Alex Deucher wrote: > I'm attempting to fix pageflipping in certain mergedfb modes. right > now it only works in when crtc2 is right of crtc1. I suspect the > problem has to do with the CRTC offsets that are set in > RADEONDoAdjustFrame() > > for instance if I have crtc2 left of or above crtc1, I would need to > adjust RADEON_CRTC_OFFSET by something like (crtc2_mode->CrtcHDisplay * > crtc2_mode->CrtcVDisplay) right? and for clone mode, I'd have to > adjust the offsets depending on the modes of each head. is my thinking > right here? or does it work differently?
I wouldn't think anything like this should be necessary as long as the values passed to RADEONDoAdjustFrame() are virtual screen coordinates, but you may have become more competent than me in this area. :) > Also, looking at radeon_dri.c, RADEONDRIFinishScreenInit() could we cap > the 3D engine to 2048x2048 my adjusting the values of pRADEONDRI->width > and pRADEONDRI->height? something like: > > if (pScrn->virtualX > 2048) > pRADEONDRI->width = 2048; > else > pRADEONDRI->width = pScrn->virtualX; > if (pScrn->virtualY > 2048) > pRADEONDRI->width = 2048; > else > pRADEONDRI->width = pScrn->virtualY; I doubt this would have a useful effect, if any (do the Radeon 3D drivers even use these fields?). As I have hinted repeatedly before, the only sane way to handle this for now is probably to disable the DRI if either virtual dimension exceeds 2048. -- Earthling Michel Dänzer \ Debian (powerpc), XFree86 and DRI developer Software libre enthusiast \ http://svcs.affero.net/rm.php?r=daenzer ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Dri-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dri-devel