summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2009-02-04TV quirk for HP Compaq nx6310Zhenyu Wang
2009-02-02Fix front buffer memset() for non-KMS case.Kristian Høgsberg
Missed the pI830->FbBase condition when removing the KMS hook.
2009-02-02Un-revert the I915_SETPARAM_NUM_USED_FENCES commit reverted by accident.Kristian Høgsberg
Oops, my bad. Reverted 8d4bc36fae50b09a73ba2cfab920adb32141a358 since my kernel doesn't yet have the new param, committed the revert by accident.
2009-02-02Fix last-minute "cleanup" that broke the patch.Kristian Høgsberg
2009-02-01Implement front buffer resize for KMS.Kristian Høgsberg
This adds back the resize hook so we can resize the front buffer under kernel mode setting as well. The patch also pulls the drmmode_* structs from drmmode_display.h into drmmode_display.c and eliminates the header file.
2009-01-27dri2: Use modesetting's master fd instead of opening our own non-master.Eric Anholt
This fixes failure to auth DRI2 clients under KMS.
2009-01-27Support tiled back/depth on 915-class hardware with DRI2.Jesse Barnes
Set alignments, tile settings and flags correctly in the 2D driver to support tiled rendering. UXA's create pixmap function currently assumes the worst about the alignment constraints; that should probably be fixed. Some of the 1M alignment fixes could probably be done more cleanly as well.
2009-01-27Don't forget the new state bos in check_aperture.Eric Anholt
They're tiny so it shouldn't have been a problem, but play it safe. This is another <5% loss on top of the previously reported value, bringing the whole series to about 8%.
2009-01-26Fixup bogus VBT modes when detectedJesse Barnes
Several VBT modes out in the wild have H or VSyncEnd values greater than the H or VTotal value. This clearly ends up creating a bad mode, causing some panels to either ignore the timing or display some sort of corrupt image. Check for these cases and fix them up by default, making things work for several Dell and Sony machines. Fixes FDO bug #17292.
2009-01-24Quirk MSI IM-945GSE-A LVDS, TV outputs.Bill Nottingham
The IM-945GSE-A claims to have a TV output, and always claims a connected LVDS output. It has neither.
2009-01-24quirk for AOpen MP45Vincent Mussard
2009-01-21Move i965 render sampler state to BOs.Eric Anholt
This eliminates the pinned memory allocation for 965 render state.
2009-01-21Move i965 render kernels to BOs.Eric Anholt
2009-01-21Move 965 render unit state to BOs.Eric Anholt
This is a first step in a series of changes to avoid requiring a pinned object, which gets in the way of doing non-root KMS. This change appears to result in about a 2-6% loss in x11perf -aa10text, which better algorithms in libdrm could make up for (it hasn't really had to deal with code this bad before).
2009-01-21Remove 965 render wm scratch space, which was just unused.Eric Anholt
2009-01-21Fix build with server 1.4.Eric Anholt
Debian "unstable" is still stuck with this ancient version.
2009-01-21Don't run in KD_TEXT mode even with KMSJesse Barnes
Leaving the VT in KD_TEXT mode keeps the kernel's blanking code active, so when a DPMS event happens, the fb console is restored rather than X's configuration. On the downside it means the kernel won't print messages in the background, which would be visible if a panic or emergency switch occurred. The proper fix here is a new kernel mode, which we can move to when ready.
2009-01-21Tear down batchbuffers unconditionally on LeaveVTJesse Barnes
Even if KMS is enabled we should do this, to avoid running batches that depend on other state we tear down in LeaveVT.
2009-01-20Use drm_intel_bo_subdata to put render vb data in.Eric Anholt
This improves performance by avoiding repeated map/unmap cycles, which are a bit expensive on my machine with lock debugging on in the kernel. It could do much better if we did more than 18 or so floats at a time.
2009-01-20Move i965 render vb setup to use time, and decouple state emit from it.Eric Anholt
The require_space had failed since it only checked for the space required by the batch emits in the function itself, but not in the i965_emit_composite_state() that it called (the state we were concerned about having set up for that 12 * 4 dwords to follow!). This is replaced by intel_batch_start_atomic(), which will catch such mistakes in the future.
2009-01-20Move i965 render transform setup from emit_composite_state to prepare_composite.Eric Anholt
2009-01-20i965: Pull check_aperture out to a separate function and make it dtrt.Eric Anholt
Previously it wouldn't count the pixmaps that were about to be used, which is pretty much the only purpose of having the pain around. This also eliminates the check_twice confusion with emit_batch_header_for_composite().
2009-01-20Move filter computation from emit_batch_header to prepare_composite.Eric Anholt
2009-01-20Use intel_emit_reloc from video to prettify 965 render bind_bo setup.Eric Anholt
2009-01-20Move i965 render state bo setup back to prepare_composite.Eric Anholt
We want the objects to be created once per prepare/done both for efficiency and so we can handle aperture checking better.
2009-01-20Do check_aperture_space and batch_start_atomic for i965 video.Eric Anholt
This increases the overhead for video in the presence of cliprects, but we were already doing nasty things in that case and don't seem to care. This could fix potential bad rendering or hangs with video, particularly with DRI2.
2009-01-20Move 965 video setup to a separate function so we can move it around.Eric Anholt
2009-01-20Remove the pageflipping infrastructure.Owain G. Ainsworth
It was broken on current kernels, and deprecated anyway.
2009-01-20Remove triple-buffering supportOwain G. Ainsworth
It never worked with any upstream linux kernel, and is quite heavily deprecated. A new solution based around DRI2 will probably be forthcoming. Pageflipping itself is next.
2009-01-20Support sysfs backlight control for Sony laptops in xf86-video-intelKshitij Kulshreshtha
The sony_laptop kernel module (since v2.6.23) supports backlight control via the sysfs interface: /sys/class/backlight/sony This patch will enable xf86-video-intel to use this backlight control method for Sony VAIO Laptops with Intel integrated video.
2009-01-17Protect i915 textured video against batchbuffer wrapping.Eric Anholt
2009-01-17Fix i915 batch_start_atomic counting.Eric Anholt
2009-01-17Fix libdrm version number requirement regression that got spammed in.Eric Anholt
2009-01-17intel: fix DRI2 should be DRI_DRI2Dave Airlie
2009-01-16Re-emit i915 composite setup when the batchbuffer wraps.Eric Anholt
This also introduces tests to make sure that we asked for enough reserved space and that we don't allow wrapping at the wrong time. This fixes a hang during text rendering with DRI2 and a GL client running, but could potentially affect text rendering with GEM in general with an exceptional batchbuffer setup.
2009-01-15Fix invarient state emits for DRI2 (do it per batch, since there's no lock).Eric Anholt
2009-01-14Fix ioctl type.Owain G. Ainsworth
I915_EMIT_IRQ is a read/write ioctl, not a write only. Found by OpenBSd's kernel code which checks these things a long more strongly than Linux.
2009-01-14use ifdef __linux__ where needed.Owain G. Ainsworth
since modesetting is compiled by default now, ifdef __linux__ the linux only includes and ioctls.
2009-01-14Disable VGA plane reliablyMa Ling
This fixes #17235, VGA random hang on recent G45/43 board. From spec, SR01 bit 5 should be set before VGA plane disable through control register, otherwise we might get random crash and lockups.
2009-01-13Assign rotation memory dri_bo to rotation pixmap.Keith Packard
As the rotation memory and rotation pixmap are allocated separately (to make rotation at startup work), the allocate dri_bo needs to be set in the pixmap for acceleration to work. This restores the performance in rotated modes. Signed-off-by: Keith Packard <keithp@keithp.com>
2009-01-13bios_reader: make mode timing output friendlierJesse Barnes
Print out the calculated mode line values (as i830_bios.c uses) and check for validity against known problems.
2009-01-13UXA: Declare glyph cache picture as component-alpha when necessary.Bernhard Rosenkraenzer
Without this, rendering component-alpha glyphs may break without a mask. Bug #19534. Ported from fix by Michel Dänzer <daenzer@vmware.com> in xserver commit 639f289dcdbe00a516820f573c01a8339e120ed4
2009-01-13set continuous-frequency flag in get modes functionMa Ling
http://bugs.freedesktop.org/show_bug.cgi?id=19247 Because latest xorg will check whether the display is continuous frequency through one flag in monitor info structure, if not it doesn't touch default modes. When laptop failed to fetch edid, We don't set the flag. In i830_lvds.c, so currently we can not get default modes except only one mode line from bios. In order to achieve default modes from xserver successfully,I set the flag and other EDID features.
2009-01-13Fix LVDS EDID to match all possible default modesKeith Packard
If the EDID data from the LVDS doesn't indicate support for a wide range of continuous frequencies, it will not match any of the default modes although our LVDS scaler logic ignores refresh rates when programming LVDS modes. Fix this by smashing the compute EDID data to open up the sync rates. Signed-off-by: Keith Packard <keithp@keithp.com>
2009-01-09Remove xorgconfig & xorgcfg from See Also list in man pageAlan Coopersmith
2009-01-07Prevent redefinitions of CARD8 and friends. Fixes build.Ian Romanick
2009-01-06Always enable KMS if server's new enough, and remove option.Eric Anholt
The API should be stable at this point, and we don't want to allow mistakes.
2009-01-06Fix pin leakage with EXA GTT-mapping shortcut, and crash with UXA on KMS.Eric Anholt
2009-01-06Disable DRI2 buffer tiling on non-965, as those need fence regs for 2D blits.Eric Anholt
This fixes glReadPixels failure on single-channel 915GM, as the software code for readpixels was actually the only code in the driver doing tiling against these buffers (everything else says "rely on fence registers", since the 2D blits don't have a "don't rely on fence registers" option).
2009-01-06FatalError on batchbuffer map failureKeith Packard
Yes, it would be nice to do something other than crash here. Signed-off-by: Keith Packard <keithp@keithp.com>