summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2009-02-21Move disable_render_standby to EnterVT instead of startup.Helge Bahmann
Otherwise, with a pre-2.6.28 older kernel the disable would be lost at resume time and cause hangs. Bug #20214
2009-02-21uxa: Ask for BOs ready for rendering for pixmaps.Eric Anholt
The assumption is that we're almost always accelerating our drawing to new pixmaps (fill, copy, etc.).
2009-02-20KMS: Hook up rotated shadow buffers.Kristian Høgsberg
2009-02-20Access the Xv buffer through the GTT for the non-KMS case.Kristian Høgsberg
2009-02-20Fix i915 textured video to work with the i830_memory -> bo change.Kristian Høgsberg
Forgot to update i915_video.c in 872aadc7102bd5131e1582ede081e22672911ba2.
2009-02-20Dont allocate overlay registers in KMS mode.Kristian Høgsberg
2009-02-18Make Xv used a buffer object instead of i830_memory.Kristian Høgsberg
We still pin the buffer object in case of overlay, but for textured video we're now no longer using i830_memory for Xv anymore.
2009-02-18bios_reader: parse driver feature BDBZhenyu Wang
2009-02-18Fix SDVO mulitiplier setting for 945GZhenyu Wang
Wrong SDVO multiplier setup has been slipped in SDVO TV patch. Thanks Michael Fu to point this out!
2009-02-17KMS: Hook up crtc::gamma_set.Kristian Høgsberg
2009-02-16Safely init SDVO found variableZhenyu Wang
Found by Michael Fu for my last SDVO detect fix.
2009-02-13Fix SDVO/HDMI detectZhenyu Wang
SDVOC detect bit is only valid for HDMIC. And for SDVO devices, SDVOB detect bit should be used to probe all possible SDVO outputs.
2009-02-13SDVO: remove ForceSDVODetect optionZhenyu Wang
Which is just a hack to hide our SDVO detect drawback, we will have SDVO/HDMI detect fix later.
2009-02-13SDVO: Switch control bus only before DDC accessZhenyu Wang
Instead of set control bus switch before every i2c start, just set once before doing DDC. This should eliminate some encoders returning error during that.
2009-02-13SDVO: Fix TV supportZhenyu Wang
As SDVO TV uses SDVO_TVClkIn from SDVO encoder for clock reference, it needs to generate proper PLL for current input clock. This uses fixed PLL table from vbios for this. And possible sdvo mulitiplier has to be setup correctly. This makes TV output stable on my 945GCLF2 board with NTSC-M format.
2009-02-13SDVO: fix CREATE_PREFERRED_INPUT_TIMING commandZhenyu Wang
2009-02-13SDVO: fix usage for SET_TV_FORMAT and GET_SDTV_RESOLUTION_SUPPORT commandZhenyu Wang
They both needs parameters.
2009-02-13SDVO: fix error in modeline and DTD convertZhenyu Wang
2009-02-13SDVO: check EDID info for DVI-IZhenyu Wang
For SDVO DVI-I, check EDID info for digital output, otherwise mark it to be disconnected as analog output is driven by VGA then.
2009-02-13SDVO: Fix for HDMI encode and audio setup (try 5)Zhenyu Wang
SDVO HDMI encode and audio is not setup in detect, which fails in hotplug case for HDMI audio. Fix to check current encode type and set flag for HDMI audio enabling. Check and set HDMI encode state in get_modes.
2009-02-10uxa: Fix failure to --amend in further changes in previous commit.Eric Anholt
2009-02-10uxa: hook up the fallback debug to the driver's fallback debug option.Eric Anholt
2009-02-06Don't disable vga centering bit.Ma Ling
commit id b9f5915ce812144ffd9d2aa42e8ba856129c35e, which resolved bug #17235, but generate new regression-bug #19715. This patch intends to resolve bug #17235, and avoid regression as well. We have successfully re-tested it for bug #17235 and #19715 respectively.
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