Commit Graph

437 Commits

Author SHA1 Message Date
Connor Behan
f33c0d07f3 Comment unused variable
A few other variables are unused but they are setting using register
reads so I am afraid to touch them.

Signed-off-by: Connor Behan <connor.behan@gmail.com>
2024-11-18 19:08:20 -03:00
Connor Behan
ca65baf6f0 Initialize MSR values
This is the result of a simple sed command.

Signed-off-by: Connor Behan <connor.behan@gmail.com>
2024-11-18 19:00:14 -03:00
Martin-Éric Racine
1a81b5e4e3 Run ../modular/x-indent-all.sh inside this driver's tree.
Signed-off-by: Martin-Éric Racine <martin-eric.racine@iki.fi>
2024-10-13 11:27:06 +03:00
Enrico Weigelt, metux IT consult
eb15e41211 use dixDestroyPixmap() instead of direct driver call
Direct calls to ScreenRec->DestroyPixmap() blocks cleaning up the wrapping
jungle, so use the proper dix function instead.

See: https://gitlab.freedesktop.org/xorg/xserver/-/issues/1754
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2024-10-11 22:22:11 +00:00
Enrico Weigelt, metux IT consult
8efe8313e4 fix FTBS on 64bit Linux
On 64bit the long int type is 64 bit, but the MSR operations still
are 32bit, thus we need to use uint32_t. Also need slighty modified
versions of the inline asm code, since on 64bit machines, the 32bit
(pseudo-)registers can't be used on push/pop.

This patch is mostly for CI purpose, since there isn't any known version
of this graphics device on a 64 bit machine.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2024-10-11 09:02:37 +00:00
Connor Behan
e006c8ca51 Avoid pitfalls from users who try to enable XAA
In addition to removing some more dead code, this warns the user that
OSMImageBuffers now does nothing. The similar option OSMColorExpBuffers
is still used by EXA so there is no warning for this.

Signed-off-by: Connor Behan <connor.behan@gmail.com>
2024-09-17 05:32:38 +00:00
Connor Behan
48db476dd2 Rename gx_accel.c to gx_exa.c
With XAA gone, we can rename this to match what is there for LX.

Signed-off-by: Connor Behan <connor.behan@gmail.com>
2024-09-17 05:32:38 +00:00
Connor Behan
9318797494 Add option to avoid building GX support
One of the checks for HAVE_GX appeared to be in the wrong place. Once it
is in the right place, a configure option can be used to not set HAVE_GX
and avoid compiling the associated files.

Signed-off-by: Connor Behan <connor.behan@gmail.com>
2024-09-17 05:32:38 +00:00
Connor Behan
72915687d3 Remove dead XAA code
When the minimum Xserver version was recently bumped to 1.18, the
ability to enable XAA was removed accordingly. But plenty of XAA hooks
were left in. Removing these will lighten the code and get rid of some
more compiler warnings.

Signed-off-by: Connor Behan <connor.behan@gmail.com>
2024-09-17 05:32:38 +00:00
Alan Coopersmith
069fb9cc1c README: update anongit URL to use gitlab instead
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-geode/-/merge_requests/11>
2024-09-07 12:58:40 -07:00
Connor Behan
7047b6da26 Remove deprecated function and includes
Long ago, xf86_reload_cursors() was turned into a noop. And we were not
using anything specific from xf86PciInfo.h.

Signed-off-by: Connor Behan <connor.behan@gmail.com>
2024-06-25 13:39:48 +03:00
Martin-Éric Racine
8d188104b7 Update NEWS to reflect the extensive GX component cleanup.
Signed-off-by: Martin-Éric Racine <martin-eric.racine@iki.fi>
2024-06-25 11:11:44 +03:00
Connor Behan
c1a96d05ef Fix exaOffscreenFree call 2024-06-24 21:06:16 +03:00
Martin-Éric Racine
fc81b029c9 [LX] Make xf86SetDepthBpp use the Xserver defaults.
Signed-off-by: Martin-Éric Racine <martin-eric.racine@iki.fi>
2024-06-24 19:44:50 +03:00
Connor Behan
224f565dec Suppress majority of compiler warnings
This applies some obvious changes to stop gcc from complaining about
dead code, shadow declarations, differing signedness and sections that
mix declarations with code.

The warning about discarding const qualifiers is more annoying because
we pass string literals to some functions which accept non-const
pointers. Currently, this takes the following approach. If the function
*needs* to accept non-const pointers, cast the string literal as char *.
Otherwise, change the function to only accept a const pointer. To
anticipate future use cases though, I could also leave function
definitions as they are and just always cast string literals.
Alternatively, if this is more trouble that it is worth, we could just
put up with the warnings.

Signed-off-by: Connor Behan <connor.behan@gmail.com>
2024-06-24 19:42:15 +03:00
Martin-Éric Racine
9fbd276f1d Remove all deprecated xf86PciInfo.h includes.
We have PCI_VENDOR_ID and PCI_CHIP defined in geode.h.

Signed-off-by: Martin-Éric Racine <martin-eric.racine@iki.fi>
2024-06-24 10:43:22 +03:00
Martin-Éric Racine
eb79135ab2 [LX] Bump the default pixel depth up to 24-bit.
Signed-off-by: Martin-Éric Racine <martin-eric.racine@iki.fi>
2024-06-23 13:02:54 +03:00
Martin-Éric Racine
d4de71cfd5 Update NEWS to reflect the tighter dependencies since this version. 2024-06-18 18:59:00 +03:00
Martin-Éric Racine
97d50de389 Fix incorrect date in updated README. 2024-06-18 18:45:16 +03:00
Martin-Éric Racine
44b5c24c54 Bump configure.ac and README to version 2.18.1 for pending release. 2024-06-18 18:42:29 +03:00
Enrico Weigelt, metux IT consult
e364d99f0d vid_rdc1: fix unused variable "value"
Fix warning on unused variable "value".

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2024-06-18 15:25:31 +00:00
Enrico Weigelt, metux IT consult
c74b1d6884 fix rendundant declarations
Fix a a lot warnings on duplicate forward declarations.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2024-06-18 15:14:21 +00:00
Enrico Weigelt, metux IT consult
e46b0b9a39 drop old compat macros
There's used to have separate versions for older Xserver versions, but no
anymore, so these aren't needed anymore.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2024-06-11 14:13:32 +02:00
Enrico Weigelt, metux IT consult
1bd62d4e15 drop obsolete XAA support
Since recent commits require xserver-1.18.0 or later to build against,
there's no reason leaving behind big chunks of code that can only build
against the XAA support removed in xserver-1.13.0 (released in 2012).

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2024-06-11 14:13:32 +02:00
Enrico Weigelt, metux IT consult
83b14d6e43 drop compat with ancient xservers
Relying on >= 1.18 now, so no need for compat with older ones anymore.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2024-06-11 14:13:32 +02:00
Enrico Weigelt, metux IT consult
dab65155d8 drop compat for old XINPUT ABI versions < 22
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2024-06-11 14:13:32 +02:00
Enrico Weigelt, metux IT consult
caa04ba605 drop compat with video api major version < 20
Since we're relying on xserver >= 1.18, we can assume video api
major version >= 20.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2024-06-11 14:13:32 +02:00
Enrico Weigelt, metux IT consult
42727dadba drop obsolete check for HAS_DIXREGISTERPRIVATEKEY and HAS_DEVPRIVATEKEYREC
Since we're relying on xserver >= 1.18, we know its present.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2024-06-11 14:13:32 +02:00
Enrico Weigelt, metux IT consult
d00350fd0d drop obsolete check for REGION_NULL
Since we're depending on at least 1.18, we can rely on it being present.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2024-06-11 14:13:32 +02:00
Enrico Weigelt, metux IT consult
bcfe151ba1 drop compat with ancient xserver versions
We're relying on at least 1.18 now.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2024-06-11 14:13:32 +02:00
Enrico Weigelt, metux IT consult
4fe4d8e49d bump minimal xorg version to 1.18
1.18 was released a decade ago, so it seems reasonable stop supporting
older ones.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2024-06-11 14:13:32 +02:00
Martin-Éric Racine
a82d6cfc1c Add brackets to AC_PREREQ. 2024-06-09 16:31:36 +03:00
Enrico Weigelt, metux IT consult
f4842d760c 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-geode/-/merge_requests/4>
2024-05-08 15:54:57 +02:00
Enrico Weigelt, metux IT consult
b17fbb56d5 use XNFalloc() instead of xnfalloc
xnfalloc is just an alias for XNFalloc() 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-geode/-/merge_requests/4>
2024-05-08 12:10:46 +02:00
Alan Coopersmith
dc1f918c15 xf86-video-geode 2.11.21
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
xf86-video-geode-2.11.21
2023-05-04 17:56:58 -07:00
Alan Coopersmith
a6c02a8667 Makefile.am: swap order of ACLOCAL_AMFLAGS
Causes autoreconf to fail with:
libtoolize:   error: AC_CONFIG_MACRO_DIRS([m4]) conflicts with ACLOCAL_AMFLAGS

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-05-04 17:56:43 -07:00
Alan Coopersmith
cad9e93a84 src/gfx/i2c_acc.c: Convert from ISO-8859-1 to UTF-8
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-08-03 16:01:56 -07:00
Alan Coopersmith
a8afaf6e7e gitlab CI: add a basic build test
Forces 32-bit build since it fails to build 64-bit

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-08-03 15:59:40 -07:00
Alan Coopersmith
27ea30c389 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-22 11:04:32 -08:00
Alan Coopersmith
2c415eb841 Build xz tarballs instead of bzip2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-22 10:47:51 -08:00
Martin-Éric Racine
ae82f4b274 Mention iomem=relaxed in the README FAQ for Linux 4.x+ requirements
Thanks to Ben Hutchings for pointing out that vesafb and legacy X
drivers can peacefully coexist if iomem=relaxed gets added to the
Linux kernel cmdline options.

Signed-off-by: Martin-Éric Racine <martin-eric.racine@iki.fi>
2021-05-17 21:50:23 +03:00
Martin-Éric Racine
0bb81df318 Updated the README's FAQ for Linux 4.x+ requirements 2020-12-15 20:17:25 +02:00
Christian Gmeiner
ba63bf6821 fix 'multiple definition of' linker error
Fix for FTBFS due to -fno-common on GCC 10.

Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
2020-12-03 20:22:42 +02:00
Martin-Éric Racine
c8c1e7ffbe Geode 2.11.20
This release restores compatibility with xserver-1.20 and newer.

VALIDATION PLATFORM
 * Debian (X server 1.20.4) on FIC ION603A (Geode LX800).

Signed-off-by: Martin-Éric Racine <martin-eric.racine@iki.fi>
xf86-video-geode-2.11.20
2019-09-20 12:46:17 +03:00
Alan Coopersmith
df37efae78 Update configure.ac bug URL for gitlab migration
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-25 13:57:53 -08:00
Alan Coopersmith
c428d07599 Update README for gitlab migration
Also update http: URL's to https:

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-18 12:42:43 -08:00
Adam Jackson
8382e6bb0c gx: Fix RANDR initialization for xserver 1.20
xf86DisableRandR() doesn't exist anymore, and we don't need it anyway,
the core code will notice that we set up RANDR ourselves.

Signed-off-by: Adam Jackson <ajax@redhat.com>
2018-03-05 10:28:15 -05:00
Adam Jackson
09aaa3d1fa Remove call to LoaderGetOS
On OSes that don't have a /dev/videox we'll just fail the open() and not
initialize the Xv adaptor.

Signed-off-by: Adam Jackson <ajax@redhat.com>
2017-01-24 09:57:57 -05:00
Martin-Éric Racine
ec3440ea60 Geode 2.11.19
This release restores compatibility with xserver-1.19 and newer.

VALIDATION PLATFORM
 * Debian (X server 1.19.0) on FIC ION603A (Geode LX800).

Signed-off-by: Martin-Éric Racine <martin-eric.racine@iki.fi>
xf86-video-geode-2.11.19
2016-12-10 15:23:23 +02:00
Adam Jackson
4d27afae18 Adapt Block/WakeupHandler signature for ABI 23
Signed-off-by: Adam Jackson <ajax@redhat.com>
2016-07-19 10:16:24 -04:00