Commit Graph

1510 Commits

Author SHA1 Message Date
Eric Anholt 9a62d3b598 Remove i830+ driver's use of CARD*/INT* types for great justice.
Several uses are actually left, which are determined by the X Server
interfaces we're implementing.
2008-03-11 12:07:52 -07:00
Eric Anholt 15f17aa682 Cleanse DVO drivers of CARD* types. 2008-03-11 11:27:10 -07:00
Eric Anholt 642ba62788 Add support for brightness control to i915 textured video output. 2008-03-11 11:16:17 -07:00
Jesse Barnes ecdb5963ef Add pipe A force enable quirk for Toshiba Portege R205-S209
Fixes #14944.
2008-03-11 11:08:25 -07:00
Kristian Høgsberg 4ea67e9b85 Crack down on warnings.
Fix printf formatting warnings, wrap a couple of long lines, nuke
unused variables, add missing #include <unistd.h>.
2008-03-11 13:54:59 -04:00
Kristian Høgsberg 9fd13e6773 Silence warnings about possible uninitialize use of dst_format.
Whoa, gcc got a lot smarter about warnings.  If iXXX_get_dest_format()
doesn't support the picture format passed in it won't initialize the
uint32_t pointed to by dst_format and return FALSE.

What gcc now can detect is if dst_format is used without checking the
return value, it might be used uninitialized.  This patch makes sure
we always check the return value before using dst_format.
2008-03-11 13:48:07 -04:00
Jesse Barnes 02c0ffb1d8 Add pipe A force enable quirk for Dell Latitude D500
Fixes #14888.
2008-03-10 11:51:37 -07:00
Dave Airlie a1cd37f94c quirk: add DVO ivch quirk 2008-03-10 14:45:11 +10:00
Eric Anholt bf6d59ee98 Avoid setting reserved bits in SDVOx on everything 965-class.
This will likely fix SDVO outputs on G35 hardware.
2008-03-07 14:34:50 -08:00
Jesse Barnes 5915c75422 Enable hardware overlay on 965
Based on Maxim Levitsky's patch for the same.  Many thanks to Maxim for
discovering that this features still works in recent hardware!
2008-03-07 13:18:09 -08:00
Jesse Barnes be08b61540 Implement new get_property feature for backlight control
This should keep the backlight value reported by xrandr --prop & xbacklight
consistent with changes by other software in the system (like the hotkey driver
or kernel backlight driver).
2008-03-06 13:58:07 -08:00
Zhenyu Wang 502e41f6df remove extra dri checking
And directRenderingDisabled already has config check result.
2008-03-06 19:32:29 +08:00
Zhenyu Wang ea58d66cf7 No ring, no sync 2008-03-06 19:31:33 +08:00
Jesse Barnes c823fb00a2 Pull chipset detection out of PreInit into its own function 2008-03-06 19:29:22 +08:00
Jesse Barnes 6b16cee078 Account for FBC LL cache in memory reservation
When we reserve memory (memory that won't be managed by the kernel) make
sure to reserve space for the FBC LL cache as well.
2008-03-06 19:27:42 +08:00
Jesse Barnes 6f04d02471 Move MTRR fixup to its own routine 2008-03-06 19:27:07 +08:00
Jesse Barnes 750beb9232 Refactor memory allocation into a separate function
This simplifies the memory allocation code and fixes a number of bugs.
Prior to this change, some flags may have been set after memory
allocation occurred, meaning they had no effect.  It should also make
the allocation logic clearer.
2008-03-06 19:24:47 +08:00
Zhenyu Wang d466b25d09 Really print adjusted_mode for mode debug 2008-03-05 13:39:08 +08:00
Hong Liu d767eabe53 Fix DPLL programming in CRTC mode set
The following patch fixes the display problem on internal development machines.
The code in commit 3c22ed633b (Jesse's force pipe
A enable patch) broke DPLL programming.  Moving the DPLL set back up in the
function solves the problem.

Fix for internal bug #309.
2008-03-04 13:28:50 -08:00
Jesse Barnes 4936e09702 Change FBC idle mode back to default
Use the "immediate idle" mode for FBC.  Rather than waiting for the current
compression pass to finish before signalling to the CPU that it's idle, this
mode should stop any current compression pass and tell the CPU that the GPU is
idle right away.

Seems to fix #13326.
2008-03-04 08:59:23 -08:00
Zhenyu Wang 02a3b80ee8 Bug 14591: comment out MI_DISPLAY_POWER_DOWN as for 965GM only 2008-02-29 13:36:59 +08:00
Peng Li ea7c7d088e HP Compaq 6730s has no TV output 2008-02-27 11:56:55 +08:00
Mark Kettenis fdc25cb0ca Bug #14649: Fix build if pciaccess headers are not with other xorg headers.
We failed to include the pciaccess header flags in our build.  Even if the
server was to include those flags for us, it would leave us broken for the
tools-only case, and it's easier to just put the flags everywhere so we avoid
future copy'n'paste mistakes.
2008-02-26 17:26:50 -08:00
Eric Anholt e55d86f654 Fix SDVO I2C access on Mac Mini in EFI mode.
The GMBUS was being left in SDVO pin access mode, which blocked our bit-banging
access to those pins.  Thanks to Peter Jones for quick debugging turnaround
in getting this fixed.
2008-02-26 13:25:20 -08:00
Zhenyu Wang 66cdccb021 Fix overlay rotation
Track current covered crtc rotation in port's private,
and fix overlay rotation transform to be against crtc mode
coordinate.
2008-02-25 14:29:09 +08:00
Jesse Barnes 975d7833bc Add quirk for DVO channel selection
Some machines want DVOA, some DVOB.  We can use this quirk to differentiate
them until we come up with a better solution.  Patch from Hong Liu.

Fixes #13722.
2008-02-22 11:41:25 -08:00
Jesse Barnes 33802b6ee3 Add pipe A force enable quirk for ThinkPad X40
ThinkPad X40s need this quirk or they'll crash frequently.

Fixes #14521.
2008-02-21 08:43:34 -08:00
Jesse Barnes 444984a578 Remove side effects from VGA debug code
The VGA register dumping code was leaving ARX in data mode rather than index
mode, which could cause problems for later software accessing AR* registers.
Fix it to make sure it's in index mode when we're done.

Fixes #14434.
2008-02-21 08:37:42 -08:00
Jesse Barnes 28049540d8 Fix DSP*CNTR restoration
When checking which pipe a given plane was associated with, we weren't properly
masking the pipe selection bits.  Fixes #14481 and should allow the driver to
work with vesafb again.
2008-02-20 13:08:27 -08:00
Zhenyu Wang 293120bfc4 Don't leak memory if no DMI info is provided by kernel 2008-02-19 21:13:45 +08:00
Zhenyu Wang cdc5cb7c3d Fix last 8XX clock's p2 value commit
My fault to change Hong's origin patch reversely.
2008-02-19 08:51:53 +08:00
Zhenyu Wang be0591880f Fix Lenovo X60 TV quirk
Z61 has same subsys ids with X60, but does have one S-video
TV out. Use DMI info instead to quirk TV on X60, X60s.
2008-02-18 14:35:06 +08:00
Zhenyu Wang d5e564c5f2 Add DMI info for i830 quirks
Linux kernel has CONFIG_DMIID to export dmi info
through sysfs.
2008-02-18 14:32:32 +08:00
Keith Packard 4a42b01f5e Decode DSPCLK_GATE, dump PIPE*STAT, MI_MODE, MI_DISPLAY_POWER_DOWN, MI_ARB_STATE, MI_RDRET_STATE, ECOSKPD 2008-02-16 18:16:37 -08:00
Zhenyu Wang 6633135598 Bug #14440: fix stolen mem size mask on i830M
For i830M stolen mem size mask should always be 0x70.
Use 0xF0 for later chipsets should be ok, so behavior is
identical to kernel agp.
2008-02-15 13:20:22 +08:00
Eric Anholt 8c8ca16120 Add a little program to output the stepping information for several chipsets. 2008-02-08 11:54:49 -08:00
Jesse Barnes f5896dcd1f Add CACHE_MODE_0 register to dump output 2008-02-07 11:56:28 -08:00
Jesse Barnes d59eaa8b1e Only disable FBC if registers are available
The call to disable FBC should only occur if the FBC feature is actually
present or we may end up hanging on a read from a non-existent register.
2008-02-06 09:35:43 -08:00
Jesse Barnes 83a071e2c0 Fix build warnings on 64 bit
Use PRIx32 for printing CARD32 types, and PRIx64 for portably printing uint64_t
types.  Requires the addition of a new include, inttypes.h, to work.  Hope C99
is ok with everybody...
2008-02-05 17:09:19 -08:00
Jesse Barnes abf4b0cafa Only enable FBC if one pipe is active
Some chips can't support FBC if multiple pipes are active.  So if more than one
pipe is on or we're going from one->two pipes enabled, make sure FBC is
disabled.

Intended to fix 13418, 13326, 13152.
2008-02-05 13:30:51 -08:00
liuhong f79a585d57 xf86-video-intel: fix ivch using wrong dvo register
We use the wrong DVO output register for ivch which is used for DVO LVDS.
Vbios enables DVOB and driver never touches it, so everything seems
working correctly now.
2008-02-05 13:06:58 -08:00
Jesse Barnes cabed67b6a Program FBC fence offset register
Just a partial fix for some of the FBC issues people have been seeing.  The
other half is to disable FBC if both pipes are running.
2008-02-05 11:36:24 -08:00
Zhenyu Wang 332587081f Fix last commit on i8xx debug p2 value 2008-02-05 10:34:55 +08:00
Hong Liu 2d18a299cf Fix PLL reference clk debug dump 2008-02-05 09:10:48 +08:00
Hong Liu 9536515d77 Allow non-strict free order for bo_list 2008-02-05 09:06:14 +08:00
Hong Liu 11de831cb7 Bug 10584: Mac Mini EDID data assigned to TMDS output
EDID data for TMDS output got from crt should be applied
to TMDS output on mac mini.
2008-02-05 08:58:44 +08:00
Hong Liu 9532757113 Bug 10773: fix i8xx pll p2 value in i830_crtc_clock_get()
Also fix debug dump, slightly modified to use macro instead.
2008-02-04 17:14:23 +08:00
Paulo Cesar Pereira de Andrade be1b568bc2 Make sure symbols used by other modules are public.
These symbols must be explicitly exported, otherwise if compiled with
hidden symbols, LoaderSymbol (and dlopen) will fail to find them.
2008-02-01 16:28:14 -08:00
Mark Kettenis cc1031a834 Bug #14246: Fix biuld on OpenBSD. 2008-01-31 21:02:48 -08:00
Eric Anholt b1e1c7cd99 Add detail on different units to intel_idle. 2008-01-30 23:09:50 -08:00