summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2009-03-16Use UXA when KMS is activeJesse Barnes
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. (cherry picked from commit 3ef9d85371a97ea5baee0c47787b3bb3cdaf5135)
2009-03-16Revert "SDVO: Switch control bus only before DDC access"Zhenyu Wang
This reverts commit ddedf19f889da2ce6d69a3afce4665e2245682fa. 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. (cherry picked from commit dc3ff0b514b609448025680778f0e95e1980a5d8)
2009-03-16SDVO: reset privates before output setupZhenyu Wang
For multifunction encoder, forget to reset these values will cause wrong output type in later mode setting operations. (cherry picked from commit c6b0135d209bdad3dbc641d0e264596eaf6f99d3)
2009-03-11Fix dist of xvmc sourcesDan Nicholson
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> (cherry picked from commit 28e7f0d71fa09e15a68ab4f0de169474b6235093)
2009-03-11SDVO: fix pixel multiplier setting for TVZhenyu Wang
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. (cherry picked from commit 2fcf4fcccfe7cfa1425985d21a144137eca07f4e)
2009-03-11Fix XV with non-GEM kernels by allocating a larger fake bufmgr.Eric Anholt
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. (cherry picked from commit fb6e00f40f713a87c760fc7603159ed11ea9b0d5)
2009-03-09Flip the update_dri_buffers test around to only run when DRI1 is active.Eric Anholt
Fixes segfaults at startup with DRI2 and load detection, or with DRI disabled entirely.
2009-03-06DRI1: Update sarea (and other information) when CRTC configuration changes.Eric Anholt
Bug #14423. Signed-off-by: Eric Anholt <eric@anholt.net>
2009-03-06Don't allocate the render power saving context in KMS mode.Eric Anholt
That would be the kernel's job if it chooses to do it. Signed-off-by: Eric Anholt <eric@anholt.net>
2009-03-06unused variable warning fix.Eric Anholt
Signed-off-by: Eric Anholt <eric@anholt.net>
2009-03-06clean up arguments to i830_allocate_framebuffer since zaphod removal.Eric Anholt
Signed-off-by: Eric Anholt <eric@anholt.net>
2009-03-06Use REGION_EQUAL in place of a local implementation.Eric Anholt
Signed-off-by: Eric Anholt <eric@anholt.net>
2009-03-06nuke unused define.Eric Anholt
Signed-off-by: Eric Anholt <eric@anholt.net>
2009-03-06Remove configurable support for disabling XV.Eric Anholt
google shows one instance of this being used a year and a half ago.
2009-03-06Remove configured SW cursor support.Eric Anholt
Any time we actually need SW cursors, it gets enabled automatically.
2009-03-06Remove StolenOnly support.Eric Anholt
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-06intel: Nuke shared-entity support (zaphod mode).Eric Anholt
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-06remove more page flipping leftovers.Eric Anholt
2009-03-06Fix another VT switch leakLukáš Hejtmánek
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-06Xv: free tearing on textured videoXiang, Haihao
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-05SDVO: handle multifunction encoder (try 2)Zhenyu Wang
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-04Fix serious memory leak at Enter/LeaveVTLukas Hejtmanek
This fixes huge memory leak at each VT switch (about 600 BOs + 6MB of RSS of Xserver).
2009-03-04Use drmSetMaster() and drmDropMaster() in enter/leave VTKristian Høgsberg
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-03SDVO: only check digital monitor when EDID existsZhenyu Wang
2009-03-03TV: add property control for TV attributesZhenyu Wang
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-03TV: add option to set TV connector typeZhenyu Wang
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-03TV: update output and crtc modes when TV format change (try 3)Zhenyu Wang
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-03TV: sort input mode linesZhenyu Wang
2009-03-02KMS: Wire up output DPMS.Adam Jackson
2009-03-02Skip LVDS config parsing on pre-9xx chips.Zhenyu Wang
855GM laptops seems pretty broken when parsing this block.
2009-03-02Update driver feature block definition for missed fieldsZhenyu Wang
2009-02-28warnings cleanupEric Anholt
2009-02-27Only allocate pixmaps aligned for tiling when requested by DRI2 GetBuffers.Eric Anholt
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-26Intel video driver patchShaohua Li
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-26Fix UXA for server 1.4.Eric Anholt
2009-02-26Regard the screen pixmap as suitable for acceleration.Eric Anholt
With UXA on the fake bufmgr, the screen pixmap doesn't have a BO and so no acceleration was occurring.
2009-02-26Disable fb resizing for DRI1-only server so that DRI1 can initialize.Eric Anholt
2009-02-26Fix up i915 composite and common solid/copy code to use check_aperture.Eric Anholt
This could fix complaints about binding BOs and resulting failure to render.
2009-02-25XvMC: fix broken xvmc on 965Xiang, Haihao
2009-02-25Use LVDS config in Driver feature BDB for integrated LVDS checkZhenyu Wang
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-25Update LVDS config bits definition in driver feature blockZhenyu Wang
ALL_LVDS is actually not defined before and include GM45. Embedded DP bit will be used for newer chips.
2009-02-24Fix distcheck from drmmode_display.h deletion.Eric Anholt
2009-02-24Don't do AdjustFrame in KMS mode.Eric Anholt
This was hit by xv86vm's SwitchMode path, and for that the CRTC offsets get set at mode setting time anyway.
2009-02-24Remove a handful of unused variable warnings.Kristian Høgsberg
2009-02-24Update kms to work with drmModeModeInfo API update.Kristian Høgsberg
2009-02-24Limit CRT DAC speed better.Adam Jackson
Verified against the public docs for i8xx parts, although not 9xx yet.
2009-02-23Revert "Limit CRT DAC speed better."Keith Packard
This reverts commit 8fd0e46571c7ba15c05f0a759113f8ca842c76a2. This doesn't even build. Please try again.
2009-02-23Limit CRT DAC speed better.Adam Jackson
Verified against the public docs for i8xx parts, although not 9xx yet.
2009-02-23KMS: Fix bug that prevented EDID data from getting propagated.Kristian Høgsberg
2009-02-23Use stat() and the dev_t to find the drm device filename.Kristian Høgsberg
Simpler and more robust. Works when we haven't set the device PCI ID, ie when not going through the legacy DRI module.