summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2009-03-31Match GTT unmap with map in KMS rotation caseJesse Barnes
Missed this when the GTT unmap call was added. If we don't do this we trigger an assertion in libdrm, since the buffer has never been mapped normally. Fixes bug #20943. Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org> (cherry picked from commit 087f72e1f5d7d11b8795ba80a842874f5a9bb01d)
2009-03-31Disable LVDS detect methodsZhenyu Wang
Both methods ACPI lid and SWF bit have issues in LVDS detect from wider testing. Fallback to origin code. (cherry picked from commit 4f046af760b92c07f59664359453933fb5358e3d)
2009-03-31Non-GEM allocations incorrectly force TILE_NONE (bug 20797)Albert Damen
With -intel 2.6.3 performance was very bad when using a non gem enabled kernel (2.6.27) and EXA. For example sauerbraten ran with 4 fps and screensaver GLBlur with 1 fps. With -intel 2.6.1 performance was good using the same kernel. Git bisecting led me to commit f1ed73c1ef3e3daa9f695194dcc813167cbcb53d (in 2.6 branch) "Make i830_allocate_memory take tiling parameters" as first bad commit. Using gdb I found tiling was set exactly the same in 2.6.3 as in 2.6.1, so that was good (TILE_XMAJOR for front, back and depth buffers). Looking further I found the line mem->tiling = TILE_NONE; (line 961 in src/i830_memory.c) at the end of i830_allocate_memory suspicious, as mem->tiling now already gets set via i830_allocate_aperture and some buffers do have tiling. Removing that line indeed fixed the performance issue. Now sauerbraten runs with 30+ fps and GLBlur runs smoothly. (cherry picked from commit e964d4e53af3a47de6d09c884be1cc0044d03bea)
2009-03-31Require libdrm 2.4.6 for GTT unmap supportJesse Barnes
Need the new functions available. (cherry picked from commit 51cf8a453c2bc2e8604bfc41a649e971c1ba5026)
2009-03-31Tiling fixes, third setJesse Barnes
Hopefully this concludes the fixes necessary to deal with the various combinations of kernel and user level tiling. We have several cases to handle: 1) KMS (kernel handles all tiling) 2) UMS w/memory management + kexec fencing (kernel handles all tiling) 3) UMS w/memory mangement but no kexec fencing (userland handles tiling) 4) UMS w/o memory management (userland handles tiling) For cases (1) & (2) we can use GTT mapping, which will give us good performance and take care of allocating fence registers as needed. It's important *not* to have userland set up fence regs in this case, since the kernel will be using all of them. For case (3), we use the begin/end GTT map functions provided by libdrm, in combination with pinning and fence register setup in i830_memory.c to deal with tiled surfaces. This also gives us good performance and correctness. For case (4) we use the old style virtual mapping + offset for dealing with surfaces; note that UXA doesn't seem to work in this configuration regardless of these fixes. Fixes bug #20803. Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org> (cherry picked from commit 8dabcc40747bfd478f296728741240241698f165)
2009-03-31Disable LVDS config parsing from VBT for nowZhenyu Wang
As wider tests showed that this doesn't work for all VBIOS, so disable it for now and reenable it after we get reliable method. (cherry picked from commit 375b2e40fcb17e94538a75392950e2533c1bb031)
2009-03-31disable center mode for 965GM and G4X platformMa, Ling
When disabling VGA mode, usually we don't need to touch VGA center mode. However because of hardware reason, for Cresline, Cantiga & Eaglelake platform, we have to disable center mode as well. The patch fixed bug- TV Out strobing regression, reported by Robert Lowery in intel-gfx@lists.freedesktop.org mailing list. Signed-off-by: Ma Ling <ling.ma@intel.com> (cherry picked from commit b5b377806422c9538fa9f846819ad253c1a50846)
2009-03-31Fix VT switch with XV overlay video enabled.Kalev Lember
drm_intel_bo_unpin() was called with NULL argument. Signed-off-by: Kalev Lember <kalev@smartlink.ee> (cherry picked from commit 74d0713e002a9781ed00fdd10eb6f75907ae796c)
2009-03-31clean up man page generation and remove all traces of the i810 driverRémi Cardona
The i810 compatibility symlink has been broken since libpciaccess, so just let it die. (cherry picked from commit b345b4e6adf00f8b2626e5c2563fc159e2295cc5)
2009-03-31Don't manage fences part twoJesse Barnes
Don't try to clear fences that were never installed. Missed this bit in the last fix for #20265. (cherry picked from commit 48b91e066878db63a1558e4cd3e6d12ff9c49197)
2009-03-19Don't install fences if the kernel is managing themJesse Barnes
If execbuffer is setting up fences, it also means that the kernel is managing them at pin time, so installing one in the 2D driver in that case is an error. The fence should stick around as long as the buffer is pinned (the kernel won't steal these), though it will be freed at leavevt and re-allocated at entervt. On 965+ chips, the pin ioctl will *not* install a fence reg, but that's also ok because all 965+ operations include tiling bits, and sw fallbacks will be protected by prepare/finish access hooks, which will either access the backing store or use the GTT, which will ensure proper fencing at fault time. Fixes #20265. Acked-by: Eric Anholt <eric@anholt.net> (cherry picked from commit 636d252f3b1eac687f7b11952e949c383cb86ed4)
2009-03-19Drop Legacy3D option, only use fixed texture space with non-gem.Kristian Høgsberg
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. (cherry picked from commit 73db44e7ac524e84e5f0fda2d60069a9e954ad1b)
2009-03-19Set SSC frequency for 8xx chips correctlyMa Ling
All 8xx class chips have the 66/48 split, not just 855. Fixes #18358. (cherry picked from commit 85e6b528582c2397ee9eb2132cd0d05ce12eb43d)
2009-03-19Re-enable disabled outputs after rotationJesse Barnes
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. (cherry picked from commit bedc894a565ce3c7a50990e3f78953fc2432ad40)
2009-03-19Create known output configuration at EnterVT timeJesse Barnes
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. (cherry picked from commit 6deb26ae7bd796e88a5dd90df5f6c35fbc44e798)
2009-03-19Use CopyArea to load glyphs from per-glyph pixmap to cache pixmapKeith Packard
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> (cherry picked from commit fe08b81d0f5d6f96e0124e6286bd24aba6e140ad) (also includes revert from fe08b81d0f5d6f96e0124e6286bd24aba6e140ad) (and revert from from 78a60e1b66fe2e8449702dd43d9b062d279af8f1) The reverts simply eliminate some unrelated changes accidentally included with the first commit.
2009-03-16TV: fix contrast and saturation for 945GZhenyu Wang
Bug #20670. (cherry picked from commit 1a6e70cd98abc63f24f710819961c24601afb59b)
2009-03-16TV: force TV as connected with TV_Connector optionZhenyu Wang
In order to bypass failure in TV load detect, TV_Connector option will always force TV as connected with user specified connector type. (cherry picked from commit 4e95327323e3d081b565147f7738eb49c28542bc)
2009-03-16Fix Xv crash with overlay video.Kalev Lember
Bug #20585. (cherry picked from commit 2026c57cf0a352d9e6f9d208cfb7d4d550614477)
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-10Increment version number to 2.6.99.902Carl Worth
This is a version number increment for the new release-candidate tar file. As can be seen in the git history, there are no code changes here. Instead, the incremented version simply captures the fact that unlike .901, the .902 tar file has been built correctly. Specifically, it was built this time on a system with xmvclib present so all the necessary source files for building against xmvclib are now included in the tar file.
2009-03-09Increment version number to 2.6.99.901 for 2.7-rc1Carl Worth
It sure seems like a bizarre numbering scheme to me, but it also seems like the x.org way of doing things, (at least for now).
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-09typo in intel.manXiang, Haihao
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-06Document the UXA AccelMethod.Eric Anholt
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-06man: Put option defaults on separate indented lineDan Nicholson
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-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.