Commit Graph

2728 Commits

Author SHA1 Message Date
Eric Anholt 09e3d10b0f Add a function for describing the output connection configuration. 2006-10-09 13:09:39 -07:00
Eric Anholt 317cc119c5 Move per-output mode setting code to per-output methods.
This is not a very clean interface, as a number of outputs require tweaks to
the DPLL registers.  When possible, the DPLLs are just adjusted in the
per-output post_set_mode, which happens just after the DPLL is enabled.
However, this seems better than the previous method of having all outputs
programmed in the same function.
2006-10-09 11:49:37 -07:00
Adam Jackson 53c28b3980 Expand the check for AOpen Mini-PC.
Just match on subsystem vendor, don't bother inspecting the subsystem device
ID, since apparently they're all busted.
2006-10-07 11:18:26 -04:00
Keith Packard bf3820f1f5 Compute LVDS resolution from server DPI and native panel size.
I was unable to find the native LVDS panel physical size in the BDB
information. I would prefer to report accurate information through RandR if
possible though.
2006-10-06 21:57:26 -07:00
Alan Hourihane c7a23908a0 Fix server regeneration problem mapping the aperture 2006-10-06 13:35:39 +01:00
Keith Packard d649fb0d96 Don't require MonitorLayout when two monitors are plugged in.
With randr12 working, we can just leave the second monitor off for now.
2006-10-05 22:46:07 -07:00
Eric Anholt 9bb7736ab3 Remove checks for output privates in various bits of code.
Now, the output is only set up if it fully initializes, so it will never exist
if the private it requires doesn't.
2006-10-05 16:16:45 -07:00
Eric Anholt ada8f62da2 Give each output type an init method in its file, making other methods static. 2006-10-05 15:55:07 -07:00
Keith Packard 0a5504e59f Fix DPI at startup in RandR 1.2 code.
Use requested monitor resolution to compute the appropriate screen size when
resizing the screen during RandR initialization.
2006-10-05 09:11:29 -07:00
Keith Packard 4ac81d58b7 Remove mode origins, add preferred mode count.
Just tracking changes in the 1.2 protocol spec.
2006-10-04 23:22:52 -07:00
Eric Anholt 103b4edce7 Move the save, restore, and DPMS per-output settings to per-output files. 2006-10-04 18:48:17 -07:00
Keith Packard 16988b2725 Merge branch 'modesetting-guitar' into modesetting 2006-10-04 18:44:43 -07:00
Keith Packard 5a06000248 Add mode origins for randr 2006-10-04 18:43:07 -07:00
Alan Hourihane 07cdc60be8 Fix bug #5795, VT switching fails because of a bad test on some platforms. 2006-10-04 11:05:30 +01:00
Keith Packard 8da10d15f8 Enable XV_PORT attribute even when not in Clone mode.
As Clone mode is now something that can change after server startup, always
enable the XV_PORT attribute as we cannot change the list of reported
attributes.
(cherry picked from 1bc1cedbcd commit)
2006-10-03 22:06:10 -07:00
Keith Packard cc4148e25d Merge branch 'modesetting-origin' into modesetting 2006-10-03 22:00:41 -07:00
Keith Packard 1bc1cedbcd Enable XV_PORT attribute even when not in Clone mode.
As Clone mode is now something that can change after server startup, always
enable the XV_PORT attribute as we cannot change the list of reported
attributes.
2006-10-03 22:00:14 -07:00
Keith Packard 33629ed304 Always register list of modes for outputs, even when disabled. 2006-10-03 09:39:22 -07:00
Eric Anholt 3e6f81f70f Move cursor base address register setting to a separate function. 2006-10-02 09:53:57 -07:00
Alan Hourihane f337eea9e7 silence warning 2006-10-02 11:16:42 +01:00
Alan Hourihane 2b9bdd8a40 bump to 1.7.0 2006-10-02 11:12:23 +01:00
Alan Hourihane eca082ca0f Missing gamma bit 2006-09-30 13:44:43 +01:00
Alan Hourihane cece9a455b Fix issues with Xv locking up the engine. bug #7915. 2006-09-30 13:27:27 +01:00
Michel Dänzer 2013b839de Always call I830UpdateXineramaScreenInfo() unconditionally, and document why. 2006-09-28 13:49:44 +02:00
Wang Zhenyu 92c5020bbd Fix picture's transform checking 2006-09-28 13:55:52 +08:00
Wang Zhenyu 5188028432 Fallback in mask picture for now
Do it later after finish wm kernel program.
2006-09-28 11:15:33 +08:00
Wang Zhenyu 25ff5baad9 Fix compile, add wm header file. 2006-09-28 11:09:52 +08:00
Wang Zhenyu c3a49b5123 Add simplest wm kernel program for no mask picture composite
This is a try to use new gen4asm language, and will finish
composite program for mask picture with or without CA case later.
2006-09-28 10:36:00 +08: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
Eric Anholt fdb6de6635 Re-disable broken load-based CRT detection. 2006-09-27 13:59:41 -07:00
Eric Anholt 1407a42c73 Merge branch 'randr-1.2' into modesetting 2006-09-27 13:33:23 -07:00
Eric Anholt 25890ecda9 Merge branch 'acpi-hotkey' into modesetting
Conflicts:

	src/i830.h
	src/i830_driver.c
2006-09-27 13:33:17 -07:00
Eric Anholt 117ff04b50 Attempt to make the ACPI hotkey support a little more modesetting-compatible.
Previously, we watched for the BIOS to have changed the layout, and repaired
the resulting configuration.  Now, we request that the BIOS make no changes,
but leave a note in a register for when the key has been pressed.  When we
notice this, we reprobe monitors and turn on/off the things we find.

This is a temporary solution until we can get the hotkey hooked up as an
input key to external applications to control the change using RandR 1.2.  It
is also untested as neither of my laptops do anything with the hotkey.
However, this code does result in many fewer BIOS calls.
2006-09-27 13:30:09 -07:00
Michel Dänzer fe691953f0 Store viewport limits of both pipes in SAREA.
This allows DRI clients to determine which pipe they should synchronize buffer
swaps of each window to.
2006-09-27 15:06:43 +02:00
Michel Dänzer 06c5f7bd07 If the DRM can handle it, enable vertical blank interrupts for both pipes. 2006-09-27 15:06:07 +02:00
Michel Dänzer 89cbc6e215 Only enable the IRQ after DRIFinishScreenInit.
This makes sure we've been assigned a context ID, so the interrupt context
won't mess things up if it grabs the HW lock.
2006-09-27 11:00:37 +02:00
Wang Zhenyu 185df8a181 Add mask sampler state 2006-09-27 16:48:43 +08:00
Wang Zhenyu 1422d4f04a change some src sampler states
sampler for mask should also be set up, and fix
default border texel.
2006-09-27 13:54:14 +08:00
Alan Hourihane 6614b4bda2 Merge branch 'master' of git+ssh://git.freedesktop.org/git/xorg/driver/xf86-video-intel 2006-09-25 12:04:01 +01:00
Alan Hourihane d6ca9feb78 Fix bug #7943 where video flickers when changing
attributes. This code was a leftover from testing lockups
and shouldn't be needed anymore.
2006-09-25 12:03:27 +01:00
Wang Zhenyu 52a4f2a02b Add file for i965 exa composite
This does not include ps program, which will be added
in g4a form.
2006-09-25 14:35:51 +08:00
Wang Zhenyu f272f0d811 Merge branch 'master' into exa 2006-09-25 14:15:21 +08:00
Keith Packard 4bd3b89c73 Oops, duplicated CRT-redetect code. 2006-09-23 16:41:38 +01:00
Keith Packard c34490bbda Construct default monitor description for hotplug non-DDC monitor.
When detecting a monitor that doesn't support DDC, construct a default
monitor with "sensible" values instead of using whatever the builtin LCD
screen uses. Clearly we need a way to set the monitor parameters when we
cannot detect them.
2006-09-23 12:00:43 +01:00
Eric Anholt 965609f6fa Restructure i830_bios.c so we don't leak a copy of the BIOS per generation. 2006-09-22 10:52:04 -07:00
Eric Anholt c52242c227 Remove some dead code related to clock ranges. 2006-09-22 10:52:03 -07:00
Eric Anholt c2446be9b4 Remove the GetDevicePresence BIOS call which just printed BIOS information.
Because we aren't using the BIOS to set modes any more, what the BIOS thinks is
present is probably even less important than before.
2006-09-22 10:52:02 -07:00
Eric Anholt b6ba268d0d Remove the no-longer-connected VBERestore option. 2006-09-22 10:52:00 -07:00
Eric Anholt 20956a5d6f Remove unused display{Attached,Present} fields. 2006-09-22 10:52:00 -07:00
Eric Anholt 2cd28be714 Remove empty SAVERESTORE_HWSTATE code. 2006-09-22 10:52:00 -07:00