Commit Graph

2406 Commits

Author SHA1 Message Date
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
Xiang, Haihao 646e12a978 typo in intel.man 2009-03-09 10:59:36 +08: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 abb213d933 Document the UXA AccelMethod.
Signed-off-by: Eric Anholt <eric@anholt.net>
2009-03-06 14:34:24 -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
Dan Nicholson c3a747cb54 man: Put option defaults on separate indented line
The groff .IP macro is used to put the option defaults in a new indented
paragraph so they are separated from the explanations.

Signed-off-by: Dan Nicholson <dbn.lists@gmail.com>
[anholt: hand-applied due to conflicts.  mistakes are my own]
Signed-off-by: Eric Anholt <eric@anholt.net>
2009-03-06 13:39:14 -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 cb1f7ec087 uxa: Fix composite fallback debug printing of main memory versus bo info.
It was just printing whether it was a pixmap (it is), instead of whether the
pixmap was offscreen.
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
Eric Anholt 70e0261208 Disable fb resizing for DRI1-only server so that DRI1 can initialize. 2009-02-26 14:20:42 -08:00
Eric Anholt d7aa330db3 Fix up i915 composite and common solid/copy code to use check_aperture.
This could fix complaints about binding BOs and resulting failure to render.
2009-02-26 14:20:42 -08:00
Xiang, Haihao a625a07022 XvMC: fix broken xvmc on 965 2009-02-25 16:48:22 +08:00
Zhenyu Wang f6d8ae69b0 Use LVDS config in Driver feature BDB for integrated LVDS check
The LVDS config bits in VBT driver feature block is used by vendor
to identify the board implement of integrated LVDS/eDP or SDVO LVDS.
And video bios uses these bits for LVDS enabling or not. So check
these bits for integrated LVDS might eliminate more quirks.
2009-02-25 09:57:00 +08:00
Zhenyu Wang 8718551f14 Update LVDS config bits definition in driver feature block
ALL_LVDS is actually not defined before and include GM45.
Embedded DP bit will be used for newer chips.
2009-02-25 09:54:03 +08:00
Eric Anholt 9d8e5c21a1 Fix distcheck from drmmode_display.h deletion. 2009-02-24 14:07:08 -08:00
Eric Anholt f4e2f522a5 Don't do AdjustFrame in KMS mode.
This was hit by xv86vm's SwitchMode path, and for that the CRTC offsets
get set at mode setting time anyway.
2009-02-24 14:07:08 -08:00
Kristian Høgsberg 170f00e161 Remove a handful of unused variable warnings. 2009-02-24 14:13:04 -05:00
Kristian Høgsberg a6b31f38eb Update kms to work with drmModeModeInfo API update. 2009-02-24 14:13:01 -05:00
Adam Jackson 13ee9402e9 Limit CRT DAC speed better.
Verified against the public docs for i8xx parts, although not 9xx yet.
2009-02-24 11:59:57 -05:00
Keith Packard 668b2352a4 Revert "Limit CRT DAC speed better."
This reverts commit 8fd0e46571.

This doesn't even build. Please try again.
2009-02-23 13:31:51 -08:00
Adam Jackson 8fd0e46571 Limit CRT DAC speed better.
Verified against the public docs for i8xx parts, although not 9xx yet.
2009-02-23 15:46:25 -05:00
Kristian Høgsberg 73bc7f1139 KMS: Fix bug that prevented EDID data from getting propagated. 2009-02-23 15:16:51 -05:00
Kristian Høgsberg ef95276055 Use stat() and the dev_t to find the drm device filename.
Simpler and more robust.  Works when we haven't set the device PCI ID,
ie when not going through the legacy DRI module.
2009-02-23 15:14:56 -05:00