Commit Graph

133 Commits

Author SHA1 Message Date
Kevin Brace
95c16ca9f1 Tab to spaces conversion for lg_driver.c
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2019-04-17 15:56:31 -07:00
Kevin Brace
13f8f978e8 Eliminate pointer arithmetic compilation warnings
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2019-04-11 17:47:40 -07:00
Kevin Brace
5d8d7bcbb1 Tab to spaces conversion for cir.h
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2019-04-11 17:36:09 -07:00
Kevin Brace
ee3504d959 Fix for a compilation error when compiling XAA related files
When commit 27f85fc523 (Don't build
split alpine and laguna support) merged Alpine and Laguna support,
it missed a backslash ('\') to denote the next line for XAA related
files.

Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2019-02-20 09:38:50 -08:00
Kevin Brace
a4a45b7a29 Suppress unused label compilation warning
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2018-12-25 08:37:45 -06:00
Kevin Brace
b32b125e91 Use const char for xf86GetOptValString return type
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2018-12-25 08:34:30 -06:00
Kevin Brace
1069d52aa4 Eliminate unused variable compilation warning
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2018-12-25 08:30:08 -06:00
Alan Coopersmith
d1139bd2fe Update configure.ac bug URL for gitlab migration
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-25 13:08:00 -08:00
Alan Coopersmith
4f0d349f54 Update README for gitlab migration
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-18 12:24:32 -08:00
Mihail Konev
b47b3632fb autogen: add default patch prefix
Signed-off-by: Mihail Konev <k.mvc@ya.ru>
2017-01-26 14:00:22 +10:00
Emil Velikov
71580d0188 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
b91628997d 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
Adam Jackson
c6f5096252 alpine: Default to 16bpp
24bpp support is going away, so since we can't do 32bpp and these cards
have basically no VRAM to begin with, drop to 16bpp.

Signed-off-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2016-12-08 13:36:18 -05:00
Adam Jackson
27f85fc523 Don't build split alpine and laguna support
Before:

   text	   data	    bss	    dec	    hex	filename
  25772	   2040	     16	  27828	   6cb4	src/.libs/cirrus_alpine.so
  11429	   1552	    112	  13093	   3325	src/.libs/cirrus_drv.so
  21968	   2016	     16	  24000	   5dc0	src/.libs/cirrus_laguna.so
  59169	   5608	    114	  64921	   fd99	(TOTALS)

After:

   text	   data	    bss	    dec	    hex	filename
  47831	   3840	    112	  51783	   ca47	src/.libs/cirrus_drv.so

So, in the worst case, you're using roughly two more pages for (clean,
evictable) text, but two fewer (dirty) pages for data and bss. Fixing
this also allows the X server to clean up module loading a bit by
enforcing the _drv.so suffix, and since this is the only driver pulling
such shenanigans...

Reviewed-by: Julien Cristau <jcristau@debian.org>
Signed-off-by: Adam Jackson <ajax@redhat.com>
2016-04-27 17:09:15 -04:00
Adam Jackson
adaf1fe744 Remove (almost) no-op setup functions
These became practical no-ops when I removed reference to the loader
symbol lists. gcc will still emit code (and bss) for them though. No
functional change, just doing it to prove that nothing special happens
at submodule load.

Reviewed-by: Julien Cristau <jcristau@debian.org>
Signed-off-by: Adam Jackson <ajax@redhat.com>
2016-04-27 17:09:11 -04:00
Frederic Crozat
82db44fe8a Use 16bpp when running in virt and on XenSource gfx
Due to graphics corruption default to 16bpp in virt instead of 24 (Fedora).
Do the same on XenSource gfx, which suffers from the same issue.

Reviewed-by: Adam Jackson <ajax@redhat.com>
2016-04-27 11:59:04 -04:00
Stefan Dirsch
23da607336 Disable "acceleration" under qemu
Disable "acceleration" under qemu, since taking the hypercall trap
is really quite expensive and you're better off doing noaccel. Patch
is based on the one by "Adam Jackson" <ajax@redhat.com>

http://pkgs.fedoraproject.org/cgit/rpms/xorg-x11-drv-cirrus.git/tree/cirrus-1.2.0-qemu.patch?id=daccd1c8174623500eddfa297d8ea76a86d3c5d9

Reviewed-by: Adam Jackson <ajax@redhat.com>
2016-04-27 11:52:40 -04:00
Julien Cristau
3a2e2d9ef8 cirrus 1.5.3
Signed-off-by: Julien Cristau <jcristau@debian.org>
xf86-video-cirrus-1.5.3
2015-05-06 22:46:51 +02:00
Dave Airlie
df389885ad cirrus: don't use pciTag
Signed-off-by: Dave Airlie <airlied@redhat.com>
2014-09-20 18:51:17 +10:00
Alan Coopersmith
f0d278b48a Skip building xaa files when XAA is not supported
No point building & linking empty *.o files into the drivers.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
2013-11-22 22:00:33 -08:00
Colin Walters
6504929481 autogen.sh: Implement GNOME Build API
http://people.gnome.org/~walters/docs/build-api.txt

Signed-off-by: Adam Jackson <ajax@redhat.com>
2013-01-16 13:18:27 -05:00
Adam Jackson
0313bab7f1 configure: Drop AM_MAINTAINER_MODE
Signed-off-by: Adam Jackson <ajax@redhat.com>
2013-01-16 13:18:23 -05:00
Maarten Lankhorst
e2bf5b2556 cirrus: release 1.5.2 xf86-video-cirrus-1.5.2 2013-01-08 11:04:38 +01:00
Maarten Lankhorst
bade70ce71 cirrus: fix out of bounds access to shadowfb
Perform the same bounds checking other drivers do. Thanks to Dave Gilbert for feedback on this patch.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
2013-01-08 11:01:44 +01:00
Adam Jackson
5fcb3b0187 Remove mibstore.h
Signed-off-by: Adam Jackson <ajax@redhat.com>
2012-09-25 08:54:36 -04:00
Dave Airlie
aa90165761 cirrus: fix build against old server
Reported-by: jobermayer on irc
Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-08-21 21:01:43 +10:00
Dave Airlie
bc04e9ed65 cirrus: fix falling back after kernel check
if we find a kernel driver the code leave the pci slot claimed which
stops us falling back. unclaim the pci slot.

Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-08-20 13:49:19 +10:00
Dave Airlie
129076c2a9 xf86-video-cirrus: bump to version 1.5.1
Signed-off-by: Dave Airlie <airlied@redhat.com>
xf86-video-cirrus-1.5.1
2012-07-17 16:05:09 +10:00
Dave Airlie
e443ede159 cirrus: handle server with no XAA
this fixes cirrus to work with a server with no XAA module.

Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-07-13 14:47:40 +10:00
Dave Airlie
46a9e962c6 cirrus: bump to 1.5.0 for release.
Signed-off-by: Dave Airlie <airlied@redhat.com>
xf86-video-cirrus-1.5.0
2012-07-02 11:57:59 +01:00
Johannes Obermayr
7ae890b29b use int scrnIndex instead of int i in macro SCREEN_INIT_ARGS_DECL.
Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-06-09 11:29:02 +01:00
Dave Airlie
bab8041291 cirrus: drop xf86PciInfo.
This drops usage of deprecated header file.

Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-06-05 19:35:39 +01:00
Dave Airlie
9a5e19597b cirrus: convert to compat server API.
Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-06-05 19:26:15 +01:00
Dave Airlie
2e35bc316d cirrus: don't bind if there is a PCI kernel driver loaded.
this should ensure we end up using -modesetting under kms.

Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-05-17 10:23:34 +01:00
Alan Coopersmith
52ae4d254f xf86-video-cirrus 1.4.0
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
xf86-video-cirrus-1.4.0
2012-03-23 18:48:04 -07:00
Adam Jackson
3fade932ef alpine: Fix int10 setup
The PC98-removal fix accidentally took out the non-PC98 path here.

Reported-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Adam Jackson <ajax@redhat.com>
2012-03-13 18:36:15 -04:00
Adam Jackson
cbca35e71e Typo fix
Signed-off-by: Adam Jackson <ajax@redhat.com>
2011-12-20 13:56:42 -05:00
Adam Jackson
f422d0c38b Fix for new vgaHW ABI
Signed-off-by: Adam Jackson <ajax@redhat.com>
2011-12-19 17:46:26 -05:00
Adam Jackson
92c7067070 Fall back to shadowfb if XAA is unavailable
Signed-off-by: Adam Jackson <ajax@redhat.com>
2011-12-19 16:21:51 -05:00
Jeremy Huddleston
d9c9cc333e Build fix for older servers (error: conflicting types for 'pciTag')
/usr/include/xorg/xf86Pci.h:254:25: note: previous declaration of 'pciTag' was here

Reported-by: Johannes Obermayr <johannesobermayr@gmx.de>
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-10-31 11:55:47 -07:00
Jeremy Huddleston
05fd00f46e pciTag was removed from xorg-server, so provide it in-driver until this is updated to use libpciaccess
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-10-29 16:58:41 -07:00
Jeremy Huddleston
1a4dc3fb35 Disable PC98 code on newer servers.
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-10-29 16:47:43 -07:00
Satoshi KImura
28aef0c4a4 Add support for the NEC PC-9821
https://bugs.freedesktop.org/show_bug.cgi?id=1837

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-10-21 15:36:22 -07:00
Stefan Potyra
f5a8080f14 Limit the maximul pitch of GD5436 and GD5446
Limit the maximum supported pitch of the GD5446 to 4088, since the internal
pitch register is only 9 bit (and contains the pitch left shifted by 3).

See https://bugs.freedesktop.org/show_bug.cgi?id=23775

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-10-20 14:50:10 -07:00
Jeremy Huddleston
9fcfd1aa76 Build fix for ABI Version 12
ABI Version 12 removes support for multiple PCI domains.  If you need to
use this driver on a system with more than one PCI domain, you should
either port this driver to using libpciaccess directly or stick with an
older server.

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-10-19 00:12:15 -07:00
Jeremy Huddleston
80f60e4af0 Use malloc/calloc/realloc/free directly
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-10-17 01:42:00 -07:00
Jeremy Huddleston
3e5ebc4c1b GD5436 timings are the same as GD5446
Based on information from http://www.xfree86.org/3.3.6/cirrus1.html
See: https://bugs.freedesktop.org/show_bug.cgi?id=4169

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-10-17 01:40:17 -07:00
Alan Coopersmith
e4f80ffd9d Sun's copyrights now belong to Oracle
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-10-30 09:34:26 -07:00
Jesse Adkins
366a025a3f Purge cvs tags.
Signed-off-by: Jesse Adkins <jesserayadkins@gmail.com>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-10-06 20:42:25 -07:00
Gaetan Nadon
c3daa8cd1d config: add comments for main statements 2010-07-21 20:12:43 -04:00