summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2008-06-17Add support for Intel 4 series chipsets.Zhenyu Wang
2008-06-17Fix compiling with server master in LVDS backlight patchZhenyu Wang
2008-06-16Fix compiler warning when disable xvmc configZhenyu Wang
(cherry picked from commit df0bbdc7cbb6ff357a81ed28d12e56c9c7d643f7)
2008-06-16Fix typo in xvmc block destroyShuang He
(cherry picked from commit 87ace420a34df7425641d089f71830e44fced098)
2008-06-16Fix maximum backlight issueLukas Hejtmanek
2008-06-10Set up/restore PWRCTXA from enter/leavevt not server start/exit.Eric Anholt
This should improve behavior in the presence of VT switching, but also avoids a crash on X exit from writing the register after unmapping mmio.
2008-06-10Two more Dell quirksBryce Harrington
fd.o #16160
2008-06-09Fix TV programming: add vblank wait after TV_CTL writesJesse Barnes
Fxies FDO bug #14000; we need to wait for vblank after writing TV_CTL or followi ng "DPMS on" calls may not actually enable the output.
2008-06-05Fix TV out connection type detectionRobert Lowery
Make sure we wait for vblank when using the TV DAC to detect the connection type. Fixes FDO bug #14000.
2008-06-06Fix compile error in LeaveVTTomas Carnecky
2008-06-05Move debug clock printout from ErrorF to X_INFO.Eric Anholt
2008-06-05Remove SVG_WORK_CONTROL init.Eric Anholt
The bit set is now reserved -- used to be a workaround for early revisions.
2008-06-05Initialize clock gating from EnterVT and save/restore it appropriately.Eric Anholt
2008-06-05Move BIOS scratch register setup to EnterVT instead of PreInit.Eric Anholt
We want these to always be set when our driver's in control. They are already appropriately save/restored at leave/entervt.
2008-06-05Remove gratuitous wait_ring_idle after I830Sync. Syncing implies that.Eric Anholt
2008-06-05Move the remaining two lines of SetHWOperatingState to the caller.Eric Anholt
2008-06-05Remove duplicated i830_stop_ring()/SetHWOperatingState() in EnterVT().Eric Anholt
2008-06-05Move DSPARB setup into a separate function, and save/restore it at VT switch.Eric Anholt
2008-06-05Replace a couple of wait-for-ring-idles with a single function to do so.Eric Anholt
2008-06-05Just remove the mprotect kludge.Eric Anholt
Besides not being #ifdef __linux__ed as requested, some linux kernels break in exciting new ways when you try to mprotect from PROT_NONE back to PROT_READ|PROT_WRITE. Yes, there are bugs in the code we're calling in a bug-exploiting bug workaround. If you want this workaround for the original bug exposed when moving to libpciaccess, it's already in libpciaccess.
2008-06-04Set SDVO sync polarity to default on 965Hong Liu
Fix fd.o bug 15766
2008-06-04Fix DSPARB change on 965GHong Liu
From the spec, only 965GM and IGD_GM have 128 FIFO entries. With DSPARB change introduced by commit bd137a, I've got PIPE B underrun when dual-headed on G35 platform.
2008-06-04xvmc: add render dump functionZhenyu Wang
2008-06-04xvmc: move block size lookup helper to genericZhenyu Wang
2008-06-03xvmc: a little cleanupZhenyu Wang
Also safe check context size to not exceed surface max.
2008-06-03xvmc: remove unused dri drawableZhenyu Wang
2008-05-28Fixup DSPARB for 855 & 945Jesse Barnes
It turns out 855 has a different DSPARB layout than 915+. And 945+ have more FIFO entries, so we have to allocate things differently. So on 855 split the FIFO evenly again between A & B planes, and do the same on 945, where we have a larger FIFO. Fixes an issue reported by Daniel Stone with the previous default value.
2008-05-26Fixup FIFO commentJesse Barnes
What I originally checked in was a bit misleading.
2008-05-26Handle display FIFOs betterJesse Barnes
Add some debug code to catch FIFO underruns, which are normally bugs (unless they occur during mode setting) and remove any plane C FIFO allocations, since we don't use that plane at all. We may eventually need to be a little smarter about this on platforms that use plane C for the popup.
2008-05-26Fixup power saving registersJesse Barnes
Update clock gating disable bits to match docs and allocate a power context memory area so that newer chips can save state and power down the render unit.
2008-05-21Define DEFFILEMODE for OS'es that don't have itAlan Coopersmith
2008-05-21Revert "Disable FBC by default on 965GM"Jesse Barnes
This reverts commit 53e3693ef13f31f3fc33bcff7286ab2b03b2d430. Conflicts: src/i830_driver.c - default FBC on for 965+
2008-05-20Revert "Add FIFO watermark regs to register dumper"Zhenyu Wang
This reverts commit 0c00a638ef57aa9d6a3047176b0bfad733f781f0. Those FIFO watermark regs are 945-ish, and cause problem on G35.
2008-05-14Add glproto to DRI dependenciesRĂ©mi Cardona
2008-05-13Formatting fixes for intel_idle.Eric Anholt
2008-05-13Add i915 support to intel_idle.Eric Anholt
2008-05-12Panel fitting: fix letterbox modesJesse Barnes
In full_aspect mode, we try to preserve the aspect ratio by adding either top & bottom or left & right borders. In the letterbox case (top & bottom borders) we were miscalculating the top border which led to programming a bad mode. Fix the calculation and bug #15559.
2008-05-12Revert last HP 965GM pipe A quirkZhenyu Wang
Seems not resolve the issue (fdo bug #15885).
2008-05-10More Pipe A force quirksBryce Harrington
2008-05-08Fix i965 render getting dest format errorZhenyu Wang
Depend on value returned by function within assert is wrong. Fixed weird render corrupt on i965.
2008-05-08Implement option to ignore external fixed mode settingsMike Isely
The Intel xorg driver tries mightily to determine the native fixed panel mode settings for the LVDS output. It does this through various means, including scanning video BIOS tables, and noticing if the pipe in question has already been set up by somebody else (and adopting those timings). This strategy works well for say a laptop where the LCD panel is an integral part of the machine. But for other applications where the display is unrelated to the system's BIOS or other software, then the BIOS will likely have no clue how to configure the LVDS output. Worse still, the BIOS can simply "get it wrong", leaving the pipe misconfigured. Unfortunately the Intel driver can potentially notice this, adopt the same settings, leaving a messed up display. All of this complexity normally happens independently, behind the scenes, from the mode timings that might otherwise be specified by the user. This driver has a concept of fixed, i.e. "native" mode, and then user-specified mode. If the corresponding resolutions between those concepts don't match, then the driver in theory will arrange for scaling to take place while adhering to the actual native mode of the panel. Said another way, if the user says 800x600 but the driver mistakenly (see above) thinks the native mode is 640x480, then 640x480 is the mode set with scaling to an 800x600 frame buffer. If the driver gets the wrong native mode, then the result is a miserable mess with no way for the user to override what the driver thinks is right. This patch provides a means to override the driver. This implements a new driver option, "LVDSFixedMode" which defaults to true (the normal, probe-what-I-need behavior). However when set to false, then all the guessing is skipped and the driver will assume no fixed, i.e. "native" mode for the display device. Instead with this option set to false, the driver will directly set the timings specified by the user, providing an escape hatch for situations where the driver can't correctly figure out the right mode. Under most scenarios of course, this option should not be needed. But in situations where the Intel video BIOS is hopelessly fouled up related to the LVDS output, this option provides the escape hatch for the user to get a working display in spite of the BIOS situation. Signed-off-by: Mike Isely <isely@pobox.com>
2008-05-07Save/restore cursor registersJesse Barnes
There are lots of good reasons for doing this, one of them is fdo bug #11305.
2008-05-07Use I830FALLBACK when check pitch for debugZhenyu Wang
2008-05-07Check pitch for EXA operationZhenyu Wang
2D pitch limit applys to all chips. Pre-965 chip has 8KB pitch limit for 3D. 965 supports max pitch by current exa (128KB). (cherry picked from commit 8187a5a16f8bd8f0ba5e7f5357f355928b3b8f07)
2008-05-06Bug #15807: Fix use of the ring while VT-switched, hit by fast user switching.Eric Anholt
The fix for flushing at blockhandler with no DRI on 965 was broken and would try to flush the chip even when the driver wasn't in control of the VT. Hilarity ensued.
2008-05-06Add FIFO watermark regs to register dumperJesse Barnes
2008-05-06Only check xvmc lib when xvmc is enabled.Zhenyu Wang
Don't check xvmc lib if user has already wanted to disable it. Fix fdo bug #15762.
2008-05-06More quirks from ubuntu/dellBryce Harrington
2008-04-29Add a new quirk for BIOSes that reprogram regs at lid close/open timeJesse Barnes
Dell Latitude D500s seem to have this problem. At lid close/open, the DSPABASE reg gets reset to 0, so we either need to keep the framebuffer at offset 0 or make sure we reprogram the CRTCs after the lid opens again. Since we can't make sure the former is always true (buffer resize, etc.), this patch adds a quirk to reset the modes at lid open time. Fixes FDO bug #14890.
2008-04-29Use new xf86RotateFreeShadow function to clean up shadow buffers.Keith Packard
This simply moves code from the driver up into the X server; use it where available.