diff options
| author | Chin-San Huang <chinsan@FreeBSD.org> | 2008-06-14 00:01:35 +0000 |
|---|---|---|
| committer | Chin-San Huang <chinsan@FreeBSD.org> | 2008-06-14 00:01:35 +0000 |
| commit | 48a424a4738f0f3ddd4920c513c6b8419eecffab (patch) | |
| tree | 1caf5ed068e41f5cd4a114eb6ed8430db52c07a1 /x11-drivers/xf86-video-sis-intel/files/patch-src-sis300_accel.c | |
| parent | Add httpry: (diff) | |
Add xf86-video-sis-intel 300407, x.Org sis display driver provided by
Intel.
PR: ports/124461
Submitted by: Alexey Illarionov <littlesavage at orionet.ru>
Diffstat (limited to 'x11-drivers/xf86-video-sis-intel/files/patch-src-sis300_accel.c')
| -rw-r--r-- | x11-drivers/xf86-video-sis-intel/files/patch-src-sis300_accel.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/x11-drivers/xf86-video-sis-intel/files/patch-src-sis300_accel.c b/x11-drivers/xf86-video-sis-intel/files/patch-src-sis300_accel.c new file mode 100644 index 000000000000..dc4b9d9bbef6 --- /dev/null +++ b/x11-drivers/xf86-video-sis-intel/files/patch-src-sis300_accel.c @@ -0,0 +1,29 @@ +--- src/sis300_accel.c.orig 2008-06-06 00:43:06.000000000 +0400 ++++ src/sis300_accel.c 2008-05-27 02:53:37.000000000 +0400 +@@ -1231,7 +1231,7 @@ + + #ifdef SIS_USE_EXA /* ----------------------- EXA ----------------------- */ + if(pSiS->useEXA) { +-#if XORG_VERSION_CURRENT <= XORG_VERSION_NUMERIC(7,0,0,0,0) ++#if XORG_VERSION_CURRENT <= XORG_VERSION_NUMERIC(7,0,0,0,0) && XORG_VERSION_CURRENT >= XORG_VERSION_NUMERIC(4,0,0,0,0) + + if(pSiS->scrnOffset < 8192) { + int obase = 0; +@@ -1253,7 +1253,7 @@ + "Not enough video RAM for offscreen memory manager. Xv disabled\n"); + } + +-#if XORG_VERSION_CURRENT < XORG_VERSION_NUMERIC(6,8,2,0,0) ++#if XORG_VERSION_CURRENT < XORG_VERSION_NUMERIC(6,8,2,0,0) && XORG_VERSION_CURRENT >= XORG_VERSION_NUMERIC(4,0,0,0,0) + pSiS->EXADriverPtr->card.offscreenByteAlign = 16; /* src/dst: double quad word boundary */ + pSiS->EXADriverPtr->card.offscreenPitch = 4; + #else +@@ -1430,7 +1430,7 @@ + pSiS->exa_scratch = exaOffscreenAlloc(pScreen, 128 * 1024, 16, TRUE, + SiSScratchSave, pSiS); + +- #if XORG_VERSION_CURRENT <= XORG_VERSION_NUMERIC(7,0,0,0,0) ++ #if XORG_VERSION_CURRENT <= XORG_VERSION_NUMERIC(7,0,0,0,0) && XORG_VERSION_CURRENT >= XORG_VERSION_NUMERIC(4,0,0,0,0) + if(pSiS->exa_scratch) { + pSiS->exa_scratch_next = pSiS->exa_scratch->offset; + pSiS->EXADriverPtr->accel.UploadToScratch = SiSUploadToScratch; |
