[Openchrome-devel] [Bug 96399] New build warnings
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Tue Jun 14 23:33:23 UTC 2016
https://bugs.freedesktop.org/show_bug.cgi?id=96399
--- Comment #6 from Kevin Brace <kevinbrace at gmx.com> ---
(In reply to Xavier Bachelot from comment #4)
> Hi Kevin,
>
> (In reply to Kevin Brace from comment #3)
> > I hope the patch I uploaded fixes the compilation warning.
> > I hope it fixes the warning.
> >
> Yes, the build warning (and bug) is gone.
>
I will commit the change shortly (I will push it within 24 hours.)
> >
> I though XAA has been removed from the X server ?
> I know precious little about the BSDs, so I can't comment.
I have seen a few remnants of XAA in the code.
https://cgit.freedesktop.org/openchrome/xf86-video-openchrome/commit/?id=25675f816326056eb9cd617f09d8dad23f1ae94a
This stuff from the latest code.
_____________________________________________________________
Bool
umsCreate(ScrnInfoPtr pScrn)
{
ScreenPtr pScreen = pScrn->pScreen;
VIAPtr pVia = VIAPTR(pScrn);
unsigned long offset;
BoxRec AvailFBArea;
Bool ret = TRUE;
long size;
int maxY;
#ifdef HAVE_DRI
if (pVia->directRenderingType == DRI_1) {
pVia->driSize = (pVia->FBFreeEnd - pVia->FBFreeStart) >> 2;
if ((pVia->driSize > (pVia->maxDriSize * 1024)) && pVia->maxDriSize >
0)
pVia->driSize = pVia->maxDriSize * 1024;
/* In the case of DRI we handle all VRAM by the DRI ioctls */
if (pVia->useEXA)
return TRUE;
/* XAA has to use FBManager so we have to split the space with DRI */
maxY = pScrn->virtualY + (pVia->driSize / pVia->Bpl);
} else
#endif
maxY = pVia->FBFreeEnd / pVia->Bpl;
/* FBManager can't handle more than 32767 scan lines */
if (maxY > 32767)
maxY = 32767;
AvailFBArea.x1 = 0;
AvailFBArea.y1 = 0;
AvailFBArea.x2 = pScrn->displayWidth;
AvailFBArea.y2 = maxY;
pVia->FBFreeStart = (AvailFBArea.y2 + 1) * pVia->Bpl;
/*
* Initialization of the XFree86 framebuffer manager is done via
* Bool xf86InitFBManager(ScreenPtr pScreen, BoxPtr FullBox)
* FullBox represents the area of the framebuffer that the manager
* is allowed to manage. This is typically a box with a width
* of pScrn->displayWidth and a height of as many lines as can be fit
* within the total video memory
*/
ret = xf86InitFBManager(pScreen, &AvailFBArea);
if (ret != TRUE)
xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "xf86InitFBManager init
failed\n");
DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
"Frame Buffer From (%d,%d) To (%d,%d)\n",
AvailFBArea.x1, AvailFBArea.y1, AvailFBArea.x2, AvailFBArea.y2));
offset = (pVia->FBFreeStart + pVia->Bpp - 1) / pVia->Bpp;
size = pVia->FBFreeEnd / pVia->Bpp - offset;
if (size > 0)
xf86InitFBManagerLinear(pScreen, offset, size);
DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO,
"Using %d lines for offscreen memory.\n",
AvailFBArea.y2 - pScrn->virtualY));
return TRUE;
}
_____________________________________________________________
Since EXA is almost always used in Linux, it will not call xf86InitFBManager.
We can fix this "flaw" later.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/openchrome-devel/attachments/20160614/6f86ad36/attachment.html>
More information about the Openchrome-devel
mailing list