Arthur Huillet [Fri, 4 Jan 2008 23:38:52 +0000 (01:38 +0200)]
Xv: linearly interpolate U and V samples when converting from YV12 to YUY2
Original patch by ahuillet, pq did one last fix.
Stuart Bennett [Fri, 4 Jan 2008 17:59:54 +0000 (17:59 +0000)]
More DCB 1.4/1.5 fixes
Maarten Maathuis [Fri, 4 Jan 2008 17:33:31 +0000 (18:33 +0100)]
randr12: Forgot to switch to vpll1_a, etc in one place.
Stuart Bennett [Fri, 4 Jan 2008 01:14:40 +0000 (01:14 +0000)]
randr12: fix BIT bios LVDS dpms
Stuart Bennett [Fri, 4 Jan 2008 13:26:38 +0000 (13:26 +0000)]
Better guesses at DCB 1.4/1.5
Maarten Maathuis [Fri, 4 Jan 2008 10:54:27 +0000 (11:54 +0100)]
randr12: Remove unnecesary usleep.
- I once did this thinking it may solve a bug, but it turned out a palette issue.
Maarten Maathuis [Fri, 4 Jan 2008 10:43:16 +0000 (11:43 +0100)]
NV40: Improve VCO2 detection in nvGetClocks()
Maarten Maathuis [Fri, 4 Jan 2008 10:39:37 +0000 (11:39 +0100)]
randr12: Improve speed of mode switches.
- Moved pre-NV40 to vpll1_a, vpll1_b, etc variables.
- Only change vpll when needed.
Stuart Bennett [Fri, 4 Jan 2008 02:31:21 +0000 (02:31 +0000)]
Infra for regs stored over suspend and a sort-of implementation of INIT_COMPUTE_MEM
Stuart Bennett [Thu, 3 Jan 2008 02:21:35 +0000 (02:21 +0000)]
Better bios register read function prototype and a ReadEXTDEV purge
Stuart Bennett [Thu, 3 Jan 2008 00:52:12 +0000 (00:52 +0000)]
Refactor NVParseBios
Stuart Bennett [Thu, 3 Jan 2008 00:32:24 +0000 (00:32 +0000)]
Revert "randr12: LVDS screens use center mode."
This reverts commit
1142b15c56a0b9dab8b929fc196a825815457374.
They don't, necessarily
Maarten Maathuis [Thu, 3 Jan 2008 21:45:00 +0000 (22:45 +0100)]
NV40: Handle broken VCO2 values.
Maarten Maathuis [Thu, 3 Jan 2008 21:36:04 +0000 (22:36 +0100)]
NV40: A better attempt at YUV->RGB conversion constants + remove vblank sync.
- The vblank sync didn't work (made things worse actually), someone needs to reverse engineer the proper way for the 3d engine.
Maarten Maathuis [Thu, 3 Jan 2008 11:48:43 +0000 (12:48 +0100)]
NV40: Avoid a SIGFPE in nvGetClocks() when VCO2 is off.
Maarten Maathuis [Thu, 3 Jan 2008 11:37:10 +0000 (12:37 +0100)]
NV40: Actually add the attribute.
Stephane Marchesin [Thu, 3 Jan 2008 04:56:23 +0000 (05:56 +0100)]
Add a vsync attribute to nv40 textured video. It doesn't seem to work so well for me (6200), I suspect because my card is too slow anyway. Possible solutions include reducing the shader instruction # and forcing drawing from top to bottom.
Maarten Maathuis [Wed, 2 Jan 2008 11:15:21 +0000 (12:15 +0100)]
randr12: Hopefully these were all the function declerations that need updating.
- Build didn't even show any errors, so that's why i missed them.
Maarten Maathuis [Tue, 1 Jan 2008 23:19:12 +0000 (00:19 +0100)]
Dump some CARD8 and CARD32 in favour of uintX_t.
Maarten Maathuis [Tue, 1 Jan 2008 21:38:34 +0000 (22:38 +0100)]
randr12: Small fix for NV4x cards with strange output routes.
Maarten Maathuis [Tue, 1 Jan 2008 20:51:31 +0000 (21:51 +0100)]
randr12: Improve output routing.
Maarten Maathuis [Tue, 1 Jan 2008 20:07:36 +0000 (21:07 +0100)]
randr12: Really hopefully fix output resource conflict detection now.
Maarten Maathuis [Tue, 1 Jan 2008 19:38:24 +0000 (20:38 +0100)]
randr12: Hopefully fix output resource conflict detection.
Maarten Maathuis [Tue, 1 Jan 2008 18:41:07 +0000 (19:41 +0100)]
Forgot the NOUVEAU_EXA_PIXMAPS case.
Maarten Maathuis [Tue, 1 Jan 2008 18:36:28 +0000 (19:36 +0100)]
Stricter alignment requirements for offscreenBase, to avoid framebuffer corruption.
Maarten Maathuis [Tue, 1 Jan 2008 16:36:20 +0000 (17:36 +0100)]
randr12: Time to let some routing insanity die.
- I hope nvidia is just crazy sometimes when setting CRTC1 on both output resources.
- Or is it some override used on load detect?
Maarten Maathuis [Tue, 1 Jan 2008 16:28:41 +0000 (17:28 +0100)]
randr12: Always set bit 26 in FP_DEBUG_0 if already present.
Maarten Maathuis [Tue, 1 Jan 2008 16:01:19 +0000 (17:01 +0100)]
randr12: Minor tweak to flatpanel regs.
Maarten Maathuis [Tue, 1 Jan 2008 13:25:54 +0000 (14:25 +0100)]
Remove AM_MAINTAINER_MODE from configure.ac
Maarten Maathuis [Mon, 31 Dec 2007 19:24:41 +0000 (20:24 +0100)]
randr12: Fix a bug in an earlier commit.
- This was local, but i wanted to keep some things seperate.
Maarten Maathuis [Mon, 31 Dec 2007 19:15:03 +0000 (20:15 +0100)]
randr12: Add a quirk for 1280x800 panel on 7300go.
Maarten Maathuis [Mon, 31 Dec 2007 18:34:33 +0000 (19:34 +0100)]
randr12: Duplicate native modes, to avoid hitting an invalid pointer.
Maarten Maathuis [Mon, 31 Dec 2007 17:57:49 +0000 (18:57 +0100)]
randr12: Set the adjusted mode in output code.
Maarten Maathuis [Mon, 31 Dec 2007 13:20:41 +0000 (14:20 +0100)]
randr12: Deal with output resources in a better way.
Maarten Maathuis [Mon, 31 Dec 2007 12:18:16 +0000 (13:18 +0100)]
randr12: Disable crt load detect again, until i know how to use it properly.
Maarten Maathuis [Sun, 30 Dec 2007 18:11:48 +0000 (19:11 +0100)]
Revert "randr12: Another quirk for the 7300GO cards."
This reverts commit
2f2921e6c33a0482f1f30e4d69820dc82690310a.
It was unneeded after all.
Maarten Maathuis [Sun, 30 Dec 2007 16:07:13 +0000 (17:07 +0100)]
randr12: Another quirk for the 7300GO cards.
Maarten Maathuis [Sun, 30 Dec 2007 15:44:23 +0000 (16:44 +0100)]
randr12: Fix quad view on some 7300GO cards.
Maarten Maathuis [Sun, 30 Dec 2007 14:01:47 +0000 (15:01 +0100)]
Add some headerfiles to Makefile.am
Maarten Maathuis [Sun, 30 Dec 2007 12:35:47 +0000 (13:35 +0100)]
randr12: Only load palette's when appropriate.
Maarten Maathuis [Sun, 30 Dec 2007 12:26:24 +0000 (13:26 +0100)]
NV40: Some fixes and safeties.
Maarten Maathuis [Sun, 30 Dec 2007 10:36:10 +0000 (11:36 +0100)]
NV40: Fix some comments and a damage reporting bug.
Maarten Maathuis [Sun, 30 Dec 2007 01:31:38 +0000 (02:31 +0100)]
NV40: Fix the texturing adapter when not rendering offscreen.
- Now clip restrictions are taken into consideration.
- No streching when clipping the border of a screen anymore.
Maarten Maathuis [Sat, 29 Dec 2007 21:34:32 +0000 (22:34 +0100)]
randr12: Minor cleanup.
Maarten Maathuis [Sat, 29 Dec 2007 20:46:18 +0000 (21:46 +0100)]
randr12: Micro cleanup.
Maarten Maathuis [Sat, 29 Dec 2007 19:15:25 +0000 (20:15 +0100)]
NVBIOS: Fix duallink detection.
Maarten Maathuis [Sat, 29 Dec 2007 18:34:12 +0000 (19:34 +0100)]
randr12: Do not remove bits in DITHER register.
Maarten Maathuis [Sat, 29 Dec 2007 14:09:08 +0000 (15:09 +0100)]
NV40: Preliminary Xv Texture Adaptor.
- Only supports YV12.
- No attributes.
- Only the Y component gets bilinear filtering.
- You're welcome to improve it ;-)
Peter Winters [Sat, 29 Dec 2007 11:15:40 +0000 (12:15 +0100)]
Xv: nforce2 overlay can do yv12
Maarten Maathuis [Fri, 28 Dec 2007 20:11:49 +0000 (21:11 +0100)]
randr12: LVDS screens use center mode.
Andrew Randrianasulu [Fri, 28 Dec 2007 19:59:17 +0000 (20:59 +0100)]
Fix IFC on nv4/5 by using the proper object.
Stuart Bennett [Fri, 28 Dec 2007 05:45:10 +0000 (05:45 +0000)]
Make sure the CRTC regs are unlocked when doing bios init
Also make the single stage PLL setter less exploitable by the whims of the hardware
Stuart Bennett [Fri, 28 Dec 2007 08:23:17 +0000 (08:23 +0000)]
Fake a DCB entry for cards from the pre-DCB era
Also, drop DCB parsing to after the init parsing again; having an INIT_TMDS in
the init scripts would be silly (the original reason for bumping DCB parsing up)
Stuart Bennett [Fri, 28 Dec 2007 07:36:58 +0000 (07:36 +0000)]
Madness. Bios parsing for NV05
Maarten Maathuis [Thu, 27 Dec 2007 19:01:14 +0000 (20:01 +0100)]
randr12: Minor change.
Maarten Maathuis [Thu, 27 Dec 2007 18:50:27 +0000 (19:50 +0100)]
randr12: Small change.
Maarten Maathuis [Thu, 27 Dec 2007 18:25:00 +0000 (19:25 +0100)]
randr12: minor change
Maarten Maathuis [Thu, 27 Dec 2007 17:37:30 +0000 (18:37 +0100)]
randr12: Undo unnecesary change.
Maarten Maathuis [Thu, 27 Dec 2007 16:12:17 +0000 (17:12 +0100)]
randr12: Some fixes for LVDS and an odd 7300GO.
Stuart Bennett [Wed, 26 Dec 2007 20:59:36 +0000 (20:59 +0000)]
Fix the setPLL optional code to actually compile
Stuart Bennett [Wed, 26 Dec 2007 21:31:16 +0000 (21:31 +0000)]
Fix up getting modes for both TMDS and LVDS
Maarten Maathuis [Wed, 26 Dec 2007 20:21:15 +0000 (21:21 +0100)]
randr12: Remove this, since it's not essential and can cause problems.
Maarten Maathuis [Wed, 26 Dec 2007 19:28:43 +0000 (20:28 +0100)]
randr12: Some minor fixed for dvi and lvds.
Maarten Maathuis [Wed, 26 Dec 2007 13:51:49 +0000 (14:51 +0100)]
randr12: Some assorted fixes for dual link outputs.
Stuart Bennett [Tue, 25 Dec 2007 23:50:10 +0000 (23:50 +0000)]
On some chips we shouldn't look for a 27MHz crystal
Maarten Maathuis [Tue, 25 Dec 2007 18:43:47 +0000 (19:43 +0100)]
randr12: Some minor changes.
Maarten Maathuis [Tue, 25 Dec 2007 10:58:09 +0000 (11:58 +0100)]
randr12: Restrict TMDS register backup to digital outputs.
- The NV11 locks up when accessing these and it has no digital outputs, so ;-)
Stuart Bennett [Mon, 24 Dec 2007 22:33:21 +0000 (22:33 +0000)]
Better (not complete) support for DCB1.1/1.2
Stuart Bennett [Mon, 24 Dec 2007 21:00:31 +0000 (21:00 +0000)]
"type1" bios scripts
Stuart Bennett [Mon, 24 Dec 2007 18:13:47 +0000 (18:13 +0000)]
Rehabilitate BMP parsing
Stuart Bennett [Mon, 24 Dec 2007 22:51:51 +0000 (22:51 +0000)]
Fix BMP length for version 5.16
Stuart Bennett [Mon, 24 Dec 2007 15:23:41 +0000 (15:23 +0000)]
randr12: use new PLL code on < NV40
Stuart Bennett [Mon, 24 Dec 2007 05:31:37 +0000 (05:31 +0000)]
setPLL routines for single and two stage plls
plus some parsing fixes
Stuart Bennett [Mon, 24 Dec 2007 02:29:54 +0000 (02:29 +0000)]
Two stage nv31 PLL mnp calculator and bios limits parsing
Stuart Bennett [Sun, 23 Dec 2007 03:09:26 +0000 (03:09 +0000)]
Single stage PLL MNP calculator
Maarten Maathuis [Sun, 23 Dec 2007 21:05:10 +0000 (22:05 +0100)]
Reading into the -1 index of array is a bad idea, this should fix subchannel binding issues.
Maarten Maathuis [Sun, 23 Dec 2007 14:48:24 +0000 (15:48 +0100)]
randr12: Add modesetting debug option (showing most register writes).
- Contribution of ahuillet.
Maarten Maathuis [Sun, 23 Dec 2007 14:35:24 +0000 (15:35 +0100)]
NV40EXA: Suport as many of the repeat types as possible + random cleanup(randr12).
Arthur Huillet [Sun, 23 Dec 2007 12:49:24 +0000 (13:49 +0100)]
Revert a manifestation of my stupidity.
Arthur Huillet [Sun, 23 Dec 2007 12:47:08 +0000 (13:47 +0100)]
Xv: added an attribute to change the CRTC the overlay is on - useful with dualhead
Arthur Huillet [Sat, 22 Dec 2007 22:32:36 +0000 (23:32 +0100)]
aunedsoau~
Maarten Maathuis [Sun, 23 Dec 2007 10:46:17 +0000 (11:46 +0100)]
randr12: Extend dvi clock setting to nv3x also + cleanup.
Maarten Maathuis [Sun, 23 Dec 2007 09:46:09 +0000 (10:46 +0100)]
randr12: Actually load the default palette on modeset.
Maarten Maathuis [Sun, 23 Dec 2007 09:32:18 +0000 (10:32 +0100)]
randr12: Simplify code a bit by using the more sane code for NV4x also.
Maarten Maathuis [Sun, 23 Dec 2007 00:02:18 +0000 (01:02 +0100)]
Minor cleanup.
Maarten Maathuis [Sat, 22 Dec 2007 23:18:13 +0000 (00:18 +0100)]
randr12: Always enable MPLL and NVPLL on pre-NV41 cards.
Maarten Maathuis [Sat, 22 Dec 2007 23:07:01 +0000 (00:07 +0100)]
randr12: Put all NV2x (and lower) cards into restricted mode.
Maarten Maathuis [Sat, 22 Dec 2007 22:55:19 +0000 (23:55 +0100)]
randr12: Correct CRTC selection for pre-NV40 cards.
Maarten Maathuis [Sat, 22 Dec 2007 22:39:51 +0000 (23:39 +0100)]
randr12: Older cards do have switchable CRTC's, i was again wrong.
Maarten Maathuis [Sat, 22 Dec 2007 22:23:32 +0000 (23:23 +0100)]
randr12: Minor cleanup to clock writing for pre-NV40 cards.
Arthur Huillet [Sat, 22 Dec 2007 17:44:36 +0000 (18:44 +0100)]
NV10EXA: disabled A8+A8 hack on PPC machines.
Ben Skeggs [Sat, 22 Dec 2007 12:18:57 +0000 (23:18 +1100)]
nv30: Don't touch 0x1a4
Maarten Maathuis [Sat, 22 Dec 2007 11:02:31 +0000 (12:02 +0100)]
randr12: Undo a previous mistake for NV1x/NV2x.
Stuart Bennett [Fri, 21 Dec 2007 20:18:57 +0000 (20:18 +0000)]
Beginnings of PLL limits for BMP bioses
And the correct way to use the debug_modes member (still disabled for now)
Stuart Bennett [Sat, 22 Dec 2007 02:57:40 +0000 (02:57 +0000)]
On demand PLL limit parsing for NV40
Also some nv_bios message formatting consistancy pedantry
Maarten Maathuis [Sat, 22 Dec 2007 00:29:38 +0000 (01:29 +0100)]
NV40EXA: Fix borders of images that recieved arbitrary rotation.
- It was getting padded up to the edge of the smallest square that could fit the rotated image.
- Please try this on older cards as well.
Maarten Maathuis [Sat, 22 Dec 2007 00:26:44 +0000 (01:26 +0100)]
randr12: Some minor changes.
Maarten Maathuis [Fri, 21 Dec 2007 17:02:33 +0000 (18:02 +0100)]
randr12: Restrict crtc's on nv1x and nv2x.
- If anyone can show a mmio-trace showing how to switch them (on cards that have a dcb table claiming they can), then please do.
Maarten Maathuis [Thu, 20 Dec 2007 23:05:37 +0000 (00:05 +0100)]
randr12: Detect switchable crtc's.
Peter Winters [Thu, 20 Dec 2007 22:47:11 +0000 (23:47 +0100)]
NV10 EXA: use the proper variable