summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2007-06-25Use local structure for cc_stateCarl Worth
2007-06-25Remove redundant i830WaitSync from i965_prepare_compositeCarl Worth
There were two calls to i830WaitSync, and between them no state was being changed---just offsets were being computed.
2007-06-22Bug #11171: Add support for the Ti TFP410 DVO TMDS transmitter.Dave Mueller
2007-06-22Move the ivch's fixed panel mode support to i830_dvo.c for other LVDS drivers.Eric Anholt
This also results in removal of the setup hook, which was being called unconditionally and breaking non-ivch dvo drivers.
2007-06-22I830 needs to have plane/pipe/pll started in mode_set.Keith Packard
The patch for the i855 to stop enabling plane/pipe/pll in mode_set broke the i830. Revert that just for the i830, leaving it enabled for the i855.
2007-06-22Increase vblank wait timeout from 20ms to 30ms. 49.6Hz < 20ms.Keith Packard
The x40 LVDS mode has a 49.6Hz vertical refresh. Waiting for only 20ms can sometimes cause the driver to start programming the hardware before the vblank has occurred, which will lock up the i855 chipset. Extend this to 30ms (the maximum timeout used by the BIOS) to ensure this doesn't happen. Detecting actual vblank occurance using the various status registers should also be possible but isn't yet working.
2007-06-21Follow BIOS configuration for Legacy Backlight Brightness.Keith Packard
The backlight control in the LVDS controller can either operate in 'normal' mode or 'legacy' mode. In legacy mode, it uses the PCI config space register 0xf4 which can range from 0 to 0xff. In normal mode, it reads the range and current value from the BLC_PWM_CTL register.
2007-06-21Eliminate some uninitialized variable warningsKeith Packard
2007-06-21Add 3DSTATE_CLEAR_PARAMETERS bitsKeith Packard
2007-06-19Fix left G33 issuesWang Zhenyu
Be sure to check G33 chip type in: - sdvo output - Y-major tile - crt detect - and xaa composite Sorry for that I should have fixed them very earlier...
2007-06-18Bug #11295: Disable textured video on i915 with framebuffer width too large.Eric Anholt
2007-06-17Let DPMS functions enable plane/pipe/output on 8xx hardware.Keith Packard
On 855, letting crtc_mode_set enable the plane and pipe will occasionally hang the chip. Instead, wait for crtc_enable to light things up. For 9xx, leave things alone.
2007-06-17Include stdint.h to get uint64_tRémi Cardona
2007-06-15sdvo: add support for RGB outputs on SDVODave Airlie
This lights up my monitor VGA-1 - it doesn't look the best though
2007-06-13Fix and enable the 915-class planar textured video path.Eric Anholt
2007-06-13Improve the drm_i915_flip_t check.Eric Anholt
2007-06-13Revert "Replace failure-prone configure test for fresh libdrm with a simple ↵Eric Anholt
ifndef." This reverts commit c2b130354aecffbeb2a2d23c7371461feaf5766a. Sadly, a non-working DRM_IOCTL_I915_FLIP already existed.
2007-06-12On hang, dump up to the head pointer, not just up to the tail.Eric Anholt
2007-06-12Fix context switching between DRI and X.Eric Anholt
Now, all 3D pipeline consumers in the driver just call IntelEmitInvariantState(), which handles basic state setup, the caching of that state setup, and notifying DRI clients. This also removes a mistaken idle wait in the Render code which was papering over the brokenness in the context switching.
2007-06-12Replace failure-prone configure test for fresh libdrm with a simple ifndef.Eric Anholt
2007-06-12Fix a typo in _3DSTATE_DEPTH_SUBRECT_DISABLE definition.Eric Anholt
This is already fixed in the definition in the 3d driver.
2007-06-12Clean up some nits in i915_video.c setup.Eric Anholt
- The screen dimensions were used for the clipping despite drawing being done to any pixmap, not necessarily the screen. - One piece of state setup was not documented anywhere, and isn't used in other 3d hardware paths that also work. - A 3DSTATE_MODES_1 command (830-class only) was issued even though it no longer exists.
2007-06-08Add description for how to use the frame and pixel counter registers.Keith Packard
The 24-bit frame and pixel counters were not described in detail and will be useful for DRM.
2007-06-06Enable overlay on G33 class chipsetsWang Zhenyu
Which have to use gfx vm offset fot setup overlay regs.
2007-06-05Add support for the G33, Q33, and Q35 chipsets.Wang Zhenyu
These chipsets require that the hardware status page be referenced by an offset in the GTT rather than a physical memory address, so the X Server allocates it rather than the DRM.
2007-06-05Fix misplaced merge of 1280x768 panel fixup.Eric Anholt
2007-06-05Always ensure the pipe A is lit when activating overlay on pipe B.Keith Packard
Ok, so moving video from pipe A to pipe B still requires that pipe A be active during the transition. Instead of trying to be fancy, just ensure that pipe A is running on each transition to pipe B.
2007-06-04Automatically switch overlay when crtcs are reconfigured.Keith Packard
As crtcs are disabled and enabled, make sure the automatic crtc selection mechanism drives overlay configuration at each request to display an image.
2007-05-31Add pci ids for 945GMEWang Zhenyu
2007-05-31Add pci ids for 965GME/GLE chipWang Zhenyu
2007-05-30Extend XV_PIPE range to include new -1 valueKeith Packard
2007-05-30Fix i965 render's draw clip rectangleWang Zhenyu
Use scrn's virtual size is not correct in rotation rendering. This fixes initial rotation problem on i965.
2007-05-29Remove README statement that 830M panels are unsupported.Eric Anholt
2007-05-29Expand manpage description of outputs supported.Eric Anholt
2007-05-29Add a fixup to LVDS panel mode detection for 1280x768 panel from text mode.Eric Anholt
Apparently some BIOSes will program a small mode with large blanking instead of using the pannel fitter.
2007-05-27Mark IVCH as connected when detectedKeith Packard
2007-05-27On i830, Pipe B cannot be lit the first time unless Pipe A is running.Keith Packard
I don't understand it, but just like the video overlay, if Pipe A is not running, Pipe B will not turn the first time it is activated. This patch restructures the code used for the video overlay to share it with the crtc commit function.
2007-05-25Compute and clip to crtc before call to xf86XVClipVideoHelper.Keith Packard
By clipping to the crtc ahead of time, xf86XVClipVideoHelper will correctly clip to the bounds of the crtc, eliminating the need for any custom crtc clipping. Also, replace the broken xf86XVFillKeyHelper with a private version that doesn't end up stuck with the wrong clip list when the root window changes size.
2007-05-25Ensure Pipe A is active when enabling overlay the first time.Keith Packard
The overlay on the i830 appears to be clocked by Pipe A when being enabled. If pipe A is not running, it will freeze the overlay and blank the screen. Setting a random mode on the Pipe and turning it on fixes this problem nicely.
2007-05-25Xv does not require directRenderingKeith Packard
2007-05-24Clean up CRTC selection. Remove more overlay blocking.Keith Packard
Create separate CRTC selection function, use ints instead of floats for coverage measurement. Remove pipe stalls waiting for overlay update.
2007-05-24Eliminate blocking for video overlay.Keith Packard
No need to block for the overlay; just use the idle buffer. This will always work because the buffer switch occurs at vblank time, so there is always plenty of time to get the next buffer contents in place before it starts getting scanned to the screen.
2007-05-23Reformat i830_video.c to four-space indents.Keith Packard
Yes, I can't stand it anymore. it's a huge patch, but git-diff -w shows no changes.
2007-05-23Clean up overlay management.Keith Packard
Create separate on/continue/off functions for overlay. Manage overlayOn boolean within those functions. Eliminate redundant management code in other routines.
2007-05-23Use FLIP_CONTINUE with ~OVERLAY_ENABLE to turn overlay off.Keith Packard
This makes the overlay work on i830 with the modesetting driver. I don't know why the pre-modesetting driver worked without this, but it did. A more 'correct' fix would be welcome, but this does seem to do the trick.
2007-05-23Automatically select crtc based on coverage.Keith Packard
By default, select crtc based on which one covers more of the video output. pipe property can be used to override selection when both have partial coverage.
2007-05-23Use CRTCs instead of pipe indices for video pipe selection.Keith Packard
Replace pipe indices with crtc indices and store references to the xf86Crtc objects in the video private structure.
2007-05-23Dump pending ring on crash.Keith Packard
When the hardware locks up, dump the pending commands in the ring for analysis.
2007-05-22i830: Provide new DRI texOffsetStart hook when available with EXA.Michel Dänzer
2007-05-18Update vblank pipes when a pipe gets disabled.Michel Dänzer