212 Commits

Author SHA1 Message Date
Enrico Weigelt, metux IT consult
48bc2b56d1 .github: add NetBSD build
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-29 18:53:06 +01:00
Enrico Weigelt, metux IT consult
0f145514ce .github: add freebsd and dragonfly build
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-29 10:24:28 +01:00
Enrico Weigelt, metux IT consult
a4fe97b670 .github: use new common driver build actions
Using the new driver build actions in X11Libre/actions-build-driver repo,
instead of having lots of duplicated pipeline and script in all the
individual driver repos.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-27 14:55:01 +01:00
Enrico Weigelt, metux IT consult
2fa643937f configure.ac: increase minimum xserver version to 25.0.0
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-19 16:20:44 +01:00
Enrico Weigelt, metux IT consult
850ec6dc64 release 25.0.0
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
xlibre-xf86-video-vesa-25.0.0
2025-12-18 19:24:17 +01:00
Enrico Weigelt, metux IT consult
d1f2de3fd3 drop obsolete #ifdef XFree86LOADER
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-18 13:51:05 +01:00
Enrico Weigelt, metux IT consult
1901ed58c9 drop obsolete .gitlab-ci.yml
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-18 11:56:07 +01:00
Enrico Weigelt, metux IT consult
9f8d4a3d5e drop obsolete #ifdef HAVE_CONFIG_H
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-18 11:20:42 +01:00
Enrico Weigelt, metux IT consult
eb47792cb2 release 2.6.1
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
xlibre-xf86-video-vesa-2.6.1
2025-12-17 13:53:49 +01:00
Enrico Weigelt, metux IT consult
846504ec6e configure.ac: tiny formatting cleanup
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-17 10:45:15 +01:00
Enrico Weigelt, metux IT consult
53405992fa replace pointer by void*
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-16 20:25:32 +01:00
Enrico Weigelt, metux IT consult
0ddc18a067 formatting cleanups
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-16 20:18:11 +01:00
Enrico Weigelt, metux IT consult
7675647969 drop dead code
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-16 19:53:29 +01:00
Enrico Weigelt, metux IT consult
3d3756026f configure.ac: set -std=c99
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-16 19:27:13 +01:00
Enrico Weigelt, metux IT consult
efdd249895 drop obsolete compat-api.h
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-16 19:24:16 +01:00
Enrico Weigelt, metux IT consult
db6dd3ec96 configure.ac: drop DRIVER_NAME symbol
trivial enough to just write `vesa` in the very few places

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-16 19:02:51 +01:00
Enrico Weigelt, metux IT consult
ddc8c0f6ca vesa.c: fix const warning on free() call
> vesa.c: In function 'VESAValidMode':
> vesa.c:404:18: warning: passing argument 1 of 'free' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
>   404 |         free(mode->name);
>      |              ~~~~^~~~~~

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-16 18:59:01 +01:00
Enrico Weigelt, metux IT consult
6ba0e8e852 configure.ac: drop unnecessary libc function checks
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-16 18:58:42 +01:00
Enrico Weigelt, metux IT consult
487c4724a4 drop support for ancient pre-libpciaccess Xservers
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-16 18:47:11 +01:00
Enrico Weigelt, metux IT consult
7b2b0f3a15 drop support for ancient xextproto < 7.1
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-16 18:32:44 +01:00
Enrico Weigelt, metux IT consult
aa9630a65c README.md: fix URLs
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-16 12:19:12 +01:00
Alan Coopersmith
3824ba73ee Improve man page formatting
More closely follow common style as described on
https://man7.org/linux/man-pages/man7/man-pages.7.html
and fix warnings raised by `mandoc -T lint` and `groff -rCHECKSTYLE=10`

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-vesa/-/merge_requests/16>
2025-12-16 10:51:40 +01:00
Enrico Weigelt, metux IT consult
9ac5156b65 configure.ac: fix package name and issue tracker URL
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-15 19:29:23 +01:00
b-aaz
243d986da9 vesa.c: Do not check for attached drivers on DFBSD & FBSD
On both DragonFlyBSD and FreeBSD the vgapci driver is always attach to the device, so we should not dismiss devices based on attached drivers on these platforms.

Signed-off-by: b-aaz <b-aazbsd@proton.me>
xlibre-xf86-video-vesa-2.6.0.4
2025-10-07 10:37:16 +02:00
stefan11111
c25d5f8725 src: run alongside fbdev
The old code checked for whether or not files matching
/dev/fb* or /dev/dri/card* were present on a system.

This is wrong for multiple reasons.
Vesa works fine alongside a framebuffer driver.
Testing whether a device file exists or not is not
enough to detarmine that a driver is present, those
device files should also be able to be opened.

Signed-off-by: stefan11111 <stefan11111@shitposting.expert>
xlibre-xf86-video-vesa-2.6.0.3
2025-09-16 17:23:48 +02:00
b-aaz
16c222c026 configure: Automatically detect the default xorg-module-dir.
The module directory has changed to a per ABI folder in the xlibre-xserver.
Now the default value of `xorg-module-dir` will be detected from the `moduledir` variable in xorg-server.pc.

Signed-off-by: b-aaz <b-aazbsd.proton.me>
xlibre-xf86-video-vesa-2.6.0.2
2025-07-29 18:43:42 +02:00
Enrico Weigelt, metux IT consult
31935f03e4 .github: add CI pipeline
This pipeline builds the driver against the latest Xserver stable
release as well as current master.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-07-29 18:33:49 +02:00
callmetango
0206fa9070 .github: Add issue forms
Add the following forms for issue creation:

* Bug report
* Feature request
* Code change
* Documentation update
* Organizational task

* add issue type selection page on "New Issue" call
* mention Github Discussions and the mailing list where appropriate

Part-of: X11Libre/misc#156
Signed-off-by: callmetango <callmetango@users.noreply.github.com>
2025-07-07 16:46:55 +02:00
Bjarni Ingi Gislason
5b33e95acb vesa.4: some editorial fixes for the manual [Debian bug #1040619]
Originally from https://bugs.debian.org/1040619

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-vesa/-/merge_requests/15>
xlibre-xf86-video-vesa-2.6.0.1
2025-04-19 17:26:26 +00:00
Alan Coopersmith
d423105312 Remove unused macro WriteCrtc
Flagged by clang 19.1.7:
vesa.c:1448:9: warning: macro is not used [-Wunused-macros]
 1448 | #define WriteCrtc(index, value)                                 \
      |         ^

Fixes: ea57dcf ("Use VBE services for DPMS instead of banging VGA registers manually.")
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-vesa/-/merge_requests/14>
2025-04-13 10:48:27 -07:00
Enrico Weigelt, metux IT consult
a5cf155058 drop supporting 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-vesa/-/merge_requests/10>
2025-04-13 10:17:46 -07:00
Enrico Weigelt, metux IT consult
fbe363386e drop ancient ISA support
Xserver has dropped all ISA support over 15 years ago. Since our minimum
support version now is 1.18, no need to keep the disfunctional ISA support.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-vesa/-/merge_requests/10>
2025-04-13 10:17:38 -07:00
Enrico Weigelt, metux IT consult
204bc2a3ef 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>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-vesa/-/merge_requests/10>
2024-09-16 15:29:04 +02:00
Alan Coopersmith
ec03b47ee9 Fix 2 -Wcalloc-transposed-args warnings
Reported by gcc 14.1:

vesa.c: In function ‘VESAGetRec’:
vesa.c:285:46: warning: ‘calloc’ sizes specified with ‘sizeof’ in the
 earlier argument and not in the later argument [-Wcalloc-transposed-args]
  285 |         pScrn->driverPrivate = calloc(sizeof(VESARec), 1);
      |                                              ^~~~~~~
vesa.c:285:46: note: earlier argument should specify number of elements,
 later size of each element
vesa.c: In function ‘VESASetModeParameters’:
vesa.c:300:33: warning: ‘calloc’ sizes specified with ‘sizeof’ in the
 earlier argument and not in the later argument [-Wcalloc-transposed-args]
  300 |     data->block = calloc(sizeof(VbeCRTCInfoBlock), 1);
      |                                 ^~~~~~~~~~~~~~~~
vesa.c:300:33: note: earlier argument should specify number of elements,
 later size of each element

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-vesa/-/merge_requests/11>
2024-07-14 14:11:08 -07:00
Alan Coopersmith
881bc2b244 Quiet -Wredundant-decls from xorg/os.h fallbacks for new libc functions
The Xorg headers provide their own versions of strlcat, strlcpy, and
timingsafe_memcmp for platforms that don't have them in libc yet, but
rely on configure to set HAVE_* defines to determine if they should be
defined in the headers.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-16 15:48:50 -08:00
Alan Coopersmith
f1732ab663 Add X.Org's standard C warning flags to AM_CFLAGS
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-16 15:47:13 -08:00
Alan Coopersmith
3f56895dba configure: Use LT_INIT from libtool 2 instead of deprecated AC_PROG_LIBTOOL
AC_PROG_LIBTOOL was replaced by LT_INIT in libtool 2 in 2008,
so it's time to rely on it.

Clears autoconf warnings:

configure.ac:44: warning: The macro 'AC_PROG_LIBTOOL' is obsolete.
configure.ac:44: You should run autoupdate.
aclocal.m4:3515: AC_PROG_LIBTOOL is expanded from...
configure.ac:44: the top level

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-16 15:44:50 -08:00
Alan Coopersmith
2e46217e3a gitlab CI: ensure libtool is installed in build container
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-10-07 09:17:59 -07:00
Alan Coopersmith
f6f1013dec xf86-video-vesa 2.6.0
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
xf86-video-vesa-2.6.0
2022-12-09 12:24:33 -08:00
Jocelyn Falempe
f1895cc6df Refuse to run if framebuffer or dri devices are present
The simpledrm driver, introduced in kernel 5.14,
can replace efifb to provide the efi framebuffer.

This fixes a bug on Fedora 36 (first version to use simpledrm driver):
https://bugzilla.redhat.com/show_bug.cgi?id=2074789

v2: check for framebuffer or dri devices instead of efi framebuffer interface.

Reviewed-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Signed-off-by: Jocelyn Falempe <jfalempe@redhat.com>
2022-10-27 00:15:32 +02:00
Alan Coopersmith
e285658e60 VESAValidMode: remove duplicate call to VESAGetRec
Found by cppcheck:

src/vesa.c:356:11: style: Redundant initialization for 'pVesa'. The initialized value is overwritten before it is read. [redundantInitialization]
    pVesa = VESAGetRec(pScrn);
          ^
src/vesa.c:350:19: note: pVesa is initialized
    VESAPtr pVesa = VESAGetRec(pScrn);
                  ^
src/vesa.c:356:11: note: pVesa is overwritten
    pVesa = VESAGetRec(pScrn);
          ^

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-10-17 11:48:57 -07:00
Alan Coopersmith
2f2436b4fe VESADGASetMode: remove unused variable scrnIdx
vesa.c: In function ‘VESADGASetMode’:
vesa.c:1790:9: warning: unused variable ‘scrnIdx’ [-Wunused-variable]
     int scrnIdx = pScrn->pScreen->myNum;
         ^~~~~~~

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-10-17 11:36:55 -07:00
Alan Coopersmith
5dee3ce85a gitlab CI: stop requiring Signed-off-by in commits
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-10-17 11:35:16 -07:00
Alan Coopersmith
942499a751 gitlab CI: add a basic build test
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-30 08:57:14 -08:00
Alan Coopersmith
5e8eb2d8c9 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-30 08:53:56 -08:00
Alan Coopersmith
782c9800be Build xz tarballs instead of bzip2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-30 08:52:56 -08:00
Adam Jackson
68f2589c68 vesa 2.5.0 xf86-video-vesa-2.5.0 2020-09-10 18:01:44 -04:00
Adam Jackson
51a73f2fc2 Disable shadow by default on known-virtual GPUs
Device memory is the same domain as host memory, in this case, so the
shadow just introduces more memcpy.

Signed-off-by: Adam Jackson <ajax@redhat.com>
2019-07-10 14:53:51 +00:00
Benjamin Tissoires
53c7796e8d Refuse to run on UEFI machines running older kernels
Prior to kernel v3.12, the efi framebuffer driver was named "efifb".
This cause problem on RHEL 7 as the base kernel is 3.10.

"efi-framebuffer.0" was added by commit 2645e0aa for that reason
(don't run on UEFI machine).
The change from "efifb" to "efi-framebuffer" was done with commit
e6816a8 in the kernel

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
[ofourdan: updated commit message with commit references]
Reviewed-by: Olivier Fourdan <ofourdan@redhat.com>
2019-05-10 10:43:53 +02:00
Adam Jackson
634dae745c Try harder to avoid 24bpp
We're preferring depth 24 even if that means 24bpp. Newer servers don't
support 24bpp anymore, and even for old servers it's suboptimal. Change
the heuristic to only try 24bpp if the alternative is pseudocolor.

Fixes: xorg/driver/xf86-video-vesa#3
2019-03-06 12:45:11 -05:00