Commit Graph

56 Commits

Author SHA1 Message Date
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
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
Adam Jackson 44f04fd304 Remove mibstore.h
Signed-off-by: Adam Jackson <ajax@redhat.com>
2012-09-25 08:54:36 -04: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
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
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 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 50b546f499 .gitignore: use common defaults with custom section # 24239
Using common defaults will reduce errors and maintenance.
Only the very small or inexistent custom section need periodic maintenance
when the structure of the component changes. Do not edit defaults.
2009-11-19 11:28:42 -05:00
Adam Jackson 4d4e41812e Canonically re-wrap too.
Signed-off-by: Adam Jackson <ajax@redhat.com>
2009-11-18 09:37:49 -05:00
Adam Jackson b5983dbbd5 Compile fix.
Signed-off-by: Adam Jackson <ajax@redhat.com>
2009-11-18 09:36:34 -05:00
Adam Jackson e39d9a2655 Add support for HW_SKIP_CONSOLE
Acked-by: Aaron Plattner <aplattner@nvidia.com>
Signed-off-by: Adam Jackson <ajax@redhat.com>
2009-11-17 17:15:02 -05:00
Adam Jackson a8366277a7 Properly un/rewrap CreateWindow
Acked-by: Aaron Plattner <aplattner@nvidia.com>
Signed-off-by: Adam Jackson <ajax@redhat.com>
2009-11-17 17:14:42 -05:00
Adam Jackson 8fe24e48ac Remove useless loader symbol lists. 2009-05-28 14:54:17 -04:00
Adam Jackson 33e86171bd Uninclude xf86Version.h 2008-08-15 14:05:04 -04:00
Adam Jackson ba7ab1d468 Death to RCS tags. 2008-03-19 17:26:51 -04:00
James Cloos 1874204e0c Rename .cvsignore to .gitignore 2007-08-23 19:25:48 -04:00
Brice Goglin 345de2bd04 Define DUMMY_*_VERSION* using PACKAGE_VERSION_* 2007-08-07 10:50:06 +02:00
Adam Jackson 22e38bed8c VERSION -> DUMMY_VERSION 2006-04-07 18:59:48 +00:00
Adam Jackson 7432eaf48b Unlibcwrap. Bump server version requirement. Bump to 1.1.0. 2006-04-07 18:50:19 +00:00
Eric Anholt e6887d858e Add .cvsignores for drivers. 2005-11-21 10:49:12 +00:00
Søren Sandmann Pedersen c5f63f703d Add Makefile.am here. Also, for the record, CVS needs a bullet through its
head
2005-07-13 21:52:24 +00:00
Adam Jackson ec9e857716 Prep for modular builds by adding guarded #include "config.h" everywhere. 2005-07-11 02:29:47 +00:00
Adam Jackson 7b856f1c89 Bug #3626: _X_EXPORT tags for video and input drivers. 2005-06-25 21:16:54 +00:00
Daniel Stone a467602c6c Fix includes right throughout the Xserver tree:
change "foo.h" to <X11/foo.h> for core headers, e.g. X.h, Xpoll.h;
change "foo.h", "extensions/foo.h" and "X11/foo.h" to
    <X11/extensions/foo.h> for extension headers, e.g. Xv.h;
change "foo.[ch]" to <X11/Xtrans/foo.[ch]> for Xtrans files.
2005-04-20 12:25:23 +00:00
Adam Jackson 5340744915 Bug #2605: Make the cyrix, dummy, glint, neomagic, tga, and trident drivers
build when BuildXF86DGA NO.
(also fix some datestamps in the changelog)
2005-02-25 16:38:34 +00:00
Egbert Eich 73816949f2 Modifying X.Org Xserver DDX to allow to run X with ordinary user
permissions when no access to HW registers is required. For API changes
    which mostly involve the modifications to make the RRFunc (introduced
    with 6.8) more flexible please check Bugzilla #2407. NOTE: This patch
    applies changes to OS specific files for other OSes which I cannot
    test.
2005-01-28 16:12:59 +00:00
Markus Kuhn 720c9b05f4 Encoding of numerous files changed to UTF-8 2004-12-04 00:43:05 +00:00
Stuart Kreitman b227226476 Bugzilla #1644: Attach an atom "VFB" to root window of dummy driver.
Committing in Head.
Modified Files: dummy.h dummy_driver.c
2004-10-15 21:09:00 +00:00
Eric Anholt a571d5efb5 DRI XFree86-4_3_99_12-merge import 2004-06-16 09:23:03 +00:00
Egbert Eich 289ef4abc5 Fixing setting of physical framebuffer base for several drivers. C&T
driver: Fixed setting of minimal clocks for HiQV chipsets. Neomagic
    driver: improved support for lowres double scan modes.
2004-05-26 16:24:08 +00:00
Egbert Eich 5d8038b297 Merging XORG-CURRENT into trunk 2004-04-23 19:30:15 +00:00