Commit Graph

1176 Commits

Author SHA1 Message Date
Eric Anholt 490d05f99d Fix typo in previous commit with s/XF86_DRI/XF86DRI/ 2007-05-02 14:31:56 -07:00
Dave Airlie c7bb34e83d disable all outputs on EnterVT
This disables all outputs on EnterVT as the SDVO output can confuse
the VGA output if the BIOS has enabled it on the same pipe but X
isn't going to use the SDVO.

Worked out on irc with keithp
2007-05-02 14:25:39 +10:00
Samuel Thibault cae0ae237b Bug #10714: Fix build without DRI. 2007-05-01 12:41:18 -07:00
Eric Anholt 6748d620fb Ignore VideoRam now that its original purpose is obsolete.
It had been necessary to allow more than a small amount of memory to be
allocated, but now those old small allocations people had configured are
getting in the way.
2007-04-30 19:15:34 -07:00
Eric Anholt a4f1a7872f Allow physical-memory allocations within stolen memory.
Because stolen memory happens to be a contiguous block of high system memory,
we can just read the GTT entries for it to get physical addresses for our
allocations there if needed.  This reduces fragmentation of the aperture space,
and will often reclaim up to 7 MB of memory that had been left unused since the
simplified aperture manager was put in place, but without reintroducing the
complexities of the old aperture manager.
2007-04-30 19:15:24 -07:00
Eric Anholt 7d0d34cfdc Disable some clock gating functions documented to work incorrectly. 2007-04-30 18:40:03 -07:00
Wang Zhenyu 138ac8f36c Alloc state mem buffer on 965G for xaa rotation
965G needs state mem buffer to setup render pipeline.
Thanks Barry Scrott for report this.
2007-04-29 14:43:19 +08:00
Kristian Høgsberg 0cd524e541 Implement the custom I2C protocol used by the ivch DVO.
The ihch DVO uses a modified I2C addressing scheme as described
in section 5.2 of the data sheet.  Implement this by over-riding
the I2C read and write word routines.
2007-04-25 18:09:10 -04:00
Keith Packard 880314aabe CRTC Rotation under XAA wasn't hitting accelerated path.
The server rotation code is now using the root window in IncludeInferiors
mode rather than using the screen pixmap. Change the XAA Composite code
to check for this case now.
2007-04-24 11:37:08 -07:00
Keith Packard b23eae55c8 Merge branch 'origin' 2007-04-19 20:38:18 -07:00
Wang Zhenyu cebdb8bfc6 EXA: set enabling bits properly for i830
This was found when debug exa on a 865GV, we should set
pipeline state bits properly, otherwise the engine will hang.
2007-04-20 10:54:34 +08:00
Keith Packard 60e891915a Eliminate LinearAlloc option and code.
With the fixes to the 2D frame buffer allocation that allows up to 65536
lines of 2D frame buffer in XAA mode, the old linear allocation hacks are no
longer necessary.
2007-04-19 14:02:23 -07:00
Keith Packard cca3897690 Clean up 1.2 xserver build support.
Convert relative X server source path to absolute.  Check for local copies
of needed header files before building, rather than requiring server source.
Remove extra duplicate -I elements in AM_CFLAGS in sub directories.
2007-04-19 13:15:23 -07:00
Keith Packard 07797fee88 Fix mismatching braces when XF86DRI_MM is not defined.
A closing brace was left inside #ifdef XF86DRI_MM while the matching
open brace was outside.
2007-04-19 13:01:37 -07:00
Keith Packard 163c565527 Use I2C delay function instead of usleep.
usleep isn't always available, and we have an existing delay mechanism
available to use.
2007-04-19 13:00:03 -07:00
Wang Zhenyu 378ceea3d9 Fix mem list order and remove extra unbind call when free memory 2007-04-19 17:30:28 +08:00
Alan Hourihane db4b9e1881 Fix return status 2007-04-18 13:52:08 +01:00
Alan Hourihane 3f5111940e Update read_response to include the try on PENDING status
and remove it from get attached displays call.
2007-04-18 13:28:25 +01:00
Eric Anholt 902388fa06 Don't try to init the XAA linear region unless we allocated memory for it.
Reported by JM Ibanez
2007-04-17 14:21:25 -07:00
Eric Anholt 8abecae202 Fix i852 EXA Composite acceleration setup.
Reported by JM Ibanez.
2007-04-17 12:28:47 -07:00
Timo Aaltonen 2dbe8d678b Fix build against xserver 1.2. 2007-04-17 12:28:47 -07:00
Eric Anholt a089ac11be Add all the possible ivch slave addresses (still commented out). 2007-04-17 11:01:24 -07:00
Eric Anholt 37ee68a95c Bug #10438: Fix 965 XV when sourcing from less than the full image.
Bob deinterlacing in MythTV, and the zoom options in totem would result in
attempting to source from outside the video instead of scaling appropriately.
2007-04-17 11:01:24 -07:00
Alan Hourihane ac9181c014 Check for the PENDING message when reading the attached
displays. Ensures the command has completed before continuing.

(probably need to check PENDING in other SDVO calls too)
2007-04-17 16:30:17 +01:00
Wang Zhenyu ab5bdee8a6 EXA: fix i830 render
Fix tex blend pipeline in case that src/mask pict has no
alpha. Unmask color buffer write disable bits. These make
rendercheck run fine on 855GM.
2007-04-17 16:23:46 +08:00
Wang Zhenyu 1a29750b8d EXA: fix 830/845G pict format
Fallback in 830/845G when pict format is a8, x8r8g8b8 or
x8b8g8r8. The hw doesn't support them.
2007-04-16 16:21:39 +08:00
Wang Zhenyu 3a634bbd19 EXA: Add i830 supported pict format XRGB8888, XBGR8888 2007-04-16 15:14:49 +08:00
Wang Zhenyu 3bcb9a0b4b EXA: i830 render misc fix and cleanups
Try to map texture stream when setup texture map, and use
correct order in load_immediate_1 cmd, which fixed crash on
845GV. Also remove some flush cmds.
2007-04-16 14:27:49 +08:00
Wang Zhenyu b67adb6de3 Fix crash on G965 XAA with LinearAlloc option
We should alloc xaa_linear mem in LinearAlloc case, otherwise
we get crash when initializing xf86 fb manager.
2007-04-13 22:34:52 +08:00
Eric Anholt b5b243e412 Add license headers to 965 programs. 2007-04-12 12:34:23 -07:00
Eric Anholt aa850d3c63 Turn off ALWAYS_SYNC in EXA.
This slipped in as a debugging aid, and never got turned off.  The driver
appears to work fine without it on an i915 system, and for the non-default EXA
option, we'd rather see issues found than continue running with debugging aids
and hiding them behind bad performance.
2007-04-09 11:44:25 -07:00
Eric Anholt d2e75d8acd Avoid a magic number and correct a (currently harmless) ifdef in ResetState(). 2007-04-09 11:34:57 -07:00
Eric Anholt 9b78208f1e Move a bunch of debugging verbosity under Option "ModeDebug". 2007-04-03 00:15:04 -07:00
Dave Airlie c59e5895a0 make warning info only so ppl don't go reporting stupid bugs 2007-04-02 07:18:04 +10:00
Eric Anholt e119eaabb2 Warnings cleanup in ch7xxx. 2007-03-30 17:19:41 -07:00
Eric Anholt fd98e88d1a Finish off some function renaming that was missed before.
Thanks to alanc for catching this.
2007-03-30 17:19:35 -07:00
Eric Anholt 274b99e5e7 Don't forget the warnings CFLAGS in subdirectories. 2007-03-30 17:19:22 -07:00
Keith Packard aa6a9abb34 Merge branch 'crestline-qa' 2007-03-30 12:10:17 -07:00
Eric Anholt 670c8521f1 Add missing file for old server compatibility build. 2007-03-29 13:44:50 -07:00
Eric Anholt 89c84f939f Whitespace cleanup in Makefile. 2007-03-29 13:44:45 -07:00
Wang Zhenyu 6cd3b2c2de EXA: i830 fix blend action
i830_get_blend_cntl() has already added S8 offset.
2007-03-27 15:34:32 +08:00
Wang Zhenyu 35b3dd881a EXA: fix i830 componentAlpha support
Pick fix from i915 render, change tex blend pipeline for CA.
2007-03-27 15:33:43 +08:00
Wang Zhenyu df96d9a11d EXA: fix i830 texture setup
Use LOAD_IMM_2 helper cmd for tex setup. Enable RepeatNormal
support. Fix A8 format, i830 can support it now.
2007-03-27 15:32:53 +08:00
Nian Wu 107ac12867 Merge git://proxy01.pd.intel.com:9419/git/xorg/driver/xf86-video-intel into crestline 2007-03-27 12:51:45 +08:00
Eric Anholt f7befe50af Power on the LVDS B-channel pairs only when we've chosen dual-channel mode.
It was basing off of the clock rate, but we have an override to use the
existing dual channel state when we can detect it, so the two settings were
conflicting.
2007-03-26 13:02:20 -07:00
Nian Wu 654881794a Merge git://proxy01.pd.intel.com:9419/git/xorg/driver/xf86-video-intel into crestline 2007-03-26 17:00:11 +08:00
Keith Packard d5727717c9 Switch TV_FORMAT property to format XA_ATOM
This allows the driver to report the set of valid formats in the property
data.
2007-03-25 23:44:59 -07:00
Nian Wu 6de3edcb52 Merge git://proxy01.pd.intel.com:9419/git/xorg/driver/xf86-video-intel into crestline 2007-03-24 17:00:13 +08:00
Keith Packard 1e6e675524 Eliminate calls to RRPostPendingProperty.
RRPostPendingProperty has been removed in favor of RRPostPendingProperties,
and that call is now managed outside of the driver.
2007-03-23 23:42:52 -07:00
Keith Packard 28da6f4e30 Record 3D state loss at EnterVT in last_3d value.
last_3d set to LAST_3D_OTHER indicates that the 3D hardware has unknown
state.
2007-03-23 14:37:25 -07:00