summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-06-07fix FTBS on i386/i686: int size mismatchHEADmasterEnrico Weigelt, metux IT consult
build breaks due integer size mismatch: > ../../src/dummy_driver.c: In function 'dummy_output_mode_set': > ../../src/dummy_driver.c:246:17: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] > 246 | int index = (int64_t)output->driver_private; > | ^ > ../../src/dummy_driver.c: In function 'dummy_output_detect': > ../../src/dummy_driver.c:258:17: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] > 258 | int index = (int64_t)output->driver_private; > | ^ Need to use uintptr_t instead of plain int. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-dummy/-/merge_requests/13>
2024-05-28drop compat with ancient xserverEnrico Weigelt, metux IT consult
We're relying on at least 1.18 now, so no compat with older ones needed anymore. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-dummy/-/merge_requests/12>
2024-05-13Raise minimum supported Xserver version to 1.18 (ABI_VIDEODRV_VERSION 20.0)Alan Coopersmith
Already effectively required by use of XNFcallocarray() introduced in xorg/xserver@b96dc999 - xserver-1.18.0, released in Nov. 2015. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-dummy/-/merge_requests/10>
2024-05-08use XNFcallocarray() instead of xnfcalloc macroEnrico Weigelt, metux IT consult
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-dummy/-/merge_requests/9>
2024-01-07Fix -Wunused-variable warningAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-07Handle 2 -Wmissing-prototypes warningsAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-07Add X.Org's standard C warning flags to AM_CFLAGSAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-07configure: Use LT_INIT from libtool 2 instead of deprecated AC_PROG_LIBTOOLAlan Coopersmith
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-01gitlab CI: ensure libtool is installed in build containerAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-05-07xf86-video-dummy 0.4.1xf86-video-dummy-0.4.1Alan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-03-17List argument types in dummyRec->CreateWindow() function declarationAlan Coopersmith
Will be needed for C23 builds, since C23 treats () as (void), not as an unspecified argument list. Fixes warning from Solaris Studio C compiler with -fd flag: "dummy.h", line 55: warning: old style function declaration Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-04-19gitlab CI: stop requiring Signed-off-by in commitsAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-04-19Avoid leaking pixel memory if DUMMYScreenInit failsAlan Coopersmith
Resolves issues reported by Oracle Parfait static analyzer: Error: Memory leak Memory leak [memory-leak] (CWE 401): Memory leak of pointer pixels allocated with malloc((pScrn->videoRam * 1024)) at line 803 of dummy_driver.c in function 'DUMMYScreenInit'. pixels allocated at line 790 with malloc((pScrn->videoRam * 1024)) Memory leak [memory-leak] (CWE 401): Memory leak of pointer pixels allocated with malloc((pScrn->videoRam * 1024)) at line 805 of dummy_driver.c in function 'DUMMYScreenInit'. pixels allocated at line 790 with malloc((pScrn->videoRam * 1024)) Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-04-05xf86-video-dummy 0.4.0xf86-video-dummy-0.4.0Matt Turner
Signed-off-by: Matt Turner <mattst88@gmail.com>
2022-01-22gitlab CI: add a basic build testAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-22Fix spelling/wording issuesAlan Coopersmith
Found by using: codespell --builtin clear,rare,usage,informal,code,names Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-22Build xz tarballs instead of bzip2Alan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2020-03-10Increase maximum number of video outputs to 16Marek Marczykowski-Górecki
Apparently 4 is too low. The number is totally arbitrary. Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
2020-03-10xf86-video-dummy: changeable physical output sizeMarek Marczykowski-Górecki
Add WIDTH_MM and HEIGHT_MM output properties to allow setting "physical" size of the output. Normally this data is retrieved from EDID, but for obvious reasons it can't be done in the VM. This patch allows to set this properties from user space. This is later reported as output size (the header line describing the output in `xrandr` output). Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
2020-03-10RandR support in dummy video driverMarek Marczykowski-Górecki
Properly initialize RandR extension, mostly with stubs. It creates four virtual outputs (lets hope that nobody will need more at once...). By default only the first one is in "connected" state, with preferred mode from xorg.conf. Other outputs get "connected" at first mode set (and left connected forever - you can always not use it). So without any xrandr calls it should work as before. Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
2018-11-25Update configure.ac bug URL for gitlab migrationAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-18Update README for gitlab migrationAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2017-08-14Support for 30 bit depth in dummy driverAntoine Martin
This patch makes it possible to start the server using the dummy driver with a 30 bit depth. The colormap size is changed from 256 to 1024 to prevent crashes. Reviewed-by: Adam Jackson <ajax@redhat.com>
2017-08-05DUMMYGetRec: Fix misleading indentationAaron Plattner
GCC's -Wmisleading-indentation complains about this dummy_driver.c: In function ‘DUMMYGetRec’: dummy_driver.c:181:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] if (pScrn->driverPrivate == NULL) ^~ dummy_driver.c:183:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ return TRUE; ^~~~~~ Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
2017-08-05fix a memory leak in probeXiaolei Yu
Signed-off-by: Xiaolei Yu <dreifachstein@gmail.com> Reviewed-by: Antoine Martin <antoine@nagafix.co.uk> Tested-by: Antoine Martin <antoine@nagafix.co.uk> Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
2017-08-05Get rid of dPtr->FBBaseAaron Plattner
The pointer to the screen's pixels is stored in the screen pixmap's devPrivate.ptr field. Just use that instead of storing it redundantly. Signed-off-by: Aaron Plattner <aplattner@nvidia.com> Reviewed-by: Bob Terek <xorg@esoterek.com> Tested-by: Antoine Martin <antoine@nagafix.co.uk>
2017-08-05Remove DGA supportAaron Plattner
DGA was so 2004. Signed-off-by: Aaron Plattner <aplattner@nvidia.com> Reviewed-by: Bob Terek <xorg@esoterek.com> Tested-by: Antoine Martin <antoine@nagafix.co.uk>
2017-08-05Delete dPtr->screenSaverAaron Plattner
This is assigned, but never used. Signed-off-by: Aaron Plattner <aplattner@nvidia.com> Reviewed-by: Bob Terek <xorg@esoterek.com> Tested-by: Antoine Martin <antoine@nagafix.co.uk>
2017-08-05Delete XV stuffAaron Plattner
As far as I can tell, this was never implemented or used. Signed-off-by: Aaron Plattner <aplattner@nvidia.com> Reviewed-by: Bob Terek <xorg@esoterek.com> Tested-by: Antoine Martin <antoine@nagafix.co.uk>
2017-01-26autogen: add default patch prefixMihail Konev
Signed-off-by: Mihail Konev <k.mvc@ya.ru>
2017-01-26autogen.sh: use quoted string variablesEmil Velikov
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 Hutterer
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-12-14xf86-video-dummy 0.3.8xf86-video-dummy-0.3.8Julien Cristau
Signed-off-by: Julien Cristau <jcristau@debian.org>
2016-12-14configure: require xorg-server 1.4.99.901Julien Cristau
dixChangeWindowProperty was introduced in that release. Signed-off-by: Julien Cristau <jcristau@debian.org>
2016-10-28Remove pointless empty functionsAaron Plattner
These functions might be useful in a real driver, but with no hardware, they're pointless. Get rid of them. v2: Rebase, get rid of pointless calls to DUMMYAdjustFrame, return TRUE from DUMMYSwitchMode. Signed-off-by: Aaron Plattner <aplattner@nvidia.com> Reviewed-by: Antoine Martin <antoine@nagafix.co.uk> Tested-by: Antoine Martin <antoine@nagafix.co.uk>
2016-09-21remove dead code in dummy driverAntoine Martin
Signed-off-by: Antoine Martin <antoine@nagafix.co.uk> Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com> Reviewed-by: Aaron Plattner <aplattner@nvidia.com> Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
2016-02-05Switch to using dixChangeWindowPropertyPeter Hutterer
eb36924ead40564325aa56d54a973dc8fb4eae83 removed ChangeWindowProperty from the server. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Jon Turney <jon.turney@dronecode.org.uk>
2015-09-17Honor DacSpeed setting in xorg.confAntoine Martin
Reviewed-by: Adam Jackson <ajax@redhat.com> Signed-off-by: Antoine Martin <antoine@nagafix.co.uk>
2014-06-04autogen.sh: Honor NOCONFIGURE=1Alan Coopersmith
See http://people.gnome.org/~walters/docs/build-api.txt Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-06-04configure: Drop AM_MAINTAINER_MODEAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-09-09Bump to 0.3.7xf86-video-dummy-0.3.7Julien Cristau
Signed-off-by: Julien Cristau <jcristau@debian.org>
2012-09-25Remove mibstore.hAdam Jackson
Signed-off-by: Adam Jackson <ajax@redhat.com>
2012-07-18dummy: bump to 0.3.6 for releasexf86-video-dummy-0.3.6Dave Airlie
Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-06-05dummy: convert to the new server APIs.Dave Airlie
Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-05-23dummy: convert to new scrn conversion APIs.Dave Airlie
Generated from util/modular/x-driver-screen-scrn-conv.sh Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-05-23dummy: add scrn conversion api compat header.Dave Airlie
Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-04-05Add XORG_LIBS to LIBADDYaakov Selkowitz
This affects only Cygwin, where drivers must be linked against the Xorg implib. On other systems, XORG_LIBS will be empty. Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
2012-04-05Only include Xv headers if server supports itYaakov Selkowitz
Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
2012-01-09Don't use XFreeXDGA to determine DGA supportJeremy Huddleston
If our server supports DGA and we want to build the dummy driver without it, XFreeXDGA will be defined by the server and will be picked up rather than our configuration option. This change forces us to honor our configuration hoice. Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2012-01-01dummy 0.3.5xf86-video-dummy-0.3.5Cyril Brulebois
Signed-off-by: Cyril Brulebois <kibi@debian.org>