diff --git a/src/via_exa.c b/src/via_exa.c index 3ee4921..3eb67df 100644 --- a/src/via_exa.c +++ b/src/via_exa.c @@ -796,7 +796,6 @@ viaInitExa(ScreenPtr pScreen) { ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen); ExaDriverPtr pExa = exaDriverAlloc(); - Bool nPOTSupported = TRUE; VIAPtr pVia = VIAPTR(pScrn); /* @@ -805,9 +804,11 @@ viaInitExa(ScreenPtr pScreen) * texture engine 1. We need to figure that out. */ #ifdef HAVE_DRI - nPOTSupported = ((!pVia->directRenderingType) || + Bool nPOTSupported = ((!pVia->directRenderingType) || (pVia->drmVerMajor > 2) || ((pVia->drmVerMajor == 2) && (pVia->drmVerMinor >= 11))); +#else + Bool nPOTSupported = TRUE; #endif pVia->nPOT[0] = nPOTSupported; pVia->nPOT[1] = nPOTSupported;