Commit Graph

2212 Commits

Author SHA1 Message Date
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
Helge Bahmann 81c652e9a6 Move disable_render_standby to EnterVT instead of startup.
Otherwise, with a pre-2.6.28 older kernel the disable would be lost at
resume time and cause hangs.

Bug #20214
2009-02-21 10:10:57 -08:00
Eric Anholt 0621ba12a3 uxa: Ask for BOs ready for rendering for pixmaps.
The assumption is that we're almost always accelerating our drawing to
new pixmaps (fill, copy, etc.).
2009-02-21 10:03:22 -08:00
Kristian Høgsberg 5018d0f16c KMS: Hook up rotated shadow buffers. 2009-02-20 15:34:29 -05:00
Kristian Høgsberg beca598bc2 Access the Xv buffer through the GTT for the non-KMS case. 2009-02-20 11:25:22 -05:00
Kristian Høgsberg e97e257170 Fix i915 textured video to work with the i830_memory -> bo change.
Forgot to update i915_video.c in 872aadc710.
2009-02-20 11:25:22 -05:00
Kristian Høgsberg 96da26b681 Dont allocate overlay registers in KMS mode. 2009-02-20 11:25:16 -05:00
Kristian Høgsberg 872aadc710 Make Xv used a buffer object instead of i830_memory.
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-18 17:26:06 -05:00
Zhenyu Wang 527e8177cd bios_reader: parse driver feature BDB 2009-02-18 11:28:01 +08:00
Zhenyu Wang 62ca1c4798 Fix SDVO mulitiplier setting for 945G
Wrong SDVO multiplier setup has been slipped
in SDVO TV patch. Thanks Michael Fu to point this out!
2009-02-18 10:49:00 +08:00
Kristian Høgsberg 723b606509 KMS: Hook up crtc::gamma_set. 2009-02-17 13:48:04 -05:00
Zhenyu Wang 506bbb8341 Safely init SDVO found variable
Found by Michael Fu for my last SDVO detect fix.
2009-02-16 14:09:49 +08:00
Zhenyu Wang 9d464bd5b0 Fix SDVO/HDMI detect
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-13 11:15:48 +08:00
Zhenyu Wang 48445d2e93 SDVO: remove ForceSDVODetect option
Which is just a hack to hide our SDVO detect drawback,
we will have SDVO/HDMI detect fix later.
2009-02-13 11:11:18 +08:00
Zhenyu Wang ddedf19f88 SDVO: Switch control bus only before DDC access
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-13 10:09:42 +08:00
Zhenyu Wang f1ca56e17d SDVO: Fix TV support
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-13 10:02:02 +08:00
Zhenyu Wang acde0ef683 SDVO: fix CREATE_PREFERRED_INPUT_TIMING command 2009-02-13 09:53:57 +08:00
Zhenyu Wang 824b2f0c55 SDVO: fix usage for SET_TV_FORMAT and GET_SDTV_RESOLUTION_SUPPORT command
They both needs parameters.
2009-02-13 09:50:45 +08:00
Zhenyu Wang 62c0c2f554 SDVO: fix error in modeline and DTD convert 2009-02-13 09:48:34 +08:00
Zhenyu Wang 37c67088a8 SDVO: check EDID info for DVI-I
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-13 09:21:45 +08:00
Zhenyu Wang 38079bc0f1 SDVO: Fix for HDMI encode and audio setup (try 5)
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-13 09:21:45 +08:00
Eric Anholt b53977f4c5 uxa: Fix failure to --amend in further changes in previous commit. 2009-02-10 18:23:16 -08:00
Eric Anholt 5212ec6515 uxa: hook up the fallback debug to the driver's fallback debug option. 2009-02-10 15:35:20 -08:00
Ma Ling 3aa8591abf Don't disable vga centering bit.
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-06 09:14:15 +08:00
Zhenyu Wang 9fe5fca3fe TV quirk for HP Compaq nx6310 2009-02-04 06:00:39 +08:00
Kristian Høgsberg 5c37009162 Fix front buffer memset() for non-KMS case.
Missed the pI830->FbBase condition when removing the KMS hook.
2009-02-02 12:02:00 -05:00
Kristian Høgsberg 2013799b20 Un-revert the I915_SETPARAM_NUM_USED_FENCES commit reverted by accident.
Oops, my bad.  Reverted 8d4bc36fae
since my kernel doesn't yet have the new param, committed
the revert by accident.
2009-02-02 11:51:50 -05:00
Kristian Høgsberg 127330bfd5 Fix last-minute "cleanup" that broke the patch. 2009-02-02 11:27:51 -05:00
Kristian Høgsberg 0cb87ccfe9 Implement front buffer resize for KMS.
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-02-01 22:28:14 -05:00
Eric Anholt 66bc44e8f9 dri2: Use modesetting's master fd instead of opening our own non-master.
This fixes failure to auth DRI2 clients under KMS.
2009-01-27 15:43:58 -08:00
Jesse Barnes 8d4bc36fae Support tiled back/depth on 915-class hardware with DRI2.
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-27 14:33:43 -08:00
Eric Anholt 6c0ca1676b Don't forget the new state bos in check_aperture.
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-27 14:33:43 -08:00
Jesse Barnes 57a02b50c6 Fixup bogus VBT modes when detected
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-26 14:58:28 -08:00
Bill Nottingham e20e1cf76f Quirk MSI IM-945GSE-A LVDS, TV outputs.
The IM-945GSE-A claims to have a TV output, and always claims a connected
LVDS output. It has neither.
2009-01-24 08:36:20 +08:00
Vincent Mussard 05ff561234 quirk for AOpen MP45 2009-01-24 08:33:16 +08:00
Eric Anholt fbf003ef27 Move i965 render sampler state to BOs.
This eliminates the pinned memory allocation for 965 render state.
2009-01-21 14:50:58 -08:00
Eric Anholt befd4ad8be Move i965 render kernels to BOs. 2009-01-21 14:50:58 -08:00
Eric Anholt 5d705de5d1 Move 965 render unit state to BOs.
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-21 14:50:58 -08:00
Eric Anholt 64b08ed5ad Remove 965 render wm scratch space, which was just unused. 2009-01-21 14:50:58 -08:00