Commit Graph

2728 Commits

Author SHA1 Message Date
Alan Coopersmith dae9cb7712 Provide definitions of __FUNCTION__ for non-gcc compilers 2006-06-22 15:07:16 -07:00
Eric Anholt bb48105216 Move FP mode validation next to other mode validation code. 2006-06-22 09:38:27 -07:00
Eric Anholt 66d9a1be30 Detect SDVO display presence at startup and default to displaying to it, too. 2006-06-21 17:11:54 -07:00
Eric Anholt 72e25a7488 Fix SDVO output at low pixel clocks.
I had interpreted the docs as saying that the multiplier setting would further
divide the clock and stuff dummy bytes in.  Instead, we have to set the DPLL at
the higher clock rate, and the pixel multiplier just controls the stuffing of
dummy bytes.  Also, we have to set the multiplier both in the graphics chip and
on the SDVO device on the other side.
2006-06-21 16:04:18 -07:00
Eric Anholt 726443309d Add decoding of SDVO command names for debug output. 2006-06-21 15:38:19 -07:00
Alan Hourihane 5a1b68993f Fix build without DRI 2006-06-21 08:41:16 +01:00
Matthieu Herrb 16b310823b Fix build without DRI 2006-06-21 00:12:27 +02:00
Eric Anholt 896ffe78fe Merge branch 'modesetting-origin' into modesetting 2006-06-20 15:10:35 -07:00
Eric Anholt 89c2c4bc40 Add #if 0-ed code I've been using for CRT detection debugging. 2006-06-20 15:10:19 -07:00
Eric Anholt be08661e31 Only default to enabling CRT or LVDS output if they're actually detected.
Still, if we haven't detected any outputs automatically (including CRT through
DDC), default to CRT anyway.
2006-06-20 14:55:21 -07:00
Eric Anholt b454c9601f Add support for CRT detection using DDC.
This method is slower (~5ms), but works on older chipsets.  Also, load-based
detection is disabled, as it can be fooled by other outputs on the pipe being
active, such as LVDS.
2006-06-20 14:32:40 -07:00
Eric Anholt 0b76646666 Add CRT detection function by testing for load, and clean up hotplug version. 2006-06-20 13:57:26 -07:00
Eric Anholt e4584a4f44 Remove dead DisplayInfo option. 2006-06-20 10:39:28 -07:00
Eric Anholt ab60e34dcf Add debugging info for pipe/display plane size. 2006-06-20 10:07:47 -07:00
Keith Packard 8a6edba332 Set vblank interrupt configuration to match pipe configuration
New i915 drm ioctl (in version 1.5) allows the X server to select
which pipe drives vblank interrupts. Use this to drive from the 'preferred'
pipe. Yes, per-window vblanks would be nice in a shared fb environment.
Maybe someday.
(cherry picked from 2fb375b665 commit)
2006-06-19 13:47:28 -07:00
Keith Packard 52243d407c Merge branch 'modesetting-origin' into modesetting 2006-06-19 13:28:09 -07:00
Keith Packard 2fb375b665 Set vblank interrupt configuration to match pipe configuration
New i915 drm ioctl (in version 1.5) allows the X server to select
which pipe drives vblank interrupts. Use this to drive from the 'preferred'
pipe. Yes, per-window vblanks would be nice in a shared fb environment.
Maybe someday.
2006-06-19 13:24:57 -07:00
Keith Packard b5acc6b3a3 Add backlight control to DPMS logic.
Turn backlight on and off in response to DPMS state changes.
2006-06-19 13:22:17 -07:00
Wang Zhenyu d7e5d996aa Merge branch 'master' into exa 2006-06-20 01:22:53 +08:00
Alan Hourihane a73ab7f0e6 additions for rotation fixes 2006-06-19 11:35:42 +01:00
Alan Hourihane 1fe3dd38eb Set some invarient state, cures some problems with
rotation at startup.

This mimicks the 3D drivers setup.
2006-06-19 11:27:28 +01:00
Eric Anholt 89a5a0024a Fix crash with EXA during randr, when XAA structures were being accessed. EXA
shouldn't have any issues with there also being pixmaps in framebuffer while
rotation is active.
2006-06-18 00:32:17 -07:00
Eric Anholt f2ab3aa319 Fix DRI in EXA mode: Don't attempt to use XAA symbols (use the driver's internal
ones for EXA support when available).  Also, add an abstraction of XAA/EXA
MarkSync and WaitSync functionality so we don't need to sprinkle the ifdefs all
over, and correctly use them.
2006-06-18 00:32:01 -07:00
Alan Hourihane 3592b432b4 fix 8bpp & 16bpp rotation modes for i8xx
series chips
2006-06-13 21:42:53 +01:00
Alan Hourihane a50610b771 Use 800x600 mode to double check 2006-06-12 13:53:20 +01:00
Alan Hourihane f02268b209 Don't rely on register check to find out
if we're resuming - it's not reliable.

But then, neither is the BIOS, but it's
the best we can hope for until Eric's work
is complete.

Try setting another mode to cater for some
broken BIOS' too.
2006-06-12 12:16:58 +01:00
Alan Hourihane 672c3d18db Only mark rotation flags after initial screen setup.
Fixes bug #7053
2006-06-12 10:02:06 +01:00
Keith Packard 34f6a8204f Get sDVO output working on mac mini.
Add lots of register debugging to track delta from BIOS settings.
Fix various mode settings to mirror BIOS sDVO values.
Disable analog/lvds output on pipe with sDVO.
Borrow Dave Airlie's I830xf86ValidateDDCModes code.
Fix various sDVO I2C messages to mirror Dave's code.
2006-06-04 00:15:06 -07:00
Dave Airlie 6812b53820 intel: fix VT switch DRI locking
The DRI locking is incorrect at VT switch, due to reference counting
inside the driver. Just call the DRI directly.
2006-06-02 12:22:14 +10:00
Keith his master's voice Packard 3f158fd610 Nice texture coordinate gradient, broken slightly in y 2006-05-29 18:05:57 -07:00
Keith his master's voice Packard bb0ad04d46 Ok, finally something sensible up on the screen.
Replace PS kernel with constant data source (pink).
Dodge g0/g1 so URB data doesn't land on top of thread data.
Flip source/dest coordinates (dunno why they're fetched this way).
2006-05-28 22:59:58 -07:00
Keith his master's voice Packard ddf3e5b273 Using tiny rectangle, still locks up in pixel shader program somehow 2006-05-28 21:03:39 -07:00
Keith his master's voice Packard 2e16c79dc2 Lots more debug code. Appears to execute pixel shader thread now though. hurray! 2006-05-28 20:31:23 -07:00
Keith his master's voice Packard 79a514412b dump out piles of debug. Create VS thread just to see how it works 2006-05-28 16:09:59 -07:00
Keith his master's voice Packard 9c111d89fe Push all of the obvious Mesa state setting into the video code 2006-05-27 19:52:13 -07:00
Keith his master's voice Packard 01101196b1 flesh out cc state. set cull mode to none. enable sf kernel 2006-05-27 01:05:09 -07:00
Keith his master's voice Packard 462a860af8 Rename BRW instructions, check video instruction generation. Doesnt lock up, but doesnt display anything either 2006-05-27 00:17:25 -07:00
Keith his master's voice Packard 9ec7cf22e3 Use broadwater video code on broadwater hardware. Pad ring to even length. compute state base as address rather than offset 2006-05-26 21:30:55 -07:00
Keith his master's voice Packard f5fe700b9a Prepare real SF kernel and fake WM kernel 2006-05-26 13:47:39 -07:00
Keith his master's voice Packard 1549accb6f Scale video source vertices. Allocate space for kernels 2006-05-25 16:10:31 -07:00
Eric Anholt c1c46f882f Merge branch 'master' into modesetting
Conflicts:

	man/.gitignore
2006-05-22 10:42:24 -07:00
Lukáš Hejtmanek 1e2da2450d Replace VBE call to do DPMS with native code, and fix screensaver in clone mode. 2006-05-22 10:37:33 -07:00
Eric Anholt 2a1b3cfccb Use RECTLIST instead of TRIFAN for video so we get horizontal shearing instead
of diagonal.  Also remove the unnecessary vertex elements that were being
emitted.
2006-05-22 10:32:13 -07:00
Wang Zhenyu bc42dbe07c fix a typo 2006-05-22 11:22:03 +08:00
Eric Anholt bce209cd3f Put in code for idling accelerator on subsequent cliprects. 2006-05-19 17:13:37 -07:00
Eric Anholt 3640117bd9 Set up the state buffer in framebuffer. 2006-05-19 17:10:04 -07:00
Wang Zhenyu e70d99d51e revert wrong setting for memorySize, which should
be at the range of pI830->Offscreen.
2006-05-19 15:47:19 +08:00
Eric Anholt de06cd70a9 Checkpoint for filling out more 3D state. 2006-05-18 18:27:11 -07:00
Eric Anholt ad7ec6a24b Checkpoint of BW textured video work, filling out vertex submission stuff and
some more other state.
2006-05-18 15:26:28 -07:00
Eric Anholt 291770efc6 Start laying out some of the bits that need to be done for BW textured video.
Headers taken from TG code drop.
2006-05-18 10:43:07 -07:00