summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2006-12-04set correct default border colorWang Zhenyu
2006-12-04fix typo in ps kernelWang Zhenyu
fix corrupt in some subspans
2006-12-02Merge branch 'modesetting-origin' into modesettingKeith Packard
2006-12-02DOUBLE_WIDE mode for high pixel clock 8xx. Rewrite PLL search.Keith Packard
High pixel clock modes on pipe A of an 8xx chip require DOUBLE_WIDE mode. It's supposed to be modes > 180MHz or so, but the board I have requires DOUBLE_WIDE mode for clocks > 108MHz or so. The limit is related to the core clock speed of the chip, which can be found indirectly through PCI config space. None of the possible values explain why this board needs this mode for these relatively low clock rates though. Also, create tables of data for the PLL computation and use them instead of code. I think it's cleaner looking. It is also untested on 9xx. It'll work. Really.
2006-12-01Fix copy'n'paste-o from restructure-outputs that resulted in crashes.Eric Anholt
Our driver private is stored in the bus that we set up, not the DDC device that xf86 code does.
2006-12-01Don't try to write the read-only PP_STATUS register.Eric Anholt
Also, don't bother reading the PP_CONTROL register to try to get LVDS status -- that's what PP_STATUS is for.
2006-12-01Add the [ax]4r4g4b4 source picture formats.Eric Anholt
2006-12-01Merge branch 'modesetting' into crestlineKeith Packard
Use new TV output condition (all 9xx except 915g)
2006-12-01TV output exists on all 9xx chips except for 915GKeith Packard
2006-12-01Merge branch 'modesetting' into crestlineKeith Packard
2006-12-01Leave detected TV status alone when no free CRTC is available.Keith Packard
Yes, this means not detecting TV hotplug when two outputs are already running. An alternative would be to turn off one of the other outputs temporarily, but that would cause flashing. Something to consider.
2006-12-01Do output detection before any crtc allocation.Keith Packard
Some output detection requires a crtc for load detection, perform all of the output detection before allocating any crtcs so that there will be a free crtc for any load detection. Avoids losing TV detection when two monitors are connected.
2006-11-30When CRTC is disable through RandR, the mode is NULL. Don't dereference it.Keith Packard
Correctly interpret mode == NULL as CRTC disable, make sure the CRTC is disabled in this case.
2006-11-30Tristate the clock/data pins during GPIO when released while getting values.Eric Anholt
While the register is laid out suggesting that you can read a low value while driving the output high, and the I2C spec seems to indicate that you should be able to as well, and on some hardware this works successfully, on the i865 and perhaps some other chips it doesn't. So, if we're not holding the clock or data pin low during GetBits, tristate the pin so that we can successfully read. This fixes i865 analog (VGA) DDC so it successfully sees slave acks. Also, improve the I2C bit-banging debugging.
2006-11-30Preserve some GPIO bits that the docs tell us to.Eric Anholt
2006-11-30Add debug code for the bit-banging I2C implementation.Eric Anholt
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-30Oops. Don't try to use xf86RandR names, use xf86RandR12 instead.Keith Packard
Attempts to override functions in core server fail, so use new names instead.
2006-11-30Merge branch 'restructure-outputs-origin' into restructure-outputsKeith Packard
2006-11-30Rename I830 randr functions to xf86 as they are becoming generic.Keith Packard
Change function names, create separate i830_randr.h header file to contain definitions.
2006-11-30Merge branch 'exa' of ../xf86-video-intel into modesettingEric Anholt
Conflicts: man/i810.man src/Makefile.am src/i830.h src/i830_driver.c src/i830_rotate.c src/i830_video.c
2006-11-29Properly detect the GTT size on the G965.Eric Anholt
In the past, the GTT has always been sized just large enough to map the whole graphics aperture. However, apparently on the G965 that isn't the case, and it is actually 512KB on hardware with a 256MB aperture. This resulted in X not bothering to allocate memory for 256KB that it thought was already mapped into stolen memory, and thus garbage rendering (particularly visible in large video modes that displayed this unallocated memory). The kernel happens to get the right answer by hardwiring a 512KB GTT size already, but that may not be true on future hardware. Instead, we use a convenient field in PGETBL_CTL that's specifically for the GTT size rather than the aperture size, which gets us the answer we want.
2006-11-29Revert "Don't allocate stuff in the first 256K of video memory (GATT?)"Eric Anholt
This reverts commit 997e8c9bb4235cab1fff4738387df9afcbea0a03. The GTT is definitely located at the end of stolen memory. This commit apparently worked around mis-estimation of the GTT size.
2006-11-29shut up warningWang Zhenyu
2006-11-29fix alpha blending stateWang Zhenyu
2006-11-29Add in sf/wm program for mask picture without CAWang Zhenyu
2006-11-29misc cleanup for G965 vs/sf/wm statesWang Zhenyu
2006-11-29WM kernel needs scratch spaceWang Zhenyu
2006-11-29Setup default border color for our samplersWang Zhenyu
2006-11-29fix vertex buffer sizeWang Zhenyu
2006-11-29clean up issue cmd to ring bufferWang Zhenyu
Make it easy to track different part of ring state, and use rectlist primitive instead.
2006-11-29remove wrong scale_unitsWang Zhenyu
2006-11-29Rename exa sf/wm program filesWang Zhenyu
Also fix some minors in wm program.
2006-11-29EXA state mem for G965Wang Zhenyu
Not split offscreen mem for exa, but alloc a dedicated one for G965 states.
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-28sparse cleanups (use NULL instead of 0 for pointers)Eric Anholt
2006-11-28Remove printing of the XFree86 screen mode list, and some other detritus.Eric Anholt
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-27Driver-independent code tracks num_crtc itself, don't do it in driver.Keith Packard
Now that driver-independent code manages array of crtcs, let it track the count and just have the driver compute how many there are in a separate variable.
2006-11-27Move #include "randrstr.h" from i830.h to i830_xf86Crtc.hKeith Packard
As part of the separation of driver-dependent from driver-independent code, the interactions with RandR are moving entirely out of the driver, which means the driver shouldn't even know about RandR, while the driver-independent code does.
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-27Postpone SDVO DDC bus creation until we've detected the SDVO device.Eric Anholt
This reduces log noise for those of us with no SDVO devices.
2006-11-27Reduce the severity of many informational log messages.Eric Anholt
2006-11-27Re-indent ch7xxx driver.Eric Anholt
2006-11-26Remove mode setting from load detect CRTC allocation.Keith Packard
To share load-detect CRTC allocation with TV driver, move it to the output driver
2006-11-26Clean up reworked data structure code so the server actually starts.Keith Packard
Use i830GeLoadDetectPipe again (instead of missing xf86AllocCrtc). Actually create new Crtc structures. Fix a few other NULL pointer dereferences.
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-22Remove custom configuration code (which was #ifdef'd out).Keith Packard
Multi-screen configuration is moving to generic code.
2006-11-22Note which pipe has failed to be configured for VBlank interruptKeith Packard
2006-11-22Set up maximum screen size for clone instead of panorama.Keith Packard
This avoids heading past the 8Kbyte stride limit of DRI so that 3D will be available by default.