Commit Graph

1346 Commits

Author SHA1 Message Date
Eric Anholt
3c552af65d Update documentation and bump driver version to 2.1.0. xf86-video-intel-2.1.0 2007-07-02 18:33:47 -07:00
Eric Anholt
2b9961eb9c Fix reversed LVDS dither enabling logic on GM965. 2007-07-02 15:16:33 -07:00
Eric Anholt
3d9ee8b299 Bug #11365: Disable the panel fitter unless it's needed for the chosen mode.
The automatic panel scaling appears to choose bad sampling on some GM965
hardware for 1:1 mapping modes, and there's no real sense in having it on
if we just want 1:1.
2007-07-02 14:38:28 -07:00
Keith Packard
1e2e301348 Fix load detection to use border region instead of blanking.
Make sure there is some border area to use by changing how the pipe is
configured, then pick a scanline in the middle of the border for load
detection. This lets the load detect code use an active pipe instead of
requiring an idle one.
2007-06-30 12:45:24 -07:00
Alan Coopersmith
11862c2e1f Add *~ to .gitignore to skip emacs & patch backup files 2007-06-28 23:31:28 -07:00
Alan Coopersmith
6503eb4502 Add AM_PROG_CC_C_O to configure.ac
Clears automake-1.10 warning: src/bios_reader/Makefile.am:8: compiling
 `bios_dumper.c' with per-target flags requires `AM_PROG_CC_C_O' in
 `configure.ac'
2007-06-28 23:30:35 -07:00
Keith Packard
5257e36f50 Handle dual-channel LVDS on i855.
Just as with i9xx LVDS, the i855 LVDS can operate in dual-channel mode with
a modified P2 divisor value (7 instead of 14). Just using the existing 9xx
code for 855 appears to work fine.
2007-06-28 15:29:52 -07:00
Keith Packard
16bfcb8042 Decode PLL registers in LVDS mode a bit better in debug code.
LVDS mode changes how the PLL works in fairly dramatic ways; the debug code
wasn't properly accounting for those differences resulting in fairly bogus
debug output.
2007-06-28 15:27:56 -07:00
Wang Zhenyu
9675ccb308 EXA: fallback mask transform on i965
It needs to fix shader programs which hasn't been done yet.
2007-06-27 09:23:33 +08:00
Wang Zhenyu
7a2300c88a EXA: don't have to check offscreen size
DDX will check it for EXA_OFFSCREEN_PIXMAPS flag
2007-06-27 09:19:22 +08:00
Carl Worth
fff4a3b58f Use local structures for vs_state, sf_state, and wm_state 2007-06-25 23:15:58 -07:00
Carl Worth
0a8a4afd3c Use local structure for src_sampler_state and mask_sampler_state 2007-06-25 23:12:23 -07:00
Carl Worth
499166a60f Use local structure for mask_surf_state 2007-06-25 23:09:17 -07:00
Carl Worth
a418ef7316 Use local structure for src_surf_state 2007-06-25 23:07:19 -07:00
Carl Worth
0e3c0b1782 Use local structure for dest_surf_state 2007-06-25 23:05:50 -07:00
Carl Worth
41a2c0f154 Use local structure for cc_state 2007-06-25 23:03:47 -07:00
Carl Worth
59f2150cac Remove redundant i830WaitSync from i965_prepare_composite
There were two calls to i830WaitSync, and between them no state was
being changed---just offsets were being computed.
2007-06-25 11:47:40 -07:00
Dave Mueller
66aa0e61e1 Bug #11171: Add support for the Ti TFP410 DVO TMDS transmitter. 2007-06-22 16:45:54 -07:00
Eric Anholt
f8d7cbc6e1 Move the ivch's fixed panel mode support to i830_dvo.c for other LVDS drivers.
This also results in removal of the setup hook, which was being called
unconditionally and breaking non-ivch dvo drivers.
2007-06-22 16:38:31 -07:00
Keith Packard
ec236c76b9 I830 needs to have plane/pipe/pll started in mode_set.
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-22 16:32:46 +01:00
Keith Packard
d957c6b8e1 Increase vblank wait timeout from 20ms to 30ms. 49.6Hz < 20ms.
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-22 01:32:02 +01:00
Keith Packard
a67c296538 Follow BIOS configuration for Legacy Backlight Brightness.
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-21 23:59:38 +01:00
Keith Packard
d6e46f67ab Eliminate some uninitialized variable warnings 2007-06-21 20:16:36 +01:00
Keith Packard
9d104634cf Add 3DSTATE_CLEAR_PARAMETERS bits 2007-06-21 01:18:09 +01:00
Wang Zhenyu
3bbf313ba5 Fix left G33 issues
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-19 09:36:35 +08:00
Eric Anholt
acef342c87 Bug #11295: Disable textured video on i915 with framebuffer width too large. 2007-06-18 11:57:48 -07:00
Keith Packard
fbbb41bc5e Let DPMS functions enable plane/pipe/output on 8xx hardware.
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-17 17:31:03 +01:00
Rémi Cardona
d5ca000ece Include stdint.h to get uint64_t 2007-06-17 17:31:03 +01:00
Dave Airlie
6b2ae93506 sdvo: add support for RGB outputs on SDVO
This lights up my monitor VGA-1 - it doesn't look the best though
2007-06-15 23:30:04 +10:00
Eric Anholt
671ba03bef Fix and enable the 915-class planar textured video path. 2007-06-13 16:30:26 -07:00
Eric Anholt
6c29e0bae5 Improve the drm_i915_flip_t check. 2007-06-13 13:40:39 -07:00
Eric Anholt
420e41e792 Revert "Replace failure-prone configure test for fresh libdrm with a simple ifndef."
This reverts commit c2b130354a.

Sadly, a non-working DRM_IOCTL_I915_FLIP already existed.
2007-06-13 13:34:26 -07:00
Eric Anholt
51612e5ac3 On hang, dump up to the head pointer, not just up to the tail. 2007-06-12 16:09:54 -07:00
Eric Anholt
ceb6dd7244 Fix context switching between DRI and X.
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-12 10:04:39 -07:00
Eric Anholt
c2b130354a Replace failure-prone configure test for fresh libdrm with a simple ifndef. 2007-06-12 08:50:14 -07:00
Eric Anholt
0e1deb607f Fix a typo in _3DSTATE_DEPTH_SUBRECT_DISABLE definition.
This is already fixed in the definition in the 3d driver.
2007-06-12 08:43:39 -07:00
Eric Anholt
8d7a0ccd4f Clean up some nits in i915_video.c setup.
- 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-12 08:43:39 -07:00
Keith Packard
15caa64a49 Add description for how to use the frame and pixel counter registers.
The 24-bit frame and pixel counters were not described in detail and
will be useful for DRM.
2007-06-08 18:44:28 -07:00
Wang Zhenyu
404fd47573 Enable overlay on G33 class chipsets
Which have to use gfx vm offset fot setup overlay regs.
2007-06-06 11:01:48 +08:00
Wang Zhenyu
f4c05973d3 Add support for the G33, Q33, and Q35 chipsets.
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-05 11:34:22 -07:00
Eric Anholt
36fcaeb2ef Fix misplaced merge of 1280x768 panel fixup. 2007-06-05 11:22:58 -07:00
Keith Packard
8a19e7d57b Always ensure the pipe A is lit when activating overlay on pipe B.
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-05 00:09:57 -07:00
Keith Packard
e986f6cb62 Automatically switch overlay when crtcs are reconfigured.
As crtcs are disabled and enabled, make sure the automatic crtc selection
mechanism drives overlay configuration at each request to display an image.
2007-06-04 23:52:23 -07:00
Wang Zhenyu
0984c1fc09 Add pci ids for 945GME 2007-05-31 10:19:31 +08:00
Wang Zhenyu
88ee25ebad Add pci ids for 965GME/GLE chip 2007-05-31 10:19:31 +08:00
Keith Packard
92e4deb50e Extend XV_PIPE range to include new -1 value 2007-05-30 11:49:07 -06:00
Wang Zhenyu
888a4a5f46 Fix i965 render's draw clip rectangle
Use scrn's virtual size is not correct in rotation rendering.
This fixes initial rotation problem on i965.
2007-05-30 14:42:35 +08:00
Eric Anholt
516fb73ffe Remove README statement that 830M panels are unsupported. 2007-05-29 11:07:51 -07:00
Eric Anholt
72462568da Expand manpage description of outputs supported. 2007-05-29 11:07:51 -07:00
Eric Anholt
906b974bfe Add a fixup to LVDS panel mode detection for 1280x768 panel from text mode.
Apparently some BIOSes will program a small mode with large blanking instead of
using the pannel fitter.
2007-05-29 11:07:50 -07:00