summaryrefslogtreecommitdiff
path: root/src/i830_display.h
AgeCommit message (Collapse)Author
2007-07-13Ensure pipe/output active before doing load detection.Keith Packard
If the pipe or output have been set to DPMSOff, then load detection will not work correctly. Also, share the load detection configuration code between crt and tv outputs.
2007-03-05Move EnterVT mode setting code to xf86SetDesiredModes.Keith Packard
Make the application of crtc desiredModes generic code instead of per-driver by creating xf86SetDesiredModes from the code that was in EnterVT and calling it. Also, move the frame buffer clear until just before mode setting to make sure things are mapped correctly.
2007-03-04Support new CRTC/Output prepare/commit hooks.Keith Packard
New hooks replace explicit invocation of DPMS functions to manage mode setting sequencing.
2007-02-13Attempt to detect panel fixed mode from EDID or current programmed mode.Eric Anholt
These two sources are placed in higher priority to the BIOS data when available, since the BIOS data has proven unreliable. The BIOS data is still read, and warnings printed if it doesn't match what we probe. The BIOS data remains useful for the situation where we want to turn on LVDS but there is no EDID available and no current mode programmed (i.e. booting with VGA or TV connected).
2007-01-15Convert I830PipeSetMode to xf86CrtcSetMode. Add rotation structures.Keith Packard
Makes the mode setting logic device independent. Magic rename hooks allow multiple drivers to provide the generic code without name conflicts. Rotation code requires special pixmap creation hook, and uses Render to perform the actual rotation.
2007-01-03Add per-CRTC gamma control support for RandR.Eric Anholt
This makes the CRTCs now always run in gamma-enabled mode, rather than having flaky logic for switching modes. Also, it should clear up issues with the LUTs being uninitialized when outputs are first brought up.
2006-12-28Configuration support: per-output mode lines, preferred mode.Keith Packard
Add the modelines specified in the per-output monitor and all of the default modes to the list to each output. Prune the resulting list to specified sync limits and virtual sizes. Sort the resulting mode list on preferred/size/refresh.
2006-12-06Merge branch 'generic-mode-set' into modesettingEric Anholt
2006-12-05new server APIs are not in server-1.2 (version 7.1.99.2)Keith Packard
2006-12-05WIP code to move mode set sequencing to XFree86 handlers.Eric Anholt
It compiles. It definitely doesn't run.
2006-11-30Merge branch 'restructure-outputs' into modesetting.Keith Packard
Outputs and Crtcs now have a driver-independent representation which should permit generic code to control RandR 1.2 and startup configuration.
2006-11-28Conditionally compile old-server compatibility code in.Eric Anholt
This also replaces calls to compat code with the real names of the functions, and slips #defines to an i830-namespaced version in when doing compat. The current server version (7.1.99.2) is still left as requiring compat code, since the version hasn't been bumped yet. This also fixes some failures to call the compat code, and some failures to actually compile the compat code. Oops.
2006-11-28Replace custom DDC mode list code with a copy of the X Server's.Eric Anholt
The X Server now has most of the mode helper functions we want, and we can start removing compilation of our copies when the server is new enough.
2006-11-27Move crtc/output config to sub-structure.Keith Packard
Place crtc/output in separate structure at head of driver private structure. Use this from the config code to make it driver-independent. Still lots of effectively driver independent code that continues to use driver dependent stuff, but that will change.
2006-11-26Start output/crtc restructuring work. It compiles.Keith Packard
Outputs and Crtcs are now split between 'generic' and 'driver specific' pieces in the hope that more code will be able to migrate to the xf86-generic layer. Right now, the code remains tangled together, significant work remains to tease the pieces apart. First the code needs to be made to actually work as-is though.
2006-11-16RandR-based initial output configuration.Keith Packard
Using pre-init computed RandR information, make reasonable default choices for the output configuration at startup time. Either some preferred size or a size which yields 96dpi is chosen, from which other monitors are set to a similar size. The largest size sets the screen size. This needs to be extended to respect config file settings, but those have not been defined yet.
2006-11-08Go back to only setting up outputs that have a display connected.Eric Anholt
2006-11-03Add support for load-based CRT detection.Eric Anholt
2006-10-31Move output connection detection to a per-output method.Eric Anholt
This will be used by RandR, and should let us clean up some of the initial display configuration, hopefully. Also, analog hotplug-based detection is now enabled on G965.
2006-10-31i830SetLVDSPanelPower is now a static function in i830_lvds.c, so remove it.Eric Anholt
2006-10-25Clean up SDVO code, moving the private structure internal and cleaning up caps.Eric Anholt
All the SDVO code should now be in lower case rather than StudlyCaps. This also adjusts the I2C setup to create a bus per SDVO output we set up. The previous setup with shared buses was failing in some circumstances, which is probably due to the lack of refcounting in xf86i2c.c.
2006-10-09Add a function for describing the output connection configuration.Eric Anholt
2006-10-09Move per-output mode setting code to per-output methods.Eric Anholt
This is not a very clean interface, as a number of outputs require tweaks to the DPLL registers. When possible, the DPLLs are just adjusted in the per-output post_set_mode, which happens just after the DPLL is enabled. However, this seems better than the previous method of having all outputs programmed in the same function.
2006-10-05Give each output type an init method in its file, making other methods static.Eric Anholt
2006-09-21Make planeEnabled track pipes controlled by randr.Keith Packard
Also add code to deal with disabling pipes.
2006-09-20Update driver for RandR 1.2 X server API.Keith Packard
This is not entirely what I'd like to see, but it's at least functional. Limitations: Can't disable/enable crtcs Can't move outputs on/off crtcs But, it does handle monitor hot-plug, detecting changes in VGA and SDVO status on-the fly. Which makes for good demo material.
2006-06-20Add support for CRT detection using DDC.Eric Anholt
This method is slower (~5ms), but works on older chipsets. Also, load-based detection is disabled, as it can be fooled by other outputs on the pipe being active, such as LVDS.
2006-04-19Clean up SDVO initialization, include config.h, and make it check the rightEric Anholt
slave address on the first device as well. This gets me to the point of bringing up some modes on my device.
2006-04-19Add more SDVO code. It's taken from airlied's driver, but with magic numbersEric Anholt
replaced by symbolic names in many places. I tried to restrain myself from functional changes in airlied's code in this pass.
2006-04-10Add missing MIT copyright licenses, which should have been on all versions.Eric Anholt
2006-04-06Fix prototype for i830DetectCRT.Eric Anholt
2006-04-06Move display base setting to a separate function and use it from both mode setupEric Anholt
and AdjustFrame. Rename AdjustFrame to reflect the fact that it doesn't touch the BIOS.
2006-04-06Replace I830VESASetMode with simpler i830SetMode, which is all native andEric Anholt
doesn't have BIOS-setup workarounds. Multihead behavior may be wrong, and it is all untested.
2006-04-06Start making i830SetMode aware of multiple pipes.Eric Anholt
2006-04-06Move LVDS panel power state setting to a separate function, and reduce magicEric Anholt
numbers.
2006-04-06Add untested CRT detection code.Eric Anholt
2006-04-06Initial add of native CRT modesetting code.Eric Anholt