Commit Graph

2264 Commits

Author SHA1 Message Date
Ma Ling 85e6b52858 Set SSC frequency for 8xx chips correctly
All 8xx class chips have the 66/48 split, not just 855.

Fixes #18358.
2009-03-19 09:10:19 -07:00
Jesse Barnes bedc894a56 Re-enable disabled outputs after rotation
The server may have made a DPMS call before doing rotation, so after we
do the mode set with the rotated framebuffer, we need to re-enable the
corresponding output(s).

Fixes bug #20573.
2009-03-18 20:19:44 -07:00
Jesse Barnes 6deb26ae7b Create known output configuration at EnterVT time
Since we added the pipe A force quirk (leaving pipe A on all the time),
DPMS calls to disable it have silently returned, leaving the pipe on.
If another driver (like vesafb) has enabled it, we may end up with a bad
configuration, leading to hangs or blank screens at VT switch time.

Fixes bug #19603.
2009-03-18 09:36:58 -07:00
Ma Ling 7c94227dd4 Use best PLL timing values for G4X platform
construct function to find precise parameters from internal spreadsheet
table on G4X platform.

Signed-off-by: Ma Ling <ling.ma@intel.com>
2009-03-17 10:41:38 +08:00
Ma Ling 48db5bde92 Define documented PLL timing limits for G4X platform
These timings on G4X platform were specified by internal spreadsheet from the chipset group.

Signed-off-by: Ma Ling <ling.ma@intel.com>
2009-03-17 10:41:02 +08:00
Keith Packard 78a60e1b66 Revert EXA_DRIVER_KNOWN_MAJOR bump
This was mistakenly added in the unrelated change in revision
fe08b81d0f
2009-03-16 08:41:52 -07:00
Zhenyu Wang 1a6e70cd98 TV: fix contrast and saturation for 945G
Bug #20670.
2009-03-16 15:42:50 +08:00
Zhenyu Wang 4e95327323 TV: force TV as connected with TV_Connector option
In order to bypass failure in TV load detect, TV_Connector option
will always force TV as connected with user specified connector type.
2009-03-16 15:15:26 +08:00
Eric Anholt e0aba04da0 Add DCC register dumping. 2009-03-13 16:15:44 -07:00
Eric Anholt a57814cc13 Add dumping of 915 and 945 fence registers.
The debug dumper functions can now return NULL to indicate no output, so
we get appropriate results on 915, 945, and 965.
2009-03-13 16:15:44 -07:00
Eric Anholt 8166a7ff5c Add PGETBL_CTL to the debug output.
It's nice to know when it gets stomped on.
2009-03-13 16:15:44 -07:00
Keith Packard fe08b81d0f Use CopyArea to load glyphs from per-glyph pixmap to cache pixmap
With glyphs sitting in per-glyph pixmaps, there's no reason to use the CPU
to move them to the cache pixmap, and lots of reasons to use the accelerator.

Signed-off-by: Keith Packard <keithp@keithp.com>
2009-03-13 15:03:38 -07:00
Kalev Lember 2026c57cf0 Fix Xv crash with overlay video.
Bug #20585.
2009-03-13 16:01:43 -04:00
Jesse Barnes 3ef9d85371 Use UXA when KMS is active
EXA doesn't support KMS, so force UXA on if KMS is detected.  And warn
the user if they've specified something other than UXA in their
xorg.conf.

Fixes bug #20620.
2009-03-13 12:21:34 -07:00
Zhenyu Wang dc3ff0b514 Revert "SDVO: Switch control bus only before DDC access"
This reverts commit ddedf19f88.

After i2c STOP, control bus will return back to internal
registers. So this brings back to origin code that we switch
to DDC bus before START. But it's ideal to only issue DDC
bus switch after STOP, not before every START, which might eliminate
some complains from SDVO device, that will be another patch later.
2009-03-12 16:32:02 +08:00
Zhenyu Wang c6b0135d20 SDVO: reset privates before output setup
For multifunction encoder, forget to reset these values
will cause wrong output type in later mode setting
operations.
2009-03-12 16:31:01 +08:00
Dan Nicholson 28e7f0d71f Fix dist of xvmc sources
The XVMC AM_CONDITIONAL is only needed around the library expression.
None of the other definitons will cause anything to be built without
libXvMC, but they're needed for 'make dist'.

Signed-off-by: Dan Nicholson <dbn.lists@gmail.com>
2009-03-11 15:41:16 -07:00
Kristian Høgsberg 73db44e7ac Drop Legacy3D option, only use fixed texture space with non-gem.
With this change, we always expect the 3D driver to use GEM textures
when the 2D driver uses GEM.  When GEM is not available or disabled,
we fall back to legacy fixed textures.
2009-03-11 11:36:57 -04:00
Zhenyu Wang 2fcf4fcccf SDVO: fix pixel multiplier setting for TV
We should use preferred input timing's clock for correct
pixel multiplier setting, otherwise we might get inconsistent
multiplier setting on pipe and SDVO device for some modes.
2009-03-10 14:21:36 +08:00
Eric Anholt fb6e00f40f Fix XV with non-GEM kernels by allocating a larger fake bufmgr.
Ideally we'd not be using the EXA offscreen memory manager and just hand all
that memory to the fake bufmgr for non-GEM, but the fake bufmgr's too slow for
that, at least currently.  So compromise and take enough memory that it will
succeed at XV allocations but hopefully not anger tiny-aperture systems too
much.

Bug #20563.
2009-03-09 20:06:30 -07:00
Eric Anholt dc12c4b3eb Flip the update_dri_buffers test around to only run when DRI1 is active.
Fixes segfaults at startup with DRI2 and load detection, or with DRI disabled
entirely.
2009-03-09 12:51:29 -07:00
Eric Anholt 73aa23d915 DRI1: Update sarea (and other information) when CRTC configuration changes.
Bug #14423.

Signed-off-by: Eric Anholt <eric@anholt.net>
2009-03-06 14:49:31 -08:00
Eric Anholt 568297d327 Don't allocate the render power saving context in KMS mode.
That would be the kernel's job if it chooses to do it.

Signed-off-by: Eric Anholt <eric@anholt.net>
2009-03-06 14:34:19 -08:00
Eric Anholt 4e11441084 unused variable warning fix.
Signed-off-by: Eric Anholt <eric@anholt.net>
2009-03-06 14:32:04 -08:00
Eric Anholt 043a76a040 clean up arguments to i830_allocate_framebuffer since zaphod removal.
Signed-off-by: Eric Anholt <eric@anholt.net>
2009-03-06 14:31:59 -08:00
Eric Anholt b23f57b310 Use REGION_EQUAL in place of a local implementation.
Signed-off-by: Eric Anholt <eric@anholt.net>
2009-03-06 13:56:16 -08:00
Eric Anholt 6b61f9945f nuke unused define.
Signed-off-by: Eric Anholt <eric@anholt.net>
2009-03-06 13:56:09 -08:00
Eric Anholt d2af21a66d Remove configurable support for disabling XV.
google shows one instance of this being used a year and a half ago.
2009-03-06 13:29:09 -08:00
Eric Anholt 755757669f Remove configured SW cursor support.
Any time we actually need SW cursors, it gets enabled automatically.
2009-03-06 13:26:10 -08:00
Eric Anholt 917b20ead3 Remove StolenOnly support.
We rely on having AGPGART present to successfully allocate video memory as
we configure it by default.  Admit that fact, and remove support for
non-AGPGART/KMS setups.
2009-03-06 13:26:10 -08:00
Eric Anholt 73b7190421 intel: Nuke shared-entity support (zaphod mode).
It's been broken for years now, and KMS offers a much better chance of getting
this working sensibly without making a mess of the 2D driver.
2009-03-06 13:26:10 -08:00
Eric Anholt e9d6bbbe0b remove more page flipping leftovers. 2009-03-06 13:25:45 -08:00
Lukáš Hejtmánek 1cc9b1423c Fix another VT switch leak
The batch_bo buffer object is reallocated on enter VT, so we need to
unref it on leave vt.

Signed-off-by: Lukas Hejtmanek <xhejtman@ics.muni.cz>
2009-03-06 14:44:03 -05:00
Xiang, Haihao 67fef27f4b Xv: free tearing on textured video
Add an Xv attribute XV_SYNC_TO_VBLANK which has three values -1(auto), 0(off)
and 1(on) to control whether textured adapter synchronizes the screen
update to the vblank. The default value is -1(auto).
2009-03-06 09:40:07 +08:00
Zhenyu Wang 0d20bbbc20 SDVO: handle multifunction encoder (try 2)
For SDVO encoder that advertise multiple functions,
we have to get attached display to determine current
output, and update output's name according with
current type.
2009-03-05 14:40:13 +08:00
Lukas Hejtmanek d4c64f01b9 Fix serious memory leak at Enter/LeaveVT
This fixes huge memory leak at each VT switch (about 600 BOs + 6MB
of RSS of Xserver).
2009-03-04 17:33:27 -05:00
Kristian Høgsberg 095a001f75 Use drmSetMaster() and drmDropMaster() in enter/leave VT
This allows multiple X server to use DRI and makes it possible to run
multiple X servers under KMS.  This requires a 2.6.29 kernel to work.
On older kernels it will just log a warning and DRI will fail to
initialize for the second X server.
2009-03-04 17:10:28 -05:00
Zhenyu Wang 14bb61e0c2 SDVO: only check digital monitor when EDID exists 2009-03-03 14:17:50 +08:00
Zhenyu Wang 42e34e90e2 TV: add property control for TV attributes
This is based on Jesse's origin patch for bug #12763.
But export integer range to user instead of hardware float
point format, and fix different real format on 965G and 945G
for contrast and saturation.
2009-03-03 22:55:35 +08:00
Zhenyu Wang aa9da5e393 TV: add option to set TV connector type
This can let user override non-stable driver TV load detect,
and set connector type manually, e.g for s-video to component
converter, this patch seems must needed to use HD modes.
2009-03-03 20:43:39 +08:00
Zhenyu Wang ab1ef05cc0 TV: update output and crtc modes when TV format change (try 3)
This is to fix bug #16566, change TV format will cause BadMatch
error when crtc config apply. Everytime when we change TV format,
we may generate a new list of modelines as TV clock changed. After
randr get info request, new modelines will be probed and randr output's
modes will be renewed too. But crtc's mode failed to be updated,
as it never can find a matching mode now within new modes list.
So get info will return an invalid crtc's mode, later set crtc
config will pass that info, and xserver catches a bad match.

This patch trys to refresh output modes and setup crtc's mode
with new modelines in TV format change. So get info would be
sure to turn valid crtc mode that reference in current new modelines.
2009-03-03 20:43:39 +08:00
Zhenyu Wang a67a911a93 TV: sort input mode lines 2009-03-03 20:43:39 +08:00
Adam Jackson bd360e7517 KMS: Wire up output DPMS. 2009-03-02 10:34:41 -05:00
Zhenyu Wang 2d0aa55360 Skip LVDS config parsing on pre-9xx chips.
855GM laptops seems pretty broken when parsing this block.
2009-03-02 15:26:44 +08:00
Zhenyu Wang 55359ef9ab Update driver feature block definition for missed fields 2009-03-02 15:20:27 +08:00
Eric Anholt 38a7683561 warnings cleanup 2009-02-28 00:51:14 -08:00
Eric Anholt 5bfd73cd31 Only allocate pixmaps aligned for tiling when requested by DRI2 GetBuffers.
This saves massive quantities of memory on pre-965 since the DRI2 tiling
enable caused the minimum size of any pixmap to be 1MB.
2009-02-27 19:09:49 -08:00
Shaohua Li f53bdad141 Intel video driver patch
This is the intel video driver patch for a new chip, which is G33-like
and has some clocking setting related register changes. This patch adds
the pci id and DPLx/FPx register changes.

The gtt tool should just work to me, as the chip hasn't any changes
against G33 on this side.

Signed-off-by: Shaohua Li <shaohua.li@intel.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
2009-02-26 14:47:04 -08:00
Eric Anholt 22dc9a5580 Fix UXA for server 1.4. 2009-02-26 14:20:42 -08:00
Eric Anholt 635eaa511f Regard the screen pixmap as suitable for acceleration.
With UXA on the fake bufmgr, the screen pixmap doesn't have a BO and so
no acceleration was occurring.
2009-02-26 14:20:42 -08:00