diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/legacy/i810/i810_dri.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/legacy/i810/i810_dri.c b/src/legacy/i810/i810_dri.c index 2b3f1e19..28a3b919 100644 --- a/src/legacy/i810/i810_dri.c +++ b/src/legacy/i810/i810_dri.c @@ -809,7 +809,12 @@ I810DRIScreenInit(ScreenPtr pScreen) return FALSE; } - I810AllocLow(&(pI810->TexMem), &(pI810->SysMem), pI810DRI->textureSize); + if (!I810AllocLow(&(pI810->TexMem), &(pI810->SysMem), pI810DRI->textureSize)) { + xf86DrvMsg(pScrn->scrnIndex, X_INFO, + "[agp] Texure memory allocation failed\n"); + DRICloseScreen(pScreen); + return FALSE; + } if (drmAddMap(pI810->drmSubFD, (drm_handle_t) pI810->TexMem.Start, pI810->TexMem.Size, DRM_AGP, 0, |