summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2006-12-27Fix operator precedence issue that stuck 965 t-v state into the front buffer.Eric Anholt
2006-12-27debugging for location of various 965 textured-video state.Eric Anholt
2006-12-27Fix discrepancy between XAA/EXA linear allocations that broke EXA XV.Eric Anholt
The XAA allocator returned an offset from the beginning of the frontbuffer allocation (where the linear allocations come from), while EXA returned one from the start of framebuffer. Now, both of them use the start of framebuffer as the reference.
2006-12-27Bump the size of the extra space for 965 so it actually fits.Eric Anholt
2006-12-27Make the assert() in i965_video.c actually work and expose an error.Eric Anholt
2006-12-27Replace XAA mark/waitsyncs with the XAA/EXA wrappers.Eric Anholt
2006-12-27reformat i965_video.c to 4-space indents, 80 columns, no trailing whitespace.Eric Anholt
2006-12-27Move 965 textured-video out to a separate file.Eric Anholt
2006-12-27Bug #7524: Major improvements to EXA/XAA static memory allocation.Eric Anholt
With this, we no longer allocate XV through the XF86 linear allocator in the EXA case. We also no longer allocate extra space for the XF86 2D allocator that we don't use in EXA mode, or space for the EXA allocator in XAA mode. The EXA offscreen allocator now gets enough space for several screenfuls of pixmaps plus one 1920x1088 movie. A large duplicated section of code for allocating each framebuffer in the old dual-screen mode was also factored out.
2006-12-21If DDC detailed modes are missing physical size, pull from features.Keith Packard
Monitors without detailed modes, or those which do not bother to set a physical size in their detailed modes may still have physical size in the global data.
2006-12-21Merge branch 'modesetting-origin' into modesettingKeith Packard
2006-12-21Change belinea edid quirk to cover the 10 20 30W model as well.Keith Packard
This larger model reported different (but still incorrect) sync polarities, so instead of flipping them, just set them to the right value.
2006-12-21Use Vesa DDC timeouts for all I2C busses.Keith Packard
The default I2C timeouts are very short, and while most modern monitors have no trouble responding at that rate, some older ones cannot manage.
2006-12-21When cleaning duplicate modes, make sure ->Last is reset correctly.Keith Packard
When removing the very last mode for a monitor, move the ->Last pointer to the previous list element.
2006-12-21Add EDID quirk support for broken EDID data.Keith Packard
For EDID with known errors, add a quirk mechanism to automatically compensate. The first quirk is for a Belinea 1440x900 monitor which incorrectly specifies sync polarities in the detailed mode.
2006-12-21PLL computations missed one possible 'm2' value.Keith Packard
m2 was ranging from min <= m2 < max instead of <= max resulting in inaccurate PLL frequencies for some modes.
2006-12-21Merge branch 'modesetting' into crestlineKeith Packard
2006-12-21Computed corred color conversion values.Keith Packard
Extract correct color conversion values for all video formats from documentation. Use those, with appropriate conversions, for the color conversion register values.
2006-12-21TV subcarrier was computed from wrong clock value.Keith Packard
The constants provided in the documentation for the subcarrier DDA values assumed the clock was programmed to precisely 108MHz, but the PLL can't hit that value exactly (or our PLL computation can't, in any case). The result was an incorrect subcarrier frequency which resulted in synthetic subcarrier phase shift and a lovely rainbow effect on the screen. Unfortunately, the documentation didn't exactly describe the function performed by the subcarrier clock hardware, so a bit of detective work was needed. New constants were computed using the code in tv.5c and those, along with lots of other values from the documentation were inserted into the necessary tables. The result appears to generate stable NTSC video on the svideo connector.
2006-12-21 This fix should be better, I830SetMode will call i830_sdvo_dump,Zou Nan hai
if the sdvo is not initialized, X will crash. So any application which SetMode will crash X if there is no SDVO output.
2006-12-20fix null pointer reference,Zou Nan hai
I hit this when running doom3-demo
2006-12-19Reinitialize DGA mode list whenever we update the global list.Keith Packard
DGA has a copy of the current mode list (yes, this is broken). Regenerate it whenever the ddx mode list changes.
2006-12-19Merge branch 'modesetting' into crestlineKeith Packard
2006-12-19TV output I830OutputPrivate had wrong type (crashed in SetMode).Keith Packard
TV output private type field was set to I830_OUTPUT_SDVO instead of I830_OUTPUT_TVOUT. When DGA mode setting occurred, the sdvo output debug code would be invoked and attempt to dereference sdvo-specific bits of the private structure leading to a segfault.
2006-12-19Re-initialize physical screen size only if -dpi was passed.Keith Packard
Physical screen size from the config file or DDC will already be set correctly in the screen structure, unless it was computed from the virtual size using the -dpi command line option. Recompute physical size as we reset the screen size if the -dpi option was used.
2006-12-19Merge branch 'modesetting-origin' into modesettingKeith Packard
2006-12-19Align textured video dither matrix to windowKeith Packard
2006-12-19Bug #9382: Save the CRTC's desired mode in the old RandR 1.0 mode set path.Eric Anholt
2006-12-19Turn on dithering for 915 textured videoKeith Packard
2006-12-19Remove 8k framebuffer stride restriction on 965.Eric Anholt
Also, clean up the message if the limitation is hit.
2006-12-19Only erase curMode in i830DisableUnusedFunctions when the CRTC is disabled.Eric Anholt
This bug resulted in broken xinerama, among other issues.
2006-12-19Respect the srcdir.Daniel Stone
2006-12-19Disable configure-disabled outputs before mode setting.Eric Anholt
We're not supposed to turn off pipes/planes/dplls with outputs attached, which we could have done before this.
2006-12-19Simplify i830DisableUnusedFunctions() by using the CRTC dpms routines.Eric Anholt
2006-12-19Writing 1 to I2C line means to tristate the bus so others can manipulate it.Keith Packard
We were forcing bus lines to 1 which was breaking DDC for some monitors. Instead, make the PutBits function just tristate when writing 1 bits.
2006-12-19 fix for bug #108Zou Nan hai
2006-12-18Add a detect() function for DVO chips, and implement it on sil164.Eric Anholt
2006-12-18Fix crash in xf86SetScrnInfoModes when pScrn->modes ends up empty.Eric Anholt
2006-12-18Clean up i2c_vid interface, including de-StudlyCapsing and removing dead code.Eric Anholt
The old Init() function is removed and the previous Detect() function is now init(). This leaves us room in the namespace for a detect() like other outputs have ("is the monitor connected?"). Also, Power() became dpms(), taking a DPMSMode*. In general, the mode setting path now matches the intel internal path, except for the lack of mode_fixup().
2006-12-19ch7xxx: add lookup table for nameDave Airlie
Don't load if we don't match name
2006-12-18Limit modes to 165Mhz on CH7009, according to spec.Eric Anholt
2006-12-18Align the driver to the CH7009[AB] spec.Eric Anholt
With this, the driver works at 640x480 and 1280x1024 on my panel.
2006-12-18Clean up a bunch of log noise from ch7xxx startup.Eric Anholt
2006-12-18Fix DVO mode valid function to not throw out all modes.Eric Anholt
2006-12-18Add save/restore to ch7xxx to avoid segfaults on server start.Eric Anholt
2006-12-18Move the ch7xxx code to the style I've been settling on for output code.Eric Anholt
2006-12-18Revert "Convert callers of LookupWindow() to dixLookupWindow()."Eamon Walsh
This reverts commit 08575331ac75783c9910cfb6e78db701a29983ac.
2006-12-18Bug #8786: Treat pictures with no color data as non-component alpha.Eric Anholt
This is an un(der?)-documented part of the render protocol: If the mask is alpha only, then the component alpha flag is ignored on it.
2006-12-17Merge branch 'modesetting' into crestlineKeith Packard
2006-12-16Follow mode setting order in RestoreHWState.Keith Packard
Add delays after output and CRTC disable. Restore panel fit register before PLLs are restarted. Move all VGA restore code last. Shuffle various register writes around and add delays to match PipeSetMode code.