Commit Graph

1801 Commits

Author SHA1 Message Date
Eric Anholt 88c12f577f Move LVDS initialization and blacklisting damage to the LVDS support file. 2006-10-25 16:11:05 -07:00
Eric Anholt 2631014e9d Clean up the SDVO code.
The main change is to send SDVO commands using data passed into the send
command function, and receive responses into memory passed into the read
response function, rather than stuff things in/out through dev_priv->sdvo_regs.
This lets us use structures to represent some arguments, which results in a
nice cleanup (and 100% fewer arguments named magicN as a side effect).

Also, the mode set path is changed to not do any preferred input timing
work.  We weren't doing anything legitimate with the results, since we didn't
modify the CRTC timing appropriately, so now we just stuff the CRTC timing into
both and hope for the best.  This should probably be revisited later.
2006-10-25 12:21:57 -07:00
Eric Anholt ddb986e54f Nuke trailing whitespace in SDVO code not already cleaned up. 2006-10-25 12:21:57 -07:00
Eric Anholt cd2f0d948a Clean up SDVO code, moving the private structure internal and cleaning up caps.
All the SDVO code should now be in lower case rather than StudlyCaps.

This also adjusts the I2C setup to create a bus per SDVO output we set up.
The previous setup with shared buses was failing in some circumstances, which
is probably due to the lack of refcounting in xf86i2c.c.
2006-10-25 12:21:57 -07:00
Keith Packard cd9c6e2914 Merge branch 'modesetting-origin' into modesetting 2006-10-24 16:53:46 -07:00
Eric Anholt eec5580cef Merge branch 'overhaul' into modesetting 2006-10-23 14:52:55 -07:00
Eric Anholt a91c0cbab5 Add work-in-progress integrated TV-out support.
This is the TV connector on board for the 915GM and 945GM.

It is currently not hooked up to output initialization as it's entirely
untested.  However, I think this is a reasonable starting point for getting
TV-out actually working.
2006-10-23 14:30:38 -07:00
Alan Hourihane 7d67324fa3 Add some MergedFB checks for accelerator limitations 2006-10-23 17:29:17 +01:00
Alan Hourihane 20d263805a Merge branch 'master' of git+ssh://git.freedesktop.org/git/xorg/driver/xf86-video-intel 2006-10-23 14:24:41 +01:00
Alan Hourihane 8548fa5374 Fix manpage to report 8160 instead of 6144 for LinearAlloc. 2006-10-23 14:23:29 +01:00
Michel Dänzer 5ac927d6f0 Don't crash if SetCursorPosition is called with pScrn->currentMode == NULL.
This allows the driver to work with servers that don't have the fix for this
that was only recently pushed to git.
2006-10-17 13:28:54 +02:00
Eric Anholt 8149681f2e Add a per-output mode-valid method.
This is currently disconnected, but will be used in more overhaul work.
This should be where any output limitations, such as clocks, resolution,
scaling limits, or other options, are validated.  Other limitations, such as
chipset resolution limits, CRTC clock limits, etc. should be elsewhere.
2006-10-16 16:51:04 -07:00
Keith Packard c5cca4c20a Advertise textured video adapter first 2006-10-13 15:31:43 -07:00
Alan Hourihane adae75ef2f Make VIDEO_DEBUG into a configure option 2006-10-13 17:10:27 +01:00
Alan Hourihane 1d4cfaa391 Bump to 1.7.2 2006-10-13 13:55:10 +01:00
Alan Hourihane cd9e51cd3a Ugh. Turn off debugging. 2006-10-13 13:54:31 +01:00
Alan Hourihane 334aa062c3 Bump to 1.7.1 2006-10-13 12:59:30 +01:00
Alan Hourihane 8045a7a0af Fix bug #8553 & #8542 - suspend/resume regression from 1.5 driver 2006-10-13 12:53:53 +01:00
Alan Hourihane 6596333b07 Fix some warnings 2006-10-13 12:48:16 +01:00
Eric Anholt 1838671476 Only disable the output when marked disabled.
Also, remove a couple of dead variables.
2006-10-10 12:41:01 -07:00
Wang Zhenyu 4198f1216e Mark current ps kernel is experimential with little test. 2006-10-10 15:50:10 +08:00
Wang Zhenyu d485c1f2de Use sf_prog.h instead 2006-10-10 14:11:35 +08:00
Eric Anholt 2591c1fcf1 Fix LVDS restore path, and move pipe assignment for outputs to the right place. 2006-10-09 14:20:49 -07:00
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