Commit Graph

221 Commits

Author SHA1 Message Date
Peter Hutterer
4ecc827754 xf86-video-xgi: Rename xf86Version includes and defines to xorgVersion.
s/xf86Version.h/xorgVersion.h/
s/XF86_VERSION/XORG_VERSION_/

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-07-21 13:49:34 +10:00
Gaetan Nadon
c7ef9a7191 Use XORG_CHANGELOG macro to create ChangeLog. #22611
Adding the macro in configure.ac and use it in Makefile.am
    Refer to: https://bugs.freedesktop.org/show_bug.cgi?id=22611
    Global maintenance on all modules

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-07-16 14:35:19 +10:00
Peter Hutterer
a365343b07 Update to xextproto 7.1 support.
DPMS header was split into dpms.h (client) and dpmsconst.h (server). Drivers
need to include dpmsconst.h if xextproto 7.1 is available.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-07-16 12:00:04 +10:00
Alan Coopersmith
0009607e1d Add README with pointers to mailing list, bugzilla & git repos 2009-01-30 21:07:52 -08:00
Ian Romanick
55cc78e4eb Fix build for libpciaccess X servers 2008-05-30 11:30:11 -07:00
root
f9f7b2a745 XGI:Add support for XG21/27 2008-04-28 10:46:29 +08:00
James Cloos
0b28672591 Merge branch 'master' of ssh://git.freedesktop.org/git/xorg/driver/xf86-video-xgi 2007-09-03 06:09:25 -04:00
James Cloos
d832b8a0af Add *~ to .gitignore to skip patch/emacs droppings 2007-09-03 05:52:52 -04:00
Ian Romanick
f9980c8526 Eliminiate remaining bits xgi_ver.h cruft. xf86-video-xgi-1.5.0 2007-08-27 16:13:48 -07:00
Ian Romanick
9d9c5718d4 Bump version to 1.5.0. xgi-1.5.0 2007-08-27 16:02:24 -07:00
Ian Romanick
8966e20662 Port to libpciaccess and related interfaces. 2007-08-27 15:40:06 -07:00
Ian Romanick
eb6d0b2ea0 Use SiS DRM.
Support was added for SiS based XGI chips in SiS DRM version 1.3.0.
Use this as the DRM for XG40 chips.
2007-06-26 09:53:20 -07:00
Ian Romanick
07c232e368 Change default configuration for maxxfbmem
Previously maxxfbmem had to be configured by the user via xorg.conf in
order for DRI to work.  maxxfbmem is now set to the required size for
the virtual display.  This allows DRI to work without additional user
intervention.

In addition, code was added to detect the case there no additional
framebuffer memory is available.  In this case, DRI is disabled.  This
prevents mysterious lock-ups when trying to use DRI without video
memory for back buffers, etc.
2007-06-26 09:24:09 -07:00
Ian Romanick
b03d7713bb Refactor code that selects max wait iterations to its own function
Move code that selects the maximum wait iterations out of Volari_Wait
into Volari_SetDefaultIdleWait.  This function is called from
XGIModeInit.  The win here is that we can eliminate the Current*
global variables.
2007-06-25 16:12:05 -07:00
Ian Romanick
34069dec0a Fix typo in comment. 2007-06-25 15:54:24 -07:00
Ian Romanick
08861b2539 Eliminate SR1E magic numbers. 2007-06-25 15:49:40 -07:00
Ian Romanick
9df137116e Fix compile blooper on last commit. 2007-06-25 15:35:09 -07:00
Ian Romanick
17645e10c7 Change Volari_Idle from a macro (#define) to a function. 2007-06-25 15:33:10 -07:00
Ian Romanick
edb6c08722 Eliminate XGIIdle wrapper. 2007-06-25 13:18:53 -07:00
Ian Romanick
f3580e3373 Enable DRI when XGIfb is not available.
Previously DRI was only enabled when XGIfb was available.  This was
done because XGIfb was the only place that initialized the framebuffer
memory manager.  However, there is an ioctl for this purpose.  Code
was added to xgi_dri.c to call this ioctl.

This matches the way the SiS driver works.
2007-06-25 13:17:46 -07:00
Ian Romanick
8f04e1a76c Clean up DRI initialization. 2007-06-22 16:21:32 -07:00
Ian Romanick
5c4d707c4e BlankCRT2 is set but never used. Eliminate it. 2007-06-22 09:06:14 -07:00
Ian Romanick
941c7463bb Move #endif to eliminate compiler warning. 2007-06-22 09:03:26 -07:00
Ian Romanick
ad28d9d45a checkit is set to false and never changed. Eliminate it. 2007-06-22 09:02:32 -07:00
Ian Romanick
0fd883edc7 Eliminate unnecessary IS_SECOND_HEAD test.
Because of the if-statement at line 5011, we *know* that
IS_SECOND_HEAD is false at line 5034.  Eliminate the unnecessary test
and else clause.
2007-06-22 09:01:25 -07:00
Ian Romanick
84d1f89c81 Wrap accesses to entityPrivate with a macro.
By wrapping accesses to entityPrivate with a macro some more in-code
instances of '#ifdef XGIDUALHEAD' can be eliminated.
2007-06-22 08:57:02 -07:00
Ian Romanick
a1a5298851 First phase of eliminating '#ifdef XGIDUALHEAD' from code.
Replace all the tests of DualHeadMode and SecondHead with macros that
evaluate to FALSE when XGIDUALHEAD is not set.  This allows the
elimination of many of the occurances of '#ifdef XGIDUALHEAD' in the
code.
2007-06-21 17:09:52 -07:00
Ian Romanick
8cf397cc14 Clarify log message when DRI is not supported due to lack of fbdev. 2007-06-21 16:01:15 -07:00
Ian Romanick
139f0bbbde Rearrange XGI_SetCRT1VCLK to make it look more like XGI_New_SetCRT1VCLK
There are still some (seemingly) significant differences between these
two functions, so I have not yet refactored them into a single function.
2007-05-04 09:50:49 -07:00
Ian Romanick
84d3ded2c9 Eliminate XGI_SetCRT1Sync. Universally use XGI_SetSync. 2007-05-04 09:31:28 -07:00
Ian Romanick
75e8c98952 Eliminate XGI_New_ClearExt1Regs. Universally use XGI_ClearExt1Regs. 2007-05-04 09:27:16 -07:00
Ian Romanick
78d6ae712a Eliminate XGI_New_SetGRCRegs. Universally use XGI_SetGRCRegs. 2007-05-03 18:31:27 -07:00
Ian Romanick
5205087bff Actually remove XGI_New_SetATTRegs
This change was missed on the previous commit.
2007-05-03 18:26:19 -07:00
Ian Romanick
15dc3557b4 Elminiate XGI_New_SetATTRegs. Universally use XGI_SetATTRegs.
There are some differences between these functions.  Some were moved
over to XGI_SetATTRegs.  For the others, I'm *assuming* the more
recent code drop from XGI (i.e., XGI_SetATTRegs) is correct for the
Volari parts.
2007-05-03 18:25:19 -07:00
Ian Romanick
79cfe8aa44 Elminiate XGI_New_SetCRTCRegs. Universally use XGI_SetCRTCRegs. 2007-05-03 18:16:40 -07:00
Ian Romanick
4e91916b8b Eliminate XGI_New_SetMiscRegs. Universally use XGI_SetMiscRegs instead. 2007-05-03 18:12:03 -07:00
Ian Romanick
dfbc3120d1 Eliminiate XGI_New_SetSeqRegs. Universally use XGI_SetSeqRegs instead. 2007-05-03 18:08:27 -07:00
Ian Romanick
7ea1b566ba Eliminate XGI_New_GetColorDepth. Universally use XGI_GetColorDepth instead. 2007-05-03 17:59:19 -07:00
Ian Romanick
42d37ee13d Revert accidental commit 2007-05-03 17:58:21 -07:00
Ian Romanick
80e73ba2c1 Eliminate pointers to writable globals in VB_DEVICE_INFO
MCLKData and ECLKData were supposed to get this treatment along with
the other structure fields in commit
a3597f0de3.  They were overlooked at
that time, and this brings them in line.
2007-05-03 17:56:09 -07:00
Ian Romanick
53809444fa Make remaining global data pointers in VB_DEVICE_INFO const. 2007-05-03 17:40:37 -07:00
Ian Romanick
a3597f0de3 Eliminate pointers to writable globals in VB_DEVICE_INFO
Previously, the VB_DEVICE_INFO was recreated each time certain
functions were called.  In order to have persistent storage across
calls, VB_DEVICE_INFO contained pointers to writable global data.

Since the VB_DEVICE_INFO structure is no longer recreated on each
call, there is no reason to have this global data.  All data is stored
in the VB_DEVICE_INFO structure.  It is copied from const globals when
the structure is initialized.
2007-05-03 17:31:01 -07:00
Ian Romanick
58860f437a Fix some bits missed on last commit 2007-05-03 17:12:32 -07:00
Ian Romanick
4aab881830 Use only one copy of VB_DEVICE_INFO.
Pass a single copy of the device's VB_DEVICE_INFO structure to the
functions in vb_*.c instead of requiring each function to initialize
its own copy.
2007-05-03 15:55:50 -07:00
Ian Romanick
98f05a8190 Eliminate unused structure fields VBInfo and pVBInfo. 2007-05-03 15:18:16 -07:00
Ian Romanick
70e4e6d1c0 String replace XGI_Private with VB_DEVICE_INFO, remove vstruct.h. 2007-05-03 15:10:56 -07:00
Ian Romanick
aea90411c8 Replace "struct _XGI_Private" with "struct _VB_DEVICE_INFO".
These two structures are nearly identical, and there is a lot of
duplicate infrastructure between them.  This patch simply replaces
"struct _XGI_Private" with a typedef to "struct _VB_DEVICE_INFO".
Future changes will remove the duplicate infrastructure and unite the
code more cleanly.
2007-05-03 15:06:12 -07:00
Ian Romanick
8000c9d413 Remove unused "LVDSHL" related structure field and xorg.conf option 2007-05-03 10:06:44 -07:00
Ian Romanick
ee45a047cf Remove unused "PanelDelayCompensation" related structure fields and xorg.conf options 2007-05-03 10:03:26 -07:00
Ian Romanick
c7f3de98e7 Remove unused "UseOEM" related structure fields and xorg.conf option 2007-05-03 09:59:23 -07:00