Commit Graph

2090 Commits

Author SHA1 Message Date
Jesse Barnes bf8a3ffeaa Revert "Use -Werror by default"
This reverts commit f315e9d1ad.  The world
isn't ready for a warning free build.
2008-09-30 16:59:02 -07:00
Olivier Fourdan 497b7420c4 Fix ordering of VGA vs. plane disable
From the Intel 965 Programmer’s Reference Manual, volume 3,
chapter 2.2.2 "Mode Switch Programming Sequence".

The disable sequence should be:

 - Disable planes (VGA or hires)
 - Disable pipe
 - Disable VGA display in 0x71400 bit 31

This patch implements that order plus waits for a vblank at the end.

Fixes bug #17756.
2008-09-30 12:53:11 -07:00
Jesse Barnes a4568740ee Be more verbose about panel data in VBIOS dumper
Dump more panel data, including number of expected entries.  Had to
refactor things a bit, but now each function should get size information
so further checking can be added more easily.
2008-09-30 12:48:32 -07:00
Jesse Barnes fa2586a40f Use VBT LFP info pointers by default
On some machines it appears that the LFP info pointers give us more
accurate panel info than if we index into the LFP data table using the
panel type index.  Early reports indicate that using the pointers
doesn't cause regressions, so switch to them by default to help 8xx
machines.

Fixes bug 17310 (and hopefully 17658 too).
2008-09-30 12:46:20 -07:00
Jesse Barnes f315e9d1ad Use -Werror by default 2008-09-30 12:07:52 -07:00
Jesse Barnes f082e877d5 Work around gcc uninitialized variable warnings
GCC isn't smart enough to analyze the control flow and figure out that
these are false positives, but initializing them shouldn't hurt, so work
around it.
2008-09-30 12:06:46 -07:00
Keith Packard 836d24f2cc Use uintptr_t instead of uint64_t to hold pointer value 2008-09-29 19:02:51 -07:00
Zhenyu Wang 11d304e99c Bug #16631: add option for SDVO force detect
Some ADD2 card doesn't get SDVO detect status setup right,
which disabled outputs on those cards. This adds a new
option "ForceSDVODetect" to probe all SDVO ports anyway.
2008-09-28 10:08:26 +08:00
Zhenyu Wang 1cc15ba454 Render register clock gating disable fix on 4 series chipset 2008-09-26 10:01:52 +08:00
Zhenyu Wang d6b2696f9a Do force CRT detect sequence twice on 4 series chipset 2008-09-26 09:53:03 +08:00
Zhenyu Wang d8a007b056 Bug #16515: Fix VT switch with DVI on G45
On DVI, centered VGA mode is used instead of native mode VGA, and
PLL on pipe is used instead of VGA PLL setting. So make sure PLL
settled down in restore time.
2008-09-26 09:44:59 +08:00
Jesse Barnes a428892b76 Update supported hardware list 2008-09-23 12:36:11 -07:00
Bryce Harrington afa630b448 Add TV out quirk for HP Compaq nx6110
Adds a TV out quirk for HP Compaq nx6110.  Fixes bz #17683.
2008-09-22 18:38:35 -07:00
Jesse Barnes 204a6281aa Revert "Add no TV out quirk for HP Compaq nx6110"
This reverts commit 6a46022df5.  It should have
been attributed to Bryce.
2008-09-22 18:38:03 -07:00
Jesse Barnes 6a46022df5 Add no TV out quirk for HP Compaq nx6110
Hopefully we can fix the VBT parsing code so we don't need this, but for the
time being it seems necessary.  Fixes bz #17683.
2008-09-22 13:26:58 -07:00
Jesse Barnes 10909d9b66 Add Cappuccino SlimPRO SP625F to no LVDS quirks list
Looks like this platform might contain VBTs that indicate an LFP is present
even though it isn't.  Intended to fix bz #11368.
2008-09-22 13:11:55 -07:00
Zhenyu Wang 2f93cfbc7e Fix output detection for DVI-I
For CRT this trys to probe all possible port for EDID and
detects got confirmed by EDID's d/a type bit.
For HDMI/DVI, also using EDID d/a type bit to ensure it should
handle the connect or not.
2008-09-19 15:20:55 +08:00
David Schleef 1fbe4d6028 Bug #17277: fix upscaling limit
Oh duh (i830_video.c):

        /* Clamp dst width & height to 7x of src (overlay limit) */
        if(drw_w > (src_w * 7))
            drw_w = src_w * 7;

	if(drw_h > (src_h * 7))
            drw_h = src_h * 7;

The condition I see in the documentation appears to be src_h/drw_h < 8, that
is, src_h < 8*drw_h.  It appears this was "fixed" incorrectly in e784e152.
It seems difficult to believe that this limitation would exist at all for the
texture unit.
2008-09-18 15:37:00 +08:00
Zhenyu Wang bc36608e32 Check display stride limit when allocate front buffer 2008-09-18 10:42:33 +08:00
Xiang, Haihao 62b75df84c Move bufmgr init earlier so it's available at I830DRIDoMappings time.
Fixes a crash with non-GEM mode.  Bug #17540.
2008-09-16 13:21:43 -07:00
Xiang, Haihao 188d58dac9 Put back check for pI830->hw_status in setting hws in non-GEM mode.
Fixes crashes on non-GEM systems with physical hardware status page.

Bug #17540
2008-09-16 11:51:07 -07:00
Jesse Barnes e2743a409a Only BO map render state if kernel mode setting is active
We'll probably end up doing this differently, but avoid this path for now.
2008-09-12 14:22:48 -07:00
Zhenyu Wang ec17c88a0e Add support for G41 chipset
G41 is another 4 series chipset like G45/43.
2008-09-11 16:14:47 +08:00
Zhenyu Wang f9c625e1e5 Disable render standby
Render standby is known to cause possible hang issue on some
mobile chips, so always disable it.
2008-09-11 15:35:27 +08:00
Eric Anholt 58a3817305 Track move of exec to bufmgr, and restoration of emit/wait funcs for non-drm. 2008-09-09 19:18:10 -07:00
Eric Anholt f367334c63 Track the move of irq emit/wait to fake bufmgr. 2008-09-09 19:18:10 -07:00
Eric Anholt 0b4f7b6303 Track move of bufmgr functions to libdrm_intel. 2008-09-09 19:18:10 -07:00
Eric Anholt 0f804bfa1e Bug #17446: Don't try to manage IRQs in GEM mode.
The kernel told us that it was already doing so, resulting in failure.
2008-09-09 19:17:05 -07:00
Eric Anholt da63b5adec Add some MCHBAR registers for debugging tile swizzling issues. 2008-09-09 19:07:53 -07:00
Dave Airlie c7aaf0118b mode: fix missing comma 2008-09-09 18:13:56 +10:00
Daniel Stone b9ef0ed7d7 i830: Fix timer leak
TimerCancel just cancels the timer: it still leaves the TimerRec intact and
unfreed.
2008-09-05 05:02:08 +03:00
Stefan Dirsch fca7a4e9a5 Pipe A force quirk for Toshiba Satellite A30. 2008-09-03 15:32:11 +02:00
Fabio 57ad9cc689 Man page patch to clarify meaning of VideoRam option with i810/i815 2008-09-01 13:33:50 +08:00
Jesse Barnes a1c802e4a0 Merge branch 'master' of ssh://git.freedesktop.org/git/xorg/driver/xf86-video-intel 2008-08-29 09:23:35 -07:00
Jesse Barnes 3733a1b54c Fix build when using kernel DRM headers
Unfortunate mismatch between kernel and DRM master headers.
Kernel:
typedef struct _drm_i915_batchbuffer { ... } drm_i915_batchbuffer_t;
DRM master:
typedef struct drm_i915_batchbuffer { ... } drm_i915_batchbuffer_t;

so use the typedef rather than the morphing structure name.
2008-08-29 09:12:05 -07:00
Eamon Walsh 808b72f814 Change uxa private keys to integer variables.
Prepares for a devPrivates system that will store an index.
2008-08-26 22:34:05 -04:00
Eamon Walsh 62ce9e8f9c Remove unused exa_pixmap_key. 2008-08-26 22:23:06 -04:00
Robert Noland 087ade8e66 Fix typo in last commit 2008-08-26 16:35:07 -04:00
Robert Noland 6404ac178b Check for drm before calling modeset ioctl. 2008-08-26 15:10:52 -04:00
Zhenyu Wang c889198ab5 Fix X exit crash in NoAccel
NoAccel should still be needed for performance evaluation,
so don't crash me when exit.
2008-08-26 10:12:21 +08:00
Zhenyu Wang 0929a191ae Destroy bufmgr after allocation finish
Fixed X exit crash for me, allocation reset will
unreference bo which still requires bufmgr to be live.
2008-08-26 10:01:23 +08:00
Jesse Barnes 1c224f72d5 Fix UXA build for distcheck
Was missing proper path info in CFLAGS.
2008-08-25 16:59:03 -07:00
Jesse Barnes 8e3243b8e5 Update version to post-2.5 2008-08-25 16:37:34 -07:00
Jesse Barnes 7a5b090abc Hide kernel mode setting EXA code behind XF86DRM_MODE
Prevents compiler warnings in the non-kms case.
2008-08-21 09:40:57 -07:00
Jesse Barnes 4937b98981 Fix compiler warnings in VBIOS utils 2008-08-21 09:39:33 -07:00
Jesse Barnes 08326827fd Merge branch 'modesetting-gem' 2008-08-21 09:30:38 -07:00
Jesse Barnes 5af504166f Don't disable planes in i830_update_dsparb
We need to program DSPARB with only one plane enabled at most, and that's
guaranteed to be the case when we're called during mode set, so just assert
that case but otherwise leave the planes alone to avoid flicker on active
displays during output detection for example.

Fixes bug #17050.
2008-08-20 15:08:54 -07:00
Jesse Barnes 7b6f4d2221 Don't allocate a pipe for hotplug detection
It shouldn't be needed...
2008-08-20 14:40:29 -07:00
Jesse Barnes ba4a4b7887 Add more panel debugging info to register dump & vbios reader 2008-08-20 14:39:34 -07:00
Jesse Barnes 0de8ca3630 Merge branch 'master' into modesetting-gem
Conflicts:

	configure.ac
2008-08-20 12:11:00 -07:00