311 Commits

Author SHA1 Message Date
Enrico Weigelt, metux IT consult
63fc0fd883 new ci 2025-03-07 14:05:37 +01:00
Enrico Weigelt, metux IT consult
943995d00e ci 2025-03-07 09:14:09 +01:00
Enrico Weigelt, metux IT consult
2e2af79801 use asprintf() instead of Xasprintf()
All our supported platforms should have asprintf(), so we don't need
the Xserver's own implementation anymore.

It's one of two drivers blocking removal of this function form server ABI.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-03-07 08:56:40 +01:00
Enrico Weigelt, metux IT consult
1644e3a19d gitlab CI: add libdrm with freedreno, nouveau, omap
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2024-06-07 17:16:33 +02:00
Enrico Weigelt, metux IT consult
5109c6ef72 gitlab CI: add debian-i386 build
Add CI jobs for building on debian-i386 (just had amd64 yet), so we can
also test 32bit targets.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2024-06-07 10:29:13 +02:00
Enrico Weigelt, metux IT consult
76e264e57a gitlab CI: add pipeline for building against various Xserver releases
Adding a gitlab pipeline building this driver against Xserver major releases
since 1.18, including current master branch, on Debian as well as FreeBSD.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2024-06-06 18:22:23 +02:00
Enrico Weigelt, metux IT consult
879582d086 gitlab CI: common scripts for driver builds
Adding a bunch of common scripts for building xorg drivers on different
platforms (for now Debian and FreeBSD) against different server versions.

Also designed to be executed locally (eg. within a VM), so one doesn't
always have to employ f.d.o gitlab.

For now, these are synced manually across various driver repos, until we've
found a viable solution for a central place.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2024-06-06 18:22:13 +02:00
Enrico Weigelt, metux IT consult
4de8913e6f drop obsolete check for REGION_NULL
Since we're relying on at least xserver 1.18, we know that symbol exists.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-siliconmotion/-/merge_requests/6>
2024-05-22 18:41:10 -07:00
Enrico Weigelt, metux IT consult
f494e95294 drop support for ancient xserver versions
We're relying on at least 1.18 now.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-siliconmotion/-/merge_requests/6>
2024-05-22 18:41:10 -07:00
Alan Coopersmith
8f53239ad7 Raise minimum supported Xserver version to 1.18 (ABI_VIDEODRV_VERSION 20.0)
Already effectively required by use of XNFcallocarray() introduced in
xorg/xserver@b96dc999 - xserver-1.18.0, released in Nov. 2015.

Allows dropping remnants of code for XAA and pre-pciaccess X servers

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-siliconmotion/-/merge_requests/7>
2024-05-18 16:03:41 -07:00
Enrico Weigelt, metux IT consult
0d6cd74523 use XNFcallocarray() instead of xnfcalloc macro
xnfcalloc is just an alias for XNFcallocarray() that doesn't seem to serve
any practical purpose, so it can go away once all drivers stopped using it.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-siliconmotion/-/merge_requests/5>
2024-05-08 16:37:46 +02:00
Alan Coopersmith
6bb016cbec xf86-video-siliconmotion 1.7.10
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
xf86-video-siliconmotion-1.7.10
2023-09-27 17:57:10 -07:00
Alan Coopersmith
6f3c8acd07 gitlab CI: ensure libtool is installed in build container
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-09-26 18:20:52 -07:00
Alan Coopersmith
1eace80407 Remove "All rights reserved" from Oracle copyright notices
Oracle no longer includes this term in our copyright & license notices.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-02-25 09:14:16 -08:00
Alan Coopersmith
f3e48a4a04 Replace malloc()+memset() with calloc()
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-12-15 09:22:36 -08:00
Alan Coopersmith
343b595d28 Replace malloc()+snprintf() with Xasprintf()
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-12-15 09:13:22 -08:00
Alan Coopersmith
8cddfb1205 Quiet -Wempty-body warning
smi_video.c: In function ‘SetAttrSAA7111’:
smi_video.c:802:33: warning: suggest braces around empty body
  in an ‘if’ statement [-Wempty-body]
      if ((j&7) == 7) DEBUG("\n");
                                 ^

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-12-15 08:50:50 -08:00
Alan Coopersmith
7c145c65e2 constify some char * declarations
Clears 6 of 17 -Wdiscarded-qualifiers warnings from gcc

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-12-15 08:50:50 -08:00
Alan Coopersmith
92f5cf6fcb gitlab CI: stop requiring Signed-off-by in commits
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-12-08 18:04:57 -08:00
Alan Coopersmith
ff3dbb3ee8 gitlab CI: add a basic build test
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-28 15:00:06 -08:00
Alan Coopersmith
3e608e2332 Fix spelling/wording issues
Found by using:
    codespell --builtin clear,rare,usage,informal,code,names

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-28 14:57:43 -08:00
Alan Coopersmith
725459b05f Build xz tarballs instead of bzip2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-28 14:30:03 -08:00
Alan Coopersmith
8e7eea6e1c Update configure.ac bug URL for gitlab migration
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-12-07 19:08:46 -08:00
Alan Coopersmith
1449cbc907 Update README for gitlab migration
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-18 16:17:10 -08:00
Mihail Konev
1f94cd4f4b autogen: add default patch prefix
Signed-off-by: Mihail Konev <k.mvc@ya.ru>
2017-01-26 14:00:22 +10:00
Emil Velikov
8bdddcca77 autogen.sh: use quoted string variables
Place quotes around the $srcdir, $ORIGDIR and $0 variables to prevent
fall-outs, when they contain space.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-01-26 11:26:28 +10:00
Peter Hutterer
edb34b0b2e autogen.sh: use exec instead of waiting for configure to finish
Syncs the invocation of configure with the one from the server.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
2017-01-26 11:25:40 +10:00
Colin Walters
0cb46dfb3a autogen.sh: Implement GNOME Build API
http://people.gnome.org/~walters/docs/build-api.txt

Signed-off-by: Adam Jackson <ajax@redhat.com>
2017-01-26 11:25:40 +10:00
Peter Hutterer
59df210721 configure: Drop AM_MAINTAINER_MODE
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-01-26 11:18:39 +10:00
Matt Turner
d269962724 xf86-video-siliconmotion 1.7.9
Signed-off-by: Matt Turner <mattst88@gmail.com>
xf86-video-siliconmotion-1.7.9
2017-01-17 14:44:51 -08:00
Adam Jackson
e67f394964 Adapt Block/WakeupHandler signature for ABI 23
Signed-off-by: Adam Jackson <ajax@redhat.com>
2016-07-19 10:10:56 -04:00
Thomas Klausner
647e5a93d9 Use X11/Xarch.h for endian detection.
Reviewed-by: Connor Behan <connor.behan@gmail.com>
2015-09-30 23:44:05 +02:00
Connor Behan
a4e406c20a Check for drawables before compositing
This should prevent a crash when something like Cairo tries to composite
a solid picture.

Signed-off-by: Connor Behan <connor.behan@gmail.com>
2015-08-23 11:46:37 -04:00
Julien Cristau
70d3d3a384 Bump to 1.7.8
Signed-off-by: Julien Cristau <jcristau@debian.org>
xf86-video-siliconmotion-1.7.8
2015-05-09 16:56:51 +02:00
Julien Cristau
b22c590a54 Fix a couple const-ness warnings
smi_accel.c: In function 'SMI_GEReset':
smi_accel.c:51:1: warning: passing argument 4 of 'SMI_GEReset' discards 'const' qualifier from pointer target type
  WaitIdle();
 ^
smi_accel.c:38:1: note: expected 'char *' but argument is of type 'const char *'
 SMI_GEReset(ScrnInfoPtr pScrn, int from_timeout, int line, char *file)
 ^
[...]
smi_driver.c: In function 'SMI_DetectPanelSize':
smi_driver.c:1011:12: warning: assignment discards 'const' qualifier from pointer target type
     if ((s = xf86GetOptValString(pSmi->Options, OPTION_PANEL_SIZE)) != NULL) {
            ^

Signed-off-by: Julien Cristau <jcristau@debian.org>
2015-05-09 16:50:17 +02:00
Julien Cristau
ca1c4c19d6 Fix SwitchMode and AdjustFrame hooks
smi_driver.c: In function 'SMI_Probe':
smi_driver.c:360:24: warning: assignment from incompatible pointer type
   pScrn->SwitchMode    = SMI_SwitchMode;
                        ^
smi_driver.c:361:24: warning: assignment from incompatible pointer type
   pScrn->AdjustFrame   = SMI_AdjustFrame;
                        ^

Signed-off-by: Julien Cristau <jcristau@debian.org>
2015-05-09 16:49:55 +02:00
Julien Cristau
d06454e893 Fix BlockHandler declaration
smi_video.c: In function 'SMI_SetupVideo':
smi_video.c:940:24: warning: assignment from incompatible pointer type
     pSmi->BlockHandler = pScreen->BlockHandler;
                        ^

Signed-off-by: Julien Cristau <jcristau@debian.org>
2015-05-08 13:51:26 +02:00
Julien Cristau
6073828547 Fix shadow compiler warning
smi_video.c: In function 'SetAttrSAA7111':
smi_video.c:795:6: warning: declaration of 'i' shadows a parameter [-Wshadow]
  int i;
      ^
smi_video.c:723:39: warning: shadowed declaration is here [-Wshadow]
 SetAttrSAA7111(ScrnInfoPtr pScrn, int i, int value)
                                       ^

Signed-off-by: Julien Cristau <jcristau@debian.org>
2015-05-08 13:26:00 +02:00
Adam Jackson
c31d7f853d Remove dependency on xf86PciInfo.h
Signed-off-by: Adam Jackson <ajax@redhat.com>
2014-09-30 10:34:07 -04:00
Adam Jackson
08d459d2b5 Fix a typo
Signed-off-by: Adam Jackson <ajax@redhat.com>
2014-09-30 10:31:52 -04:00
Adam Jackson
b0b287209c Fix build against xserver 1.17
Signed-off-by: Adam Jackson <ajax@redhat.com>
2014-09-30 10:28:48 -04:00
Adam Jackson
9b56341532 Use own thunk function instead of vgaHW*Weak
I plan to remove the Weak functions from a future server.

Signed-off-by: Adam Jackson <ajax@redhat.com>
2014-05-21 14:01:02 -04:00
Adam Jackson
f19d7e463c Remove miInitializeBackingStore()
Signed-off-by: Adam Jackson <ajax@redhat.com>
2013-01-09 22:59:39 -05:00
Dave Airlie
2beb25bd41 xf86-video-siliconmotion: bump to version 1.7.7
Signed-off-by: Dave Airlie <airlied@redhat.com>
xf86-video-siliconmotion-1.7.7
2012-07-17 16:05:09 +10:00
Dave Airlie
4b4b8e9c04 smi: convert to new X server screen conversion apis.
Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-07-17 14:53:30 +10:00
Dave Airlie
1aad7b44e3 smi: port to compat-api for new server.
Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-07-17 02:01:07 +01:00
Dave Airlie
891ea02395 smi: fix build against XAA-less server 2012-07-17 01:52:45 +01:00
Alan Coopersmith
e4660be7c1 xf86-video-siliconmotion 1.7.6
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
xf86-video-siliconmotion-1.7.6
2012-03-23 19:49:14 -07:00
Matt Turner
63afc35a66 Add &component=Driver/siliconmotion to Bugzilla link
Signed-off-by: Matt Turner <mattst88@gmail.com>
2012-02-09 17:14:25 -05:00
Matt Turner
12695ed1ed Don't check for randrproto or renderproto
The driver supports neither randr or render.

Signed-off-by: Matt Turner <mattst88@gmail.com>
2012-02-09 16:21:59 -05:00