Commit Graph

3440 Commits

Author SHA1 Message Date
Eric Anholt 449e4be503 Correct the DWORD count of several 3D instructions. 2006-07-19 13:34:06 -04:00
Eric Anholt f1b62d890c Replace hand register setting with new i915 fragmet program API. 2006-07-19 13:02:24 -04:00
Eric Anholt 76a316d0ce Merge branch 'master' into exa
Conflicts:

	src/Makefile.am
2006-07-19 12:31:36 -04:00
Eric Anholt baf65ce98a Re-convert i915 video to new fragment shader API.
Although in the history of this branch it had happened before, this time it's
for real.
2006-07-18 19:47:45 -04:00
Eric Anholt bb81e8d6c7 Merge branch 'master' into textured-video
This moves the i915 textured video implementation into i915_video.c to avoid
conflicts in register definitions with i830_reg.h when we use i915_reg.h.
This also means that i810_reg.h's i915 3D regs definitions are removed and
replaced with i915_reg.h usage.

Conflicts:

	src/i830_rotate.c
2006-07-18 19:23:21 -04:00
Eric Anholt 84805167ab Convert i915 rotate code to the new fragment program API. 2006-07-18 18:27:10 -04:00
Eric Anholt 5176d62ba5 Add an API for programming i915 fragment programs. 2006-07-18 18:24:28 -04:00
Eric Anholt 148ef9bdd9 Convert magic numbers to symbolic names in i915 rotate code.
This doesn't cover the fragment shader yet, which we need to make a sensible
set of macros for (at least the basic bits).

Reviewed by:	md5
2006-07-18 17:11:34 -04:00
Wang Zhenyu 433cb6ba82 Fix several size error with STATE3D_LOAD_STATE_IMMEDIATE cmd.
Issue texture coord set with proper scale value.
2006-07-18 17:00:50 +08:00
Wang Zhenyu 855a9f13cb fallback in 'repeat' case for now 2006-07-18 10:02:47 +08:00
Keith Packard a6d438ebe3 Disable spread spectrum clock usage.
The spread spectrum clock generator that improves EMI characteristics for
laptop screens lives in an external chip that is programmed over an i2c bus.
Without correct programming, attempts to use this mode for the LVDS can
result in a DC signal being sent to the panel.

Until we find programming information for this external chip, we should
leave this mode disabled.
2006-07-17 14:11:19 -04:00
Alan Hourihane 16d6263e65 whoops, reverse part of that. 2006-07-16 20:39:52 +01:00
Alan Hourihane 2f50f6d1b1 move ContextMem out of XF86DRI 2006-07-16 20:17:38 +01:00
Eric Anholt c7083a2672 Bug #7404: Only save/restore VGA fonts and not other VGA regs.
This fixes a hang on the i945 during restore.  It appears that saving/restoring
the VGA registers is not important, as we're correctly saving/restoring the
registers we touch within the driver anyway.
2006-07-14 14:28:03 -07:00
Eric Anholt 49b8276056 Add a register restore implementation so we don't crash on LeaveVT.
We shouldn't ever need to save/restore the hi/lo frequency regs, as they're
read-only.
2006-07-14 14:26:16 -07:00
Eric Anholt 6a92a77964 Don't try to probe on more pipes than we really have. 2006-07-14 14:20:41 -07:00
Wang Zhenyu 04d1584737 Current exa render implement for i830 and i915, test on
865GM and 915G. There is issue in picture 'repeat' support.
And also stop recursive behavior in I830WaitLpRing to allow
server to abort instead of system hang.
2006-07-14 16:14:18 +08:00
Adam Jackson de470aaf5c In I830xf86SortModes, catch cases where two modes are equal in only one
dimension, by comparing the areas of the modes.  Otherwise, 800x600 would
sort before 1024x600 if it was added later.
2006-07-13 19:10:11 -04:00
Adam Jackson 22843830eb Fix a thinko; would only inject the FP native mode if a mode list was already
found, which is never the case when there's no xorg.conf.
2006-07-13 17:20:17 -04:00
Eric Anholt 05bcbadd13 Avoid NULL dereference if cursor position changes during a mode change. 2006-07-11 14:05:38 -07:00
Eric Anholt b65f18b05a Bug #7443: Respect the user's Modes configuration, and make it more useful.
Now, mode names generated by DDC get names of the form "WIDTHxHEIGHTxREFRESH".
The matching for user Modes lines takes the user Modes as the prefix that
needs to match, rather than an exact string match or "WIDTHxHEIGHT" match.  So
one can, for example, specify "1024x768" to get any old 1024x768, or
1024x768x60 to get one of the modes named 1024x768x60.
2006-07-11 13:30:24 -07:00
Eric Anholt 5a2e04bd1b Fix crash with DDC when there are no user modes to add. 2006-07-11 10:21:51 -07:00
Luká\u0161 Hejtmánek f9499a68da Make gamma settings apply to the cursor as well, and fix clone-mode gamma. 2006-07-11 10:13:18 -07:00
Luká\u0161 Hejtmánek 7068468ac1 Add support for adjusting saturation value of overlay video. 2006-07-11 09:51:26 -07:00
Alan Hourihane b1c2ea6535 whoops, revert some unnecessary changes 2006-07-11 08:13:30 +01:00
Alan Hourihane 8a44a7acfc Merge branch 'master' of git+ssh://git.freedesktop.org/git/xorg/driver/xf86-video-intel 2006-07-11 07:41:27 +01:00
Alan Hourihane 584b544987 Add an additional check before rotating 2006-07-11 07:40:40 +01:00
Eric Anholt b912bf5673 Clean up warnings in sil164 module. 2006-07-10 18:35:20 -07:00
Eric Anholt d75490701c Hook up SiI164 mode setting (just a matter of turning the chip on).
Also adds register dumping in case this turns out to not be enough, and fixes
a couple of prototypes.
2006-07-10 18:21:04 -07:00
Eric Anholt 426d26ea44 Fix prototype for SaveRegs. 2006-07-10 18:19:51 -07:00
Eric Anholt 8d7987d002 Move to 4-space indents in sil164. 2006-07-10 17:53:06 -07:00
Eric Anholt f5a01a2ef0 Make DVO code light up my sil164-based DVI output, when already set up by BIOS. 2006-07-10 17:19:19 -07:00
Eric Anholt 23a0ee73bc Fix modelist with a configured monitor to not begin with all unvalidated modes. 2006-07-10 17:16:18 -07:00
Eric Anholt 48ba9273dd Fix validation when the first mode is thrown out, and print hsync in modelines. 2006-07-10 15:01:51 -07:00
Eric Anholt 3924ffb7d7 Merge branch 'dvo-merge' into modesetting
Conflicts:

	src/i830_driver.c
2006-07-10 12:12:38 -07:00
Eric Anholt f76f94a743 Supply proper NULL-terminated symbol lists to avoid crashing. 2006-07-10 12:04:09 -07:00
Eric Anholt 5a8f6a486d Improve output bus setup to include LVDS setup for pre-i915. 2006-07-08 15:26:19 -07:00
Eric Anholt df333cc9a8 Initial add of DVO support code. Probes my sil164.
This is a mostly-untested merge of airlied's work.  The I2C modules are intended
to be moved into the core server or a separate driver module when they're
functional and we're happy with the API.
2006-07-07 13:41:33 -07:00
Eric Anholt e1064f52b0 Don't try to probe modes on an SDVO device with NULL sdvo_drv. 2006-07-05 16:00:03 -07:00
Eric Anholt ffa6ecc18b More fixes to "choose closest mode for the pipe" code to select correct refresh. 2006-07-05 14:41:08 -07:00
Eric Anholt dfd7fef457 Bug #7375: Don't double-free the current XF86 mode after a randr reprobe. 2006-07-03 12:01:57 -07:00
Eric Anholt 5d07ebdf4f Only override display size with the XFree86 mode's for actual panel scaling. 2006-07-03 11:59:21 -07:00
Eric Anholt 48f27ac621 Replace i830InjectModes with i830DuplicateModes usage.
The remaining functionality of DuplicateModes was OBE, and the name was bad.
2006-06-28 15:07:01 +02:00
Eric Anholt ce5bd108c5 Validate and insert user and VESA standard modes for DDC or configured fallback.
This isn't really tested because I lack a good CRT to test against currently.
2006-06-28 14:21:49 +02:00
Eric Anholt 367f69f8e7 Replace xf86ValidateModes usage with a set of custom validators and pruning.
This moves us to maintaining MonPtrs per pipe instead of using the EDID
structure "xf86MonPtr", which is closer to what we want to be looking at when
doing validation.  The new validation isn't enough yet -- particularly, we
aren't importing and validating the custom modelines to the pipes when
applicable, but this will be easier than (for example) trying to make flat
panel modes pass xf86ValidateModes through various gross hacks.

Hotplug turn-on/off also happens at SwitchMode time now, instead of at randr
probe time.
2006-06-28 13:10:02 +02:00
Eric Anholt 9fbd3d8f4b If the panel power registers are all zeroes on Mobile parts, disable LVDS.
This is the case on the Mac mini, which is an i945GM but has no LVDS attached.
Powering on with the power timing registers zeroed would probably be a bad idea,
even if there was a panel attached.
2006-06-27 23:31:40 +02:00
Eric Anholt 56f7aedd0a Fix randr current mode reporting and mode loss/mis-configuration on re-randr. 2006-06-27 00:37:56 +02:00
Eric Anholt b85f268051 Fix remaining warning. 2006-06-26 16:26:58 +02:00
Eric Anholt 6a3f89f4b6 Merge branch 'master' into exa
Conflicts:

	src/i830.h
2006-06-26 16:25:58 +02:00
Eric Anholt 3cdc53797b Fix build with new EXA headers. 2006-06-26 16:23:55 +02:00