Commit Graph

138 Commits

Author SHA1 Message Date
Alan Coopersmith
3d31e212a0 Strip trailing whitespace from source files
Performed with: `git ls-files | xargs perl -i -p -e 's{[ \t]+$}{}'`

`git diff -w` & `git diff -b` show no diffs from this change

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-dummy/-/merge_requests/15>
2025-12-15 15:40:44 +01:00
Enrico Weigelt, metux IT consult
2ab320ec9f formatting cleanups
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
xlibre-xf86-video-dummy-0.4.1.3 xlibre-xf86-video-dummy-0.4.1.4
2025-11-20 13:45:47 +01:00
Enrico Weigelt, metux IT consult
8aaed75272 drop dead code
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-11-20 13:41:22 +01:00
Enrico Weigelt, metux IT consult
171fe172b1 dummy.h: drop unnecessary xv includes
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-11-20 13:25:11 +01:00
Enrico Weigelt, metux IT consult
d5dbe00b84 include <window.h> instead of <property.h>
<property.h> is deprecated any going to be removed - the only thing
we need from it is PropertyPtr typedef, which can also be reached
via <window.h>

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-11-20 13:03:44 +01:00
Enrico Weigelt, metux IT consult
4b8b9a5cdc .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>
xlibre-xf86-video-dummy-0.4.1.2
2025-07-24 20:35:03 +02:00
callmetango
dd676a9630 .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 17:06:50 +02:00
b-aaz
1557374b26 configure: Automaticaly detect the default xorg-module-dir.
The module directory has changed to a per ABI folder.
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>
2025-07-04 13:29:59 +02:00
Enrico Weigelt, metux IT consult
3a407a34c4 fix FTBS on i386/i686: int size mismatch
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>
xlibre-xf86-video-dummy-0.4.1.1
2024-06-07 14:23:37 +02:00
Enrico Weigelt, metux IT consult
8a0623033c drop compat with ancient xserver
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-28 10:53:41 +02:00
Alan Coopersmith
7814a1d2a6 Raise minimum supported Xserver version to 1.18 (ABI_VIDEODRV_VERSION 20.0)
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-13 15:33:53 -07:00
Enrico Weigelt, metux IT consult
dc0167e2dd 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-dummy/-/merge_requests/9>
2024-05-08 15:43:09 +02:00
Alan Coopersmith
130321a4fe Fix -Wunused-variable warning
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-07 09:13:25 -08:00
Alan Coopersmith
56a765d5df Handle 2 -Wmissing-prototypes warnings
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-07 09:13:25 -08:00
Alan Coopersmith
ef910d80d1 Add X.Org's standard C warning flags to AM_CFLAGS
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-07 09:13:19 -08:00
Alan Coopersmith
f287f948f1 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-07 09:05:58 -08:00
Alan Coopersmith
4847f56ebf gitlab CI: ensure libtool is installed in build container
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-10-01 13:02:33 -07:00
Alan Coopersmith
1fffb785d6 xf86-video-dummy 0.4.1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
xf86-video-dummy-0.4.1
2023-05-07 13:22:40 -07:00
Alan Coopersmith
234cb0271b List argument types in dummyRec->CreateWindow() function declaration
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>
2023-03-17 15:33:38 -07:00
Alan Coopersmith
22c15ee0e6 gitlab CI: stop requiring Signed-off-by in commits
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-04-19 20:13:52 -07:00
Alan Coopersmith
ffcae9381f Avoid leaking pixel memory if DUMMYScreenInit fails
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-19 20:12:50 -07:00
Matt Turner
68e02860d9 xf86-video-dummy 0.4.0
Signed-off-by: Matt Turner <mattst88@gmail.com>
xf86-video-dummy-0.4.0
2022-04-05 10:16:22 -07:00
Alan Coopersmith
f8ec326276 gitlab CI: add a basic build test
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-22 10:19:23 -08:00
Alan Coopersmith
499f52324f 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 10:18:32 -08:00
Alan Coopersmith
2428bbfab7 Build xz tarballs instead of bzip2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-22 10:17:54 -08:00
Marek Marczykowski-Górecki
9e8dce17c0 Increase maximum number of video outputs to 16
Apparently 4 is too low. The number is totally arbitrary.

Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
2020-03-10 17:33:43 +00:00
Marek Marczykowski-Górecki
a87cfeca7d xf86-video-dummy: changeable physical output size
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-10 17:33:43 +00:00
Marek Marczykowski-Górecki
327a25c4c3 RandR support in dummy video driver
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>
2020-03-10 17:33:43 +00:00
Alan Coopersmith
850c05161d Update configure.ac bug URL for gitlab migration
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-25 13:56:38 -08:00
Alan Coopersmith
ea2ad21c7a Update README for gitlab migration
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-18 12:27:58 -08:00
Antoine Martin
bc8546e2bd Support for 30 bit depth in dummy driver
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-14 12:10:32 -04:00
Aaron Plattner
5e90221dc6 DUMMYGetRec: Fix misleading indentation
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-05 17:12:41 -07:00
Xiaolei Yu
7957ad83b5 fix a memory leak in probe
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-05 17:02:03 -07:00
Aaron Plattner
33e6818566 Get rid of dPtr->FBBase
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-05 16:46:27 -07:00
Aaron Plattner
87249af5fa Remove DGA support
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-05 16:46:24 -07:00
Aaron Plattner
7c3b090e80 Delete dPtr->screenSaver
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-05 16:46:21 -07:00
Aaron Plattner
12e3e20301 Delete XV stuff
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-08-05 16:46:14 -07:00
Mihail Konev
af0f808922 autogen: add default patch prefix
Signed-off-by: Mihail Konev <k.mvc@ya.ru>
2017-01-26 14:00:22 +10:00
Emil Velikov
50ba5531dc autogen.sh: use quoted string variables
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-26 11:13:25 +10:00
Peter Hutterer
049573b57a autogen.sh: use exec instead of waiting for configure to finish
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>
2017-01-26 11:13:25 +10:00
Julien Cristau
4a6df6b4ee xf86-video-dummy 0.3.8
Signed-off-by: Julien Cristau <jcristau@debian.org>
xf86-video-dummy-0.3.8
2016-12-14 22:00:03 +01:00
Julien Cristau
52a6346c63 configure: require xorg-server 1.4.99.901
dixChangeWindowProperty was introduced in that release.

Signed-off-by: Julien Cristau <jcristau@debian.org>
2016-12-14 22:00:03 +01:00
Aaron Plattner
e434975017 Remove pointless empty functions
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-10-28 15:14:46 -07:00
Antoine Martin
367c778240 remove dead code in dummy driver
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-09-21 13:20:14 -07:00
Peter Hutterer
8706f60ab4 Switch to using dixChangeWindowProperty
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>
2016-02-05 07:09:51 +10:00
Antoine Martin
29433844c8 Honor DacSpeed setting in xorg.conf
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Antoine Martin <antoine@nagafix.co.uk>
2015-09-17 10:55:25 -04:00
Alan Coopersmith
0e339b256a autogen.sh: Honor NOCONFIGURE=1
See http://people.gnome.org/~walters/docs/build-api.txt

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-06-04 17:44:00 -07:00
Alan Coopersmith
85402253d0 configure: Drop AM_MAINTAINER_MODE
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-06-04 17:44:00 -07:00
Julien Cristau
4160421c64 Bump to 0.3.7
Signed-off-by: Julien Cristau <jcristau@debian.org>
xf86-video-dummy-0.3.7
2013-09-09 19:45:36 +02:00
Adam Jackson
44f04fd304 Remove mibstore.h
Signed-off-by: Adam Jackson <ajax@redhat.com>
2012-09-25 08:54:36 -04:00