summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--user/xf86-video-sis/APKBUILD11
-rw-r--r--user/xf86-video-sis/glx.patch302
-rw-r--r--user/xf86-video-sis/virtualFrom.patch28
3 files changed, 3 insertions, 338 deletions
diff --git a/user/xf86-video-sis/APKBUILD b/user/xf86-video-sis/APKBUILD
index 2cd03b8ce..4febae7c9 100644
--- a/user/xf86-video-sis/APKBUILD
+++ b/user/xf86-video-sis/APKBUILD
@@ -1,7 +1,7 @@
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=xf86-video-sis
-pkgver=0.10.9
+pkgver=0.11.0
pkgrel=0
pkgdesc="X.Org driver for SiS video cards"
url="https://www.X.Org/"
@@ -10,10 +10,7 @@ license="X11"
depends=""
makedepends="util-macros xorg-server-dev xorgproto-dev"
subpackages="$pkgname-doc"
-source="https://www.X.Org/releases/individual/driver/xf86-video-sis-$pkgver.tar.bz2
- glx.patch
- virtualFrom.patch
- "
+source="https://www.X.Org/releases/individual/driver/xf86-video-sis-$pkgver.tar.bz2"
build() {
./configure \
@@ -34,6 +31,4 @@ package() {
make DESTDIR="$pkgdir" install
}
-sha512sums="7cb11d2f1f8be8d92159af7e322a9e4fe4e3436c38932d6d665b8854c2009495e99ff075c7a14d9db9c781114afc8397f0e8c1225d9a2f4bbf1b6a4b6cd6745d xf86-video-sis-0.10.9.tar.bz2
-964e3a0a70b1abd93b3260f127a569a5afe1f4c872d5bf8533fae7033b3e612752ee931c042dcf08996a92ee44069a93b5b614cbd2b10005fec14da109d636f4 glx.patch
-f0ca7776af2562818bc7fa738b0f43af3322369c981f37cf531e25dc05a07783778ae6f5042a4c90629dc6eb8705b95014c024de002b5b48ecb5fa46db9c8280 virtualFrom.patch"
+sha512sums="b8ad05b3faa24c6df65d825b576ddb8e2ce44705ce8b55d8cf0d9f37aa47a429ab43765d8daea57ff35c4cffed056fbec6dfe8ce95efcd6269cc7711115ea09c xf86-video-sis-0.11.0.tar.bz2"
diff --git a/user/xf86-video-sis/glx.patch b/user/xf86-video-sis/glx.patch
deleted file mode 100644
index f3cad9fad..000000000
--- a/user/xf86-video-sis/glx.patch
+++ /dev/null
@@ -1,302 +0,0 @@
-From a50b2b3412dd8e7f3916acb142c942e85ffcb3e5 Mon Sep 17 00:00:00 2001
-From: Emil Velikov <emil.velikov@collabora.com>
-Date: Mon, 17 Jul 2017 12:01:57 +0100
-Subject: [PATCH 2/2] xf86-video-sis: remove the GlxSetVisualConfigs stub and
- friends
-
-The function was an empty since 2008 at least. Remove it alongside the
-unused GLX visuals code.
-
-With this all the GL/GLX dependencies in the driver are gone.
-
-Cc: Connor Behan <connor.behan@gmail.com>
-Cc: Thomas Klausner <wiz@NetBSD.org>
-Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
----
- src/sis.h | 4 --
- src/sis_dri.c | 161 +------------------------------------------------------
- src/sis_dri.h | 5 --
- src/sis_driver.c | 10 +---
- 4 files changed, 3 insertions(+), 177 deletions(-)
-
-diff --git a/src/sis.h b/src/sis.h
-index 385b784..2b764cb 100644
---- a/src/sis.h
-+++ b/src/sis.h
-@@ -197,7 +197,6 @@
- #include "sarea.h"
- #define _XF86DRI_SERVER_
- #include "dri.h"
--#include "GL/glxint.h"
- #include "sis_dri.h"
- #endif /* SISDRI */
-
-@@ -1198,9 +1197,6 @@ typedef struct {
- Bool directRenderingEnabled;
- DRIInfoPtr pDRIInfo;
- int drmSubFD;
-- int numVisualConfigs;
-- __GLXvisualConfig* pVisualConfigs;
-- SISConfigPrivPtr pVisualConfigsPriv;
- SISRegRec DRContextRegs;
- #endif
-
-diff --git a/src/sis_dri.c b/src/sis_dri.c
-index 9a045a2..5778c51 100644
---- a/src/sis_dri.c
-+++ b/src/sis_dri.c
-@@ -44,7 +44,6 @@
- #include "sis_regs.h"
-
- #include "fb.h"
--#include "GL/glxtokens.h"
-
- #ifndef SISHAVEDRMWRITE
- # if XF86_VERSION_CURRENT < XF86_VERSION_NUMERIC(4,2,99,0,0)
-@@ -96,12 +95,6 @@ extern char *DRICreatePCIBusID(pciVideoPtr PciInfo);
- while( (SIS_MMIO_IN16(pSiS->IOBase, Q_STATUS+2) & 0x8000) != 0x8000){}; \
- }
-
--extern void GlxSetVisualConfigs(
-- int nconfigs,
-- __GLXvisualConfig *configs,
-- void **configprivs
--);
--
- /* The kernel's "sis" DRM module handles all chipsets */
- static char SISKernelDriverName[] = "sis";
-
-@@ -110,7 +103,6 @@ static char SISClientDriverNameSiS300[] = "sis"; /* 300, 540, 630, 730 */
- static char SISClientDriverNameSiS315[] = "sis315"; /* All of 315/330 series */
- static char SISClientDriverNameXGI[] = "xgi"; /* XGI V3, V5, V8 */
-
--static Bool SISInitVisualConfigs(ScreenPtr pScreen);
- static Bool SISCreateContext(ScreenPtr pScreen, VisualPtr visual,
- drm_context_t hwContext, void *pVisualConfigPriv,
- DRIContextType contextStore);
-@@ -125,141 +117,6 @@ static void SISDRIInitBuffers(WindowPtr pWin, RegionPtr prgn, CARD32 index);
- static void SISDRIMoveBuffers(WindowPtr pParent, DDXPointRec ptOldOrg,
- RegionPtr prgnSrc, CARD32 index);
-
--static Bool
--SISInitVisualConfigs(ScreenPtr pScreen)
--{
-- ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen);
-- SISPtr pSIS = SISPTR(pScrn);
-- int numConfigs = 0;
-- __GLXvisualConfig *pConfigs = 0;
-- SISConfigPrivPtr pSISConfigs = 0;
-- SISConfigPrivPtr *pSISConfigPtrs = 0;
-- int i, db, z_stencil, accum;
-- Bool useZ16 = FALSE;
--
-- if(getenv("SIS_FORCE_Z16")) {
-- useZ16 = TRUE;
-- }
--
-- switch (pScrn->bitsPerPixel) {
-- case 8:
-- case 24:
-- break;
-- case 16:
-- case 32:
-- numConfigs = (useZ16) ? 8 : 16;
--
-- if(!(pConfigs = (__GLXvisualConfig*)calloc(sizeof(__GLXvisualConfig),
-- numConfigs))) {
-- return FALSE;
-- }
-- if(!(pSISConfigs = (SISConfigPrivPtr)calloc(sizeof(SISConfigPrivRec),
-- numConfigs))) {
-- free(pConfigs);
-- return FALSE;
-- }
-- if(!(pSISConfigPtrs = (SISConfigPrivPtr*)calloc(sizeof(SISConfigPrivPtr),
-- numConfigs))) {
-- free(pConfigs);
-- free(pSISConfigs);
-- return FALSE;
-- }
-- for(i=0; i<numConfigs; i++) pSISConfigPtrs[i] = &pSISConfigs[i];
--
-- i = 0;
-- for(accum = 0; accum <= 1; accum++) {
-- for(z_stencil = 0; z_stencil < (useZ16 ? 2 : 4); z_stencil++) {
-- for(db = 0; db <= 1; db++) {
-- pConfigs[i].vid = -1;
-- pConfigs[i].class = -1;
-- pConfigs[i].rgba = TRUE;
-- if(pScrn->bitsPerPixel == 16) {
-- pConfigs[i].redSize = 5;
-- pConfigs[i].greenSize = 6;
-- pConfigs[i].blueSize = 5;
-- pConfigs[i].alphaSize = 0;
-- pConfigs[i].redMask = 0x0000F800;
-- pConfigs[i].greenMask = 0x000007E0;
-- pConfigs[i].blueMask = 0x0000001F;
-- pConfigs[i].alphaMask = 0x00000000;
-- } else {
-- pConfigs[i].redSize = 8;
-- pConfigs[i].greenSize = 8;
-- pConfigs[i].blueSize = 8;
-- pConfigs[i].alphaSize = 8;
-- pConfigs[i].redMask = 0x00FF0000;
-- pConfigs[i].greenMask = 0x0000FF00;
-- pConfigs[i].blueMask = 0x000000FF;
-- pConfigs[i].alphaMask = 0xFF000000;
-- }
-- if(accum) {
-- pConfigs[i].accumRedSize = 16;
-- pConfigs[i].accumGreenSize = 16;
-- pConfigs[i].accumBlueSize = 16;
-- if(pConfigs[i].alphaMask == 0)
-- pConfigs[i].accumAlphaSize = 0;
-- else
-- pConfigs[i].accumAlphaSize = 16;
-- } else {
-- pConfigs[i].accumRedSize = 0;
-- pConfigs[i].accumGreenSize = 0;
-- pConfigs[i].accumBlueSize = 0;
-- pConfigs[i].accumAlphaSize = 0;
-- }
-- if(db) pConfigs[i].doubleBuffer = TRUE;
-- else pConfigs[i].doubleBuffer = FALSE;
-- pConfigs[i].stereo = FALSE;
-- pConfigs[i].bufferSize = -1;
-- switch(z_stencil) {
-- case 0:
-- pConfigs[i].depthSize = 0;
-- pConfigs[i].stencilSize = 0;
-- break;
-- case 1:
-- pConfigs[i].depthSize = 16;
-- pConfigs[i].stencilSize = 0;
-- break;
-- case 2:
-- pConfigs[i].depthSize = 32;
-- pConfigs[i].stencilSize = 0;
-- break;
-- case 3:
-- pConfigs[i].depthSize = 24;
-- pConfigs[i].stencilSize = 8;
-- break;
-- }
-- pConfigs[i].auxBuffers = 0;
-- pConfigs[i].level = 0;
-- if(pConfigs[i].accumRedSize != 0)
-- pConfigs[i].visualRating = GLX_SLOW_CONFIG;
-- else
-- pConfigs[i].visualRating = GLX_NONE_EXT;
-- pConfigs[i].transparentPixel = GLX_NONE;
-- pConfigs[i].transparentRed = 0;
-- pConfigs[i].transparentGreen = 0;
-- pConfigs[i].transparentBlue = 0;
-- pConfigs[i].transparentAlpha = 0;
-- pConfigs[i].transparentIndex = 0;
-- i++;
-- }
-- }
-- }
-- if(i != numConfigs) {
-- xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
-- "[dri] Incorrect initialization of visuals. Disabling the DRI.\n");
-- return FALSE;
-- }
-- break;
-- }
--
-- pSIS->numVisualConfigs = numConfigs;
-- pSIS->pVisualConfigs = pConfigs;
-- pSIS->pVisualConfigsPriv = pSISConfigs;
-- GlxSetVisualConfigs(numConfigs, pConfigs, (void**)pSISConfigPtrs);
--
-- return TRUE;
--}
--
- Bool
- SISDRIScreenInit(ScreenPtr pScreen)
- {
-@@ -276,10 +133,9 @@ SISDRIScreenInit(ScreenPtr pScreen)
- pSIS->cmdQ_SharedWritePortBackup = NULL;
- #endif
-
-- /* Check that the GLX, DRI, and DRM modules have been loaded by testing
-+ /* Check that the DRI, and DRM modules have been loaded by testing
- * for canonical symbols in each module.
- */
-- if(!xf86LoaderCheckSymbol("GlxSetVisualConfigs")) return FALSE;
- if(!xf86LoaderCheckSymbol("drmAvailable")) return FALSE;
- if(!xf86LoaderCheckSymbol("DRIQueryVersion")) {
- xf86DrvMsg(pScreen->myNum, X_ERROR,
-@@ -651,11 +507,6 @@ SISDRIScreenInit(ScreenPtr pScreen)
-
- pSISDRI->irqEnabled = pSIS->irqEnabled;
-
-- if(!(SISInitVisualConfigs(pScreen))) {
-- SISDRICloseScreen(pScreen);
-- return FALSE;
-- }
--
- xf86DrvMsg(pScrn->scrnIndex, X_INFO, "[dri] Visual configs initialized\n" );
-
- return TRUE;
-@@ -801,16 +652,6 @@ SISDRICloseScreen(ScreenPtr pScreen)
- pSIS->pDRIInfo = NULL;
- }
-
-- if(pSIS->pVisualConfigs) {
-- free(pSIS->pVisualConfigs);
-- pSIS->pVisualConfigs = NULL;
-- }
--
-- if(pSIS->pVisualConfigsPriv) {
-- free(pSIS->pVisualConfigsPriv);
-- pSIS->pVisualConfigsPriv = NULL;
-- }
--
- }
-
- /* TODO: xserver receives driver's swapping event and do something
-diff --git a/src/sis_dri.h b/src/sis_dri.h
-index 399d757..ce9039c 100644
---- a/src/sis_dri.h
-+++ b/src/sis_dri.h
-@@ -103,11 +103,6 @@ typedef struct {
- #define AGPVtxBufOffset AGPCmdBufOffset
- #define AGPVtxBufSize AGPCmdBufSize
-
--typedef struct {
-- /* Nothing here yet */
-- int dummy;
--} SISConfigPrivRec, *SISConfigPrivPtr;
--
- typedef struct {
- /* Nothing here yet */
- int dummy;
-diff --git a/src/sis_driver.c b/src/sis_driver.c
-index 513f68b..4e51e2e 100644
---- a/src/sis_driver.c
-+++ b/src/sis_driver.c
-@@ -6901,17 +6901,11 @@ SISPreInit(ScrnInfoPtr pScrn, int flags)
- }
- }
-
-- /* Load the dri and glx modules if requested. */
-+ /* Load the dri modules if requested. */
- #ifdef SISDRI
- if(pSiS->loadDRI) {
- if(!xf86LoaderCheckSymbol("DRIScreenInit")) {
-- if(xf86LoadSubModule(pScrn, "dri")) {
-- if(!xf86LoaderCheckSymbol("GlxSetVisualConfigs")) {
-- if(!xf86LoadSubModule(pScrn, "glx")) {
-- SISErrorLog(pScrn, "Failed to load glx module\n");
-- }
-- }
-- } else {
-+ if(!xf86LoadSubModule(pScrn, "dri")) {
- SISErrorLog(pScrn, "Failed to load dri module\n");
- }
- }
---
-2.16.2
-
diff --git a/user/xf86-video-sis/virtualFrom.patch b/user/xf86-video-sis/virtualFrom.patch
deleted file mode 100644
index 4413c4a0f..000000000
--- a/user/xf86-video-sis/virtualFrom.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-From 4b1356a2b7fd06e9a05d134caa4033681c939737 Mon Sep 17 00:00:00 2001
-From: Adam Jackson <ajax@redhat.com>
-Date: Thu, 16 Feb 2017 11:21:27 -0500
-Subject: [PATCH 1/2] Remove reference to ->virtualFrom
-
-The core will print this information as well anyway.
-
-Signed-off-by: Adam Jackson <ajax@redhat.com>
----
- src/sis_driver.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/src/sis_driver.c b/src/sis_driver.c
-index 8f06164..513f68b 100644
---- a/src/sis_driver.c
-+++ b/src/sis_driver.c
-@@ -2738,7 +2738,7 @@ SiSPrintModes(ScrnInfoPtr pScrn)
- float hsync, refresh = 0.0;
- char *desc, *desc2, *prefix, *uprefix, *output;
-
-- xf86DrvMsg(pScrn->scrnIndex, pScrn->virtualFrom, "Virtual size is %dx%d "
-+ xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Virtual size is %dx%d "
- "(pitch %d)\n", pScrn->virtualX, pScrn->virtualY,
- pScrn->displayWidth);
-
---
-2.16.2
-