Commit Graph

41 Commits

Author SHA1 Message Date
Keith Packard e8d1db3263 Move crtc/output config to sub-structure.
Place crtc/output in separate structure at head
of driver private structure. Use this from the config code
to make it driver-independent. Still lots of effectively driver
independent code that continues to use driver dependent stuff,
but that will change.
2006-11-27 12:01:47 -08:00
Keith Packard 2529863a1a Start output/crtc restructuring work. It compiles.
Outputs and Crtcs are now split between 'generic'
and 'driver specific' pieces in the hope that more code
will be able to migrate to the xf86-generic layer.

Right now, the code remains tangled together, significant
work remains to tease the pieces apart. First the code
needs to be made to actually work as-is though.
2006-11-26 16:44:17 -08:00
Keith Packard 81bace0c31 Merge branch 'modesetting-keithp' into modesetting
Conflicts in PipeSetMode were resolved to use the keithp changes
that pushed more modesetting stuff into the per-pipe function.

Switched availablePipes to num_pipes.

Used modesetting default output configuration.
2006-11-08 20:23:20 -08:00
Eric Anholt 713c5b0899 Change the output and pipe "is it on/off" field name to "enabled". 2006-11-08 19:55:31 -08:00
Keith Packard 0b2d36d4f0 Use pI830->availablePipes instead of MAX_DISPLAY_PIPES everywhere
(cherry picked from e4bcec796e commit)
2006-11-07 15:13:23 -08:00
Keith Packard 7fcb555735 Rename availablePipes to num_pipes 2006-11-04 00:52:21 -08:00
Keith Packard e4bcec796e Use pI830->availablePipes instead of MAX_DISPLAY_PIPES everywhere 2006-11-03 23:29:12 -08:00
Keith Packard 9681602177 Create I830PipeRec to hold pipe-specific data. Remove unused I830 members.
I830 contained six parallel arrays for pipe-specific data; these
have been moved to a I830PipeRec structure instead.

I830 also contained several unused members:

   unsigned int bios_version;
   Bool newPipeSwitch;
   Bool fakeSwitch;
   int fixedPipe;

These have been removed, along with the code that set them.
2006-11-03 12:55:25 -08:00
Eric Anholt 3e6f81f70f Move cursor base address register setting to a separate function. 2006-10-02 09:53:57 -07:00
Eric Anholt 6ea16bf6b0 Merge branch 'master' into modesetting
This reverts most of the mergedfb code.  This will instead be done in device-
independent RandR code.

Conflicts:

	src/Makefile.am
	src/i810_driver.c
	src/i810_reg.h
	src/i830.h
	src/i830_cursor.c
	src/i830_driver.c
	src/i830_modes.c
	src/i830_video.c
2006-09-27 16:38:01 -07:00
Keith Packard c11c445bde Consistently use Cursor A on Pipe 0 and Cursor B on Pipe 1.
Mixing random cursors and pipes didn't work very well. I'm left wondering
whether the palette stuff will work on pre-9xx series hardware though; it is
special cased everwhere else.
2006-09-21 01:23:10 -07:00
Keith Packard f6500e94fe Update driver for RandR 1.2 X server API.
This is not entirely what I'd like to see, but it's at least functional.

Limitations:
	Can't disable/enable crtcs
	Can't move outputs on/off crtcs

But, it does handle monitor hot-plug, detecting changes in VGA and SDVO
status on-the fly. Which makes for good demo material.
2006-09-20 22:38:55 -07:00
Eric Anholt 2a7426cf13 Clean up warnings. 2006-08-09 15:47:09 -07:00
Eric Anholt d150b53d10 Merge branch 'i965', adding i965G support.
Conflicts:

	src/i830_cursor.c
	src/i830_driver.c
2006-08-08 15:59:17 -07:00
Alan Hourihane 633a683a4a Ensure palette is updated in mergedfb & clone modes 2006-08-08 10:23:29 +01:00
Eric Anholt a79aa0d7b2 Merge branch 'broadwater-video-rehash' into broadwater
Conflicts:

	src/Makefile.am
	src/common.h
	src/i810_driver.c
	src/i810_reg.h
	src/i830.h
	src/i830_accel.c
	src/i830_cursor.c
	src/i830_dri.c
	src/i830_dri.h
	src/i830_driver.c
	src/i830_memory.c
	src/i830_rotate.c
	src/i830_video.c
2006-08-03 18:29:12 -07:00
Alan Hourihane 760021e398 Add current Tungsten Graphics code drop for i965 support. 2006-08-03 17:08:39 -07:00
Alan Hourihane ac3ad32f66 Calculate allowable refresh rates on the private
mode data for each independent screen in mergedfb.

Lots of other fixes too.
2006-07-27 15:28:42 +01:00
Alan Hourihane fd19b12793 Add mergedfb support to the intel driver with
additional pseudo-Xinerama support.
2006-07-25 11:14:11 +01:00
Eric Anholt 05bcbadd13 Avoid NULL dereference if cursor position changes during a mode change. 2006-07-11 14:05:38 -07:00
Luká\u0161 Hejtmánek f9499a68da Make gamma settings apply to the cursor as well, and fix clone-mode gamma. 2006-07-11 10:13:18 -07:00
Eric Anholt af2432322b First pass of integrating the Tungsten Graphics driver for Broadwater. This
patch is based off of diffing from the branchpoint to the supplied code, but
with many chunks containing reversions of commits removed.  Won't work yet.
2006-05-12 13:32:38 -07:00
Keith Packard c26f0737e2 Merge in master to modesetting 2006-04-10 19:41:41 -07:00
Alan Hourihane 39bdfbb4c2 x86_64 warning fixes 2006-04-10 11:26:06 -07:00
Eric Anholt 2538cbeb50 Enable -Wall on GCC, and do a cleanup of existing warnings. 2006-04-06 15:55:05 -07:00
Kristian Høgsberg fdfce49c54 Drop libc wrapper; don't include xf86_ansic.h and add includes now missing. 2006-03-22 23:24:03 +00:00
Alan Hourihane 58817c9909 Enable gamma for hw cursor when ARGB cursor in use (Lukas Hejtmanek) 2006-03-10 13:07:00 +00:00
Alan Hourihane d8d7490809 Bump version to 1.5.0.0
Add Intel 945GM support
Add RandR rotation support (full 3D acceleration, HWcursor & Xvideo rotated too)
Remove shadow framebuffer rotation code
Add a new LinearAlloc option to allow more offscreen memory to be allocated
for XVideo applications. This allows HDTV movies to be played via Xvideo.
2006-01-24 15:20:34 +00:00
Adam Jackson ac920dae7c Prep for modular builds by adding guarded #include "config.h" everywhere. 2005-07-11 02:29:51 +00:00
Alan Hourihane 27feb0f347 Add Intel(R) 945G support 2005-05-31 17:58:26 +00:00
Alan Hourihane 076c5116ae Add:
- Intel i915GM support to 2D DDX and 3D Mesa drivers.
- PanelID identification
- DRI suspend/resume support
- Detection of monitor changes on VT switches
- Support custom video modes if available in the Video BIOS
- 3D enhancements:
	* GL_ARB_texture_cube_map
	* GL_EXT_blend_equation_separate
	* GL_ATI_blend_equation_separate
	* GL_ARB_point_parameters
	* GL_NV_blend_square
	* GL_EXT_cull_vertex
	* GL_ARB_depth_texture
	* GL_SGIX_depth_texture
	* GL_ARB_shadow
	* GL_EXT_shadow_funcs
	* GL_3DFX_texture_compression_FXT1
By Tungsten Graphics, Keith Whitwell & Alan Hourihane.
2005-01-06 14:43:14 +00:00
Markus Kuhn 59cecb714b Encoding of numerous files changed to UTF-8 2004-12-04 00:43:09 +00:00
Alan Hourihane 5ed7e6f842 i915 support
Dual Head support for i830, i855, i915.
ARGB cursor support (including i810) for all chipsets.
2004-06-22 14:28:46 +00:00
Eric Anholt c5b1972b50 DRI XFree86-4_3_99_12-merge import 2004-06-16 09:23:18 +00:00
Egbert Eich 41eba03d0d Merging XORG-CURRENT into trunk 2004-04-23 19:35:55 +00:00
Egbert Eich e27494f2a9 Importing vendor version xf86-4_4_99_1 on Sun Mar 14 00:26:39 PST 2004 2004-03-14 08:33:22 +00:00
Egbert Eich 5ece535dc7 Importing vendor version xf86-4_4_0 on Wed Mar 3 04:09:24 PST 2004 2004-03-03 12:12:19 +00:00
Egbert Eich ba904078dd readding XFree86's cvs IDs 2004-02-26 13:35:53 +00:00
Egbert Eich 13ea363db3 Importing vendor version xf86-4_3_99_903 on Wed Feb 26 01:21:00 PST 2004 2004-02-26 09:23:19 +00:00
Kaleb Keithley 72063c52b8 XFree86 4.3.99.16
Bring the tree up to date for the Cygwin folks
2003-11-25 19:28:37 +00:00
Kaleb Keithley 3ad0d9a73b Initial revision 2003-11-14 16:48:55 +00:00