summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
7 daysuse XNFcallocarray() instead of xnfcalloc macroHEADmasterEnrico Weigelt, metux IT consult1-3/+3
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 Coopersmith1-1/+0
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-07Handle 2 -Wmissing-prototypes warningsAlan Coopersmith1-2/+4
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-07Add X.Org's standard C warning flags to AM_CFLAGSAlan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-07configure: 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-01gitlab CI: ensure libtool is installed in build containerAlan Coopersmith1-3/+3
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-05-07xf86-video-dummy 0.4.1xf86-video-dummy-0.4.1Alan Coopersmith1-2/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-03-17List argument types in dummyRec->CreateWindow() function declarationAlan Coopersmith1-1/+1
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 Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-04-19Avoid leaking pixel memory if DUMMYScreenInit failsAlan Coopersmith1-4/+9
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 Turner1-1/+1
Signed-off-by: Matt Turner <mattst88@gmail.com>
2022-01-22gitlab CI: add a basic build testAlan Coopersmith1-0/+98
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-22Fix spelling/wording issuesAlan Coopersmith1-1/+1
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 Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2020-03-10Increase maximum number of video outputs to 16Marek Marczykowski-Górecki1-1/+1
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órecki1-2/+58
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órecki2-0/+273
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 Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-18Update README for gitlab migrationAlan Coopersmith3-20/+20
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2017-08-14Support for 30 bit depth in dummy driverAntoine Martin2-2/+3
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 Plattner1-1/+1
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 Yu1-0/+3
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 Plattner3-9/+5
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 Plattner5-203/+0
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 Plattner2-10/+0
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 Plattner3-19/+0
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 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-12-14xf86-video-dummy 0.3.8xf86-video-dummy-0.3.8Julien Cristau1-1/+1
Signed-off-by: Julien Cristau <jcristau@debian.org>
2016-12-14configure: require xorg-server 1.4.99.901Julien Cristau1-1/+1
dixChangeWindowProperty was introduced in that release. Signed-off-by: Julien Cristau <jcristau@debian.org>
2016-10-28Remove pointless empty functionsAaron Plattner1-43/+1
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 Martin1-19/+0
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 Hutterer1-2/+3
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 Martin1-2/+2
Reviewed-by: Adam Jackson <ajax@redhat.com> Signed-off-by: Antoine Martin <antoine@nagafix.co.uk>
2014-06-04autogen.sh: Honor NOCONFIGURE=1Alan Coopersmith1-1/+3
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 Coopersmith2-2/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-09-09Bump to 0.3.7xf86-video-dummy-0.3.7Julien Cristau1-1/+1
Signed-off-by: Julien Cristau <jcristau@debian.org>
2012-09-25Remove mibstore.hAdam Jackson1-4/+0
Signed-off-by: Adam Jackson <ajax@redhat.com>
2012-07-18dummy: bump to 0.3.6 for releasexf86-video-dummy-0.3.6Dave Airlie1-1/+1
Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-06-05dummy: convert to the new server APIs.Dave Airlie4-34/+93
Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-05-23dummy: convert to new scrn conversion APIs.Dave Airlie3-5/+5
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 Airlie3-0/+44
Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-04-05Add XORG_LIBS to LIBADDYaakov Selkowitz1-0/+1
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 Selkowitz2-0/+6
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 Huddleston2-3/+3
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 Brulebois1-1/+1
Signed-off-by: Cyril Brulebois <kibi@debian.org>
2011-09-14Add a configure option to disable dgaJeremy Huddleston3-2/+15
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com> Reviewed-by: Jamey Sharp <jamey@minilop.net> Signed-off-by: Jamey Sharp <jamey@minilop.net>
2011-09-14Use malloc/free instead of deprecated X versionsJeremy Huddleston1-2/+2
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com> Reviewed-by: Jamey Sharp <jamey@minilop.net> Signed-off-by: Jamey Sharp <jamey@minilop.net>
2011-09-14Dummy drivers don't need PCI.Jeremy Huddleston1-2/+0
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com> Reviewed-by: Jamey Sharp <jamey@minilop.net> Signed-off-by: Jamey Sharp <jamey@minilop.net>