summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2024-01-16Quiet -Wredundant-decls from xorg/os.h fallbacks for new libc functionsHEADmasterAlan Coopersmith1-1/+4
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-16Add X.Org's standard C warning flags to AM_CFLAGSAlan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-16configure: Use LT_INIT from libtool 2 instead of deprecated AC_PROG_LIBTOOLAlan Coopersmith1-2/+1
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>
2023-10-07gitlab CI: ensure libtool is installed in build containerAlan Coopersmith1-3/+3
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-12-09xf86-video-vesa 2.6.0xf86-video-vesa-2.6.0Alan Coopersmith1-2/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-10-27Refuse to run if framebuffer or dri devices are presentJocelyn Falempe1-5/+34
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-17VESAValidMode: remove duplicate call to VESAGetRecAlan Coopersmith1-2/+0
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-17VESADGASetMode: remove unused variable scrnIdxAlan Coopersmith1-1/+0
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-17gitlab CI: stop requiring Signed-off-by in commitsAlan Coopersmith1-2/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-30gitlab CI: add a basic build testAlan Coopersmith1-0/+98
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-30Fix spelling/wording issuesAlan Coopersmith2-2/+2
Found by using: codespell --builtin clear,rare,usage,informal,code,names Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-30Build xz tarballs instead of bzip2Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2020-09-10vesa 2.5.0xf86-video-vesa-2.5.0Adam Jackson1-1/+1
2019-07-10Disable shadow by default on known-virtual GPUsAdam Jackson1-3/+32
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-05-10Refuse to run on UEFI machines running older kernelsBenjamin Tissoires1-1/+2
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-03-06Try harder to avoid 24bppAdam Jackson1-1/+3
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
2018-12-07Update configure.ac bug URL for gitlab migrationAlan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-18Update README for gitlab migrationAlan Coopersmith3-20/+19
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-08-29Refuse to run on UEFI machinesAdam Jackson1-2/+9
No possible good can come of this. v2: Check for .../efi-framebuffer.0 ("is there an EFI framebuffer") instead of /sys/firmware/efi ("is this an EFI machine"). Suggested by Peter Jones. Reviewed-by: Peter Jones <pjones@redhat.com> Signed-off-by: Adam Jackson <ajax@redhat.com>
2018-08-28Newline-terminate a few error messagesAdam Jackson1-2/+2
Signed-off-by: Adam Jackson <ajax@redhat.com>
2018-02-15vesa 2.4.0xf86-video-vesa-2.4.0Adam Jackson1-1/+1
Signed-off-by: Adam Jackson <ajax@redhat.com>
2018-02-15Honor Option "NoDDC" correctlyIan Lepore1-1/+3
Move xf86CollectOptions before the DDC code so it can actually hear us when we ask to disable DDC. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=46541 Signed-off-by: Adam Jackson <ajax@redhat.com>
2018-02-15Use VBEFreeVBEInfo not freeAdam Jackson1-1/+2
A VbeInfoBlock has substructure, just freeing the object will leak. Unfortunately VBEFreeVBEInfo does not check for NULL first so we have to. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=25029 Signed-off-by: Adam Jackson <ajax@redhat.com>
2018-02-15Fall back to VGA if the palette API isn't supportedAdam Jackson1-0/+21
I ported vesa to use the VBE service back in: commit 55f585a15f42ffe028ff37ea1f63543795dbf56e Author: Adam Jackson <ajax@redhat.com> Date: Fri Sep 18 17:02:16 2009 -0400 Use VBE palette load, not VGA banging. I'm reasonably sure that worked on all the hardware I had handy at the time. But it doesn't work in seabios, which means 8bpp is broken under qemu. We query this API early in initialization, and if it fails ->savedPal will be NULL, so use that as the hint to fall back to VGA banging. Signed-off-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Dave Airlie <airlied@redhat.com>
2018-02-15Don't build old probe method on sufficiently new serversAdam Jackson1-0/+6
If we have pciaccess and not ISA support VESAProbe is effectively return FALSE, and the server will issue a potentially confusing fallback message if VESAPciProbe failed and ->Probe is non-NULL. Signed-off-by: Adam Jackson <ajax@redhat.com>
2017-01-26autogen: add default patch prefixMihail Konev1-0/+3
Signed-off-by: Mihail Konev <k.mvc@ya.ru>
2017-01-26autogen.sh: use quoted string variablesEmil Velikov1-4/+4
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-26autogen.sh: use exec instead of waiting for configure to finishPeter Hutterer1-1/+1
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>
2016-05-02Use default refresh by defaultStefan Dirsch1-3/+5
This seems to be a feature that isn't tested well. Too many VBE 3.0 BIOSes are incorrectly implemented. Reviewed-by: Adam Jackson <ajax@redhat.com> Signed-off-by: Stefan Dirsch <sndirsch@suse.de>
2015-07-27When debugging, print the VGAbase as well.Matthew Green1-2/+3
Just in case it ends up zero and causes a segmentation fault. Signed-off-by: Thomas Klausner <wiz@NetBSD.org>
2015-06-16vesa 2.3.4xf86-video-vesa-2.3.4Adam Jackson1-1/+1
Signed-off-by: Adam Jackson <ajax@redhat.com>
2015-06-16Don't include deprecated xf86PciInfo.hAdam Jackson1-3/+0
Signed-off-by: Adam Jackson <ajax@redhat.com>
2015-06-11configure: Drop PanelID testAdam Jackson2-10/+0
vbe grew PanelID support in xserver 1.4; since we now require 1.6 we can remove the test. Which is good, because it appears to have been broken by the scrnIndex->pScrn conversion, as vbe.h doesn't include xf86str.h so ScrnInfoPtr was never defined and the test failed. Signed-off-by: Adam Jackson <ajax@redhat.com>
2014-01-30Raise required version of xorg-server to >= 1.6Alan Coopersmith1-1/+1
Needed for Xorg to define/export xf86GTFMode(), introduced in xorg-server release 1.6.0 / commit ca5625b911e65fdfd4. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-09-09Bump to 2.3.3xf86-video-vesa-2.3.3Julien Cristau1-1/+1
Signed-off-by: Julien Cristau <jcristau@debian.org>
2013-08-14Make bool option parsing clearer and more consistentEgbert Eich1-6/+5
When there's no need to know whether the user has set the value of a configurable option (for logging for instance) the return of xf86ReturnOptValBool() can be assigned directly. Signed-off-by: Egbert Eich <eich@freedesktop.org> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-01-16autogen.sh: Implement GNOME Build APIColin Walters1-1/+3
http://people.gnome.org/~walters/docs/build-api.txt Signed-off-by: Adam Jackson <ajax@redhat.com>
2013-01-16configure: Drop AM_MAINTAINER_MODEAdam Jackson1-1/+0
Signed-off-by: Adam Jackson <ajax@redhat.com>
2012-09-25Remove mibstore.hAdam Jackson1-4/+0
Signed-off-by: Adam Jackson <ajax@redhat.com>
2012-08-23Fix check function in VESASaveRestoreAlexandr Shadchin1-1/+1
Signed-off-by: Alexandr Shadchin <Alexandr.Shadchin@gmail.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-08-23Remove unneeded AM_CONDITIONALAlexandr Shadchin1-4/+5
Signed-off-by: Alexandr Shadchin <Alexandr.Shadchin@gmail.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-07-18vesa: bump to 2.3.2xf86-video-vesa-2.3.2Dave Airlie1-1/+1
Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-06-01vesa: add api 13 compat layer.Dave Airlie2-39/+98
Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-05-23vesa: fix make distcheck.Dave Airlie1-0/+1
Add missing compat-api header Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-05-23vesa: convert to new screen conversion APIs.Dave Airlie1-5/+5
Generated by util/modular/x-driver-screen-scrn-conv.sh Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-05-23vesa: add compat-api.hDave Airlie2-1/+42
Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-03-22vesa 2.3.1xf86-video-vesa-2.3.1Adam Jackson1-1/+1
Signed-off-by: Adam Jackson <ajax@redhat.com>
2011-10-19configure.ac: Require a newer version of libpciaccessJeremy Huddleston1-1/+1
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-10-19Code style cleanup to make the map and unmap blocks more consistentJeremy Huddleston1-19/+20
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-10-19Build fix for ABI Version 12Jeremy Huddleston1-7/+11
ABI Version 12 removes support for multiple PCI domains. If you need to use this driver on a system with more than one PCI domain, you should either port this driver to using libpciaccess directly or stick with an older server. Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>