Commit Graph

107 Commits

Author SHA1 Message Date
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>
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>
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
Dave Airlie
fee6b520a6 dummy: bump to 0.3.6 for release
Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-07-18 19:39:32 +10:00
Dave Airlie
1491470ee0 dummy: convert to the new server APIs.
Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-06-05 11:14:37 +01:00
Dave Airlie
6ff612955a dummy: convert to new scrn conversion APIs.
Generated from util/modular/x-driver-screen-scrn-conv.sh

Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-05-23 11:37:01 +01:00
Dave Airlie
20fcd59d3f dummy: add scrn conversion api compat header.
Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-05-23 11:36:22 +01:00
Yaakov Selkowitz
a78d524cfb Add XORG_LIBS to LIBADD
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-05 21:52:39 -05:00
Yaakov Selkowitz
668223a665 Only include Xv headers if server supports it
Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
2012-04-05 21:52:38 -05:00
Jeremy Huddleston
02918fd534 Don't use XFreeXDGA to determine DGA support
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-09 01:00:40 -08:00
Cyril Brulebois
bccf37f052 dummy 0.3.5
Signed-off-by: Cyril Brulebois <kibi@debian.org>
2012-01-01 07:15:36 +01:00
Jeremy Huddleston
dd9be3b218 Add a configure option to disable dga
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-14 15:48:13 -05:00
Jeremy Huddleston
dd598ca433 Use malloc/free instead of deprecated X versions
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-14 15:48:11 -05:00
Jeremy Huddleston
d70dde4808 Dummy drivers don't need PCI.
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-14 15:47:50 -05:00
Adam Jackson
bdc5941113 Port away from xalloc/xfree
Signed-off-by: Adam Jackson <ajax@redhat.com>
2011-05-25 06:05:29 -04:00
Adam Jackson
7f57ed6be7 Fix DGA includes
Signed-off-by: Adam Jackson <ajax@redhat.com>
2011-05-25 06:04:39 -04:00
Antoine Martin
fb0888f90d Increase the maximum framebuffer size to 32767x32767
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Antoine Martin <antoine@devloop.org.uk>
Tested-by: Antoine Martin <antoine@devloop.org.uk>
2011-05-25 06:03:10 -04:00
Gaetan Nadon
f8dc281042 config: add comments for main statements 2010-07-21 20:12:43 -04:00
Gaetan Nadon
ca77f09bd6 config: replace deprecated use of AC_OUTPUT with AC_CONFIG_FILES
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-07-21 16:07:00 -04:00
Gaetan Nadon
945a161930 config: replace deprecated AM_CONFIG_HEADER with AC_CONFIG_HEADERS
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-07-21 14:05:22 -04:00
Gaetan Nadon
8fbbafb7ed config: complete AC_INIT m4 quoting
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-07-21 09:27:42 -04:00
Gaetan Nadon
93898c6d62 config: remove unrequired AC_HEADER_STDC
Autoconf says:
"This macro is obsolescent, as current systems have conforming
header files. New programs need not use this macro".

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-07-20 20:24:42 -04:00
Gaetan Nadon
c26603e9c0 config: remove AC_PROG_CC as it overrides AC_PROG_C_C99
XORG_STRICT_OPTION from XORG_DEFAULT_OPTIONS calls
AC_PROG_C_C99. This sets gcc with -std=gnu99.
If AC_PROG_CC macro is called afterwards, it resets CC to gcc.

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-07-20 19:41:30 -04:00
Gaetan Nadon
839b742066 config: update AC_PREREQ statement to 2.60
Unrelated to the previous patches, the new value simply reflects
the reality that the minimum level for autoconf to configure
all x.org modules is 2.60 dated June 2006.

ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.60.tar.gz

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-07-20 18:45:18 -04:00
Dave Airlie
51642de730 dummy 0.3.4 2010-07-05 12:05:40 +10:00
Jamey Sharp
77ae177fd7 Use new server API to find the root window.
Signed-off-by: Jamey Sharp <jamey@minilop.net>
2010-06-22 08:09:38 -07:00
Gaetan Nadon
2503a68673 COPYING: replace stub file with actual Copyright notice
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-06-12 15:39:03 -04:00
Gaetan Nadon
c4134a6cb6 config: move compiler flags from configure.ac to Makefile.am
CFLAGS is an automake defined variable that should not be set
by the module. It should not be AC_SUBST either, it already is.

Use AM_CFLAGS in Makefile.am. This will allow the user to override
the flags as they will be in the right order.

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-02-08 20:08:52 -05:00
Gaetan Nadon
3370539eea config: remove unrequired '-I$(top_srcdir)/src'
The current dir is already included by default in the makefile
top_builddir = ..
DEFAULT_INCLUDES = -I. -I$(top_builddir)

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-02-08 19:07:22 -05:00
Gaetan Nadon
ea7cc253b0 config: remove unused INCLUDES='-I$(top_srcdir)/src'
This statement is redundant and not used in the makefile

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-02-08 18:42:52 -05:00
Gaetan Nadon
bff6fc2f25 config: remove unused variable XORG_INCS
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-02-08 17:45:42 -05:00
Gaetan Nadon
17f6ec36df configure.ac: sdkdir usage duplicates the sdk include dir
The sdkdir variable provides a duplicate copy of the include/xorg
directory. The statement is removed as this was it's only used.
In the Makefile, there is now only one instance of the -I sdkdir
The sdkdir is provided in XORG_CFLAGS.

Acked-by: Dan Nicholson <dbn.lists@gmail.com>
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2009-12-29 19:31:57 -05:00
Michael Olbrich
86a7baa415 configure.ac: remove wrong include path. #24675
Don't use $(prefix)/include as include path. It can break things
when cross-compiling with DESTDIR and prefix=/usr

Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2009-12-10 14:54:00 -05:00
Adam Jackson
483db0376d dummy 0.3.3
Signed-off-by: Adam Jackson <ajax@redhat.com>
2009-12-01 10:51:30 -05:00