nouveau
16 years agorandr12: Improve speed of mode switches.
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.

16 years agoInfra for regs stored over suspend and a sort-of implementation of INIT_COMPUTE_MEM
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

16 years agoBetter bios register read function prototype and a ReadEXTDEV purge
Stuart Bennett [Thu, 3 Jan 2008 02:21:35 +0000 (02:21 +0000)] 
Better bios register read function prototype and a ReadEXTDEV purge

16 years agoRefactor NVParseBios
Stuart Bennett [Thu, 3 Jan 2008 00:52:12 +0000 (00:52 +0000)] 
Refactor NVParseBios

16 years agoRevert "randr12: LVDS screens use center mode."
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

16 years agoNV40: Handle broken VCO2 values.
Maarten Maathuis [Thu, 3 Jan 2008 21:45:00 +0000 (22:45 +0100)] 
NV40: Handle broken VCO2 values.

16 years agoNV40: A better attempt at YUV->RGB conversion constants + remove vblank sync.
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.

16 years agoNV40: Avoid a SIGFPE in nvGetClocks() when VCO2 is off.
Maarten Maathuis [Thu, 3 Jan 2008 11:48:43 +0000 (12:48 +0100)] 
NV40: Avoid a SIGFPE in nvGetClocks() when VCO2 is off.

16 years agoNV40: Actually add the attribute.
Maarten Maathuis [Thu, 3 Jan 2008 11:37:10 +0000 (12:37 +0100)] 
NV40: Actually add the attribute.

16 years agoAdd a vsync attribute to nv40 textured video. It doesn't seem to work so well for...
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.

16 years agorandr12: Hopefully these were all the function declerations that need updating.
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.

16 years agoDump some CARD8 and CARD32 in favour of uintX_t.
Maarten Maathuis [Tue, 1 Jan 2008 23:19:12 +0000 (00:19 +0100)] 
Dump some CARD8 and CARD32 in favour of uintX_t.

16 years agorandr12: Small fix for NV4x cards with strange output routes.
Maarten Maathuis [Tue, 1 Jan 2008 21:38:34 +0000 (22:38 +0100)] 
randr12: Small fix for NV4x cards with strange output routes.

16 years agorandr12: Improve output routing.
Maarten Maathuis [Tue, 1 Jan 2008 20:51:31 +0000 (21:51 +0100)] 
randr12: Improve output routing.

16 years agorandr12: Really hopefully fix output resource conflict detection now.
Maarten Maathuis [Tue, 1 Jan 2008 20:07:36 +0000 (21:07 +0100)] 
randr12: Really hopefully fix output resource conflict detection now.

16 years agorandr12: Hopefully fix output resource conflict detection.
Maarten Maathuis [Tue, 1 Jan 2008 19:38:24 +0000 (20:38 +0100)] 
randr12: Hopefully fix output resource conflict detection.

16 years agoForgot the NOUVEAU_EXA_PIXMAPS case.
Maarten Maathuis [Tue, 1 Jan 2008 18:41:07 +0000 (19:41 +0100)] 
Forgot the NOUVEAU_EXA_PIXMAPS case.

16 years agoStricter alignment requirements for offscreenBase, to avoid framebuffer corruption.
Maarten Maathuis [Tue, 1 Jan 2008 18:36:28 +0000 (19:36 +0100)] 
Stricter alignment requirements for offscreenBase, to avoid framebuffer corruption.

16 years agorandr12: Time to let some routing insanity die.
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?

16 years agorandr12: Always set bit 26 in FP_DEBUG_0 if already present.
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.

16 years agorandr12: Minor tweak to flatpanel regs.
Maarten Maathuis [Tue, 1 Jan 2008 16:01:19 +0000 (17:01 +0100)] 
randr12: Minor tweak to flatpanel regs.

16 years agoRemove AM_MAINTAINER_MODE from configure.ac
Maarten Maathuis [Tue, 1 Jan 2008 13:25:54 +0000 (14:25 +0100)] 
Remove AM_MAINTAINER_MODE from configure.ac

16 years agorandr12: Fix a bug in an earlier commit.
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.

16 years agorandr12: Add a quirk for 1280x800 panel on 7300go.
Maarten Maathuis [Mon, 31 Dec 2007 19:15:03 +0000 (20:15 +0100)] 
randr12: Add a quirk for 1280x800 panel on 7300go.

16 years agorandr12: Duplicate native modes, to avoid hitting an invalid pointer.
Maarten Maathuis [Mon, 31 Dec 2007 18:34:33 +0000 (19:34 +0100)] 
randr12: Duplicate native modes, to avoid hitting an invalid pointer.

16 years agorandr12: Set the adjusted mode in output code.
Maarten Maathuis [Mon, 31 Dec 2007 17:57:49 +0000 (18:57 +0100)] 
randr12: Set the adjusted mode in output code.

16 years agorandr12: Deal with output resources in a better way.
Maarten Maathuis [Mon, 31 Dec 2007 13:20:41 +0000 (14:20 +0100)] 
randr12: Deal with output resources in a better way.

16 years agorandr12: Disable crt load detect again, until i know how to use it properly.
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.

16 years agoRevert "randr12: Another quirk for the 7300GO cards."
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.

16 years agorandr12: Another quirk for the 7300GO cards.
Maarten Maathuis [Sun, 30 Dec 2007 16:07:13 +0000 (17:07 +0100)] 
randr12: Another quirk for the 7300GO cards.

16 years agorandr12: Fix quad view on some 7300GO cards.
Maarten Maathuis [Sun, 30 Dec 2007 15:44:23 +0000 (16:44 +0100)] 
randr12: Fix quad view on some 7300GO cards.

16 years agoAdd some headerfiles to Makefile.am
Maarten Maathuis [Sun, 30 Dec 2007 14:01:47 +0000 (15:01 +0100)] 
Add some headerfiles to Makefile.am

16 years agorandr12: Only load palette's when appropriate.
Maarten Maathuis [Sun, 30 Dec 2007 12:35:47 +0000 (13:35 +0100)] 
randr12: Only load palette's when appropriate.

16 years agoNV40: Some fixes and safeties.
Maarten Maathuis [Sun, 30 Dec 2007 12:26:24 +0000 (13:26 +0100)] 
NV40: Some fixes and safeties.

16 years agoNV40: Fix some comments and a damage reporting bug.
Maarten Maathuis [Sun, 30 Dec 2007 10:36:10 +0000 (11:36 +0100)] 
NV40: Fix some comments and a damage reporting bug.

16 years agoNV40: Fix the texturing adapter when not rendering offscreen.
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.

16 years agorandr12: Minor cleanup.
Maarten Maathuis [Sat, 29 Dec 2007 21:34:32 +0000 (22:34 +0100)] 
randr12: Minor cleanup.

16 years agorandr12: Micro cleanup.
Maarten Maathuis [Sat, 29 Dec 2007 20:46:18 +0000 (21:46 +0100)] 
randr12: Micro cleanup.

16 years agoNVBIOS: Fix duallink detection.
Maarten Maathuis [Sat, 29 Dec 2007 19:15:25 +0000 (20:15 +0100)] 
NVBIOS: Fix duallink detection.

16 years agorandr12: Do not remove bits in DITHER register.
Maarten Maathuis [Sat, 29 Dec 2007 18:34:12 +0000 (19:34 +0100)] 
randr12: Do not remove bits in DITHER register.

16 years agoNV40: Preliminary Xv Texture Adaptor.
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 ;-)

16 years agoXv: nforce2 overlay can do yv12
Peter Winters [Sat, 29 Dec 2007 11:15:40 +0000 (12:15 +0100)] 
Xv: nforce2 overlay can do yv12

16 years agorandr12: LVDS screens use center mode.
Maarten Maathuis [Fri, 28 Dec 2007 20:11:49 +0000 (21:11 +0100)] 
randr12: LVDS screens use center mode.

16 years agoFix IFC on nv4/5 by using the proper object.
Andrew Randrianasulu [Fri, 28 Dec 2007 19:59:17 +0000 (20:59 +0100)] 
Fix IFC on nv4/5 by using the proper object.

16 years agoMake sure the CRTC regs are unlocked when doing bios init
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

16 years agoFake a DCB entry for cards from the pre-DCB era
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)

16 years agoMadness. Bios parsing for NV05
Stuart Bennett [Fri, 28 Dec 2007 07:36:58 +0000 (07:36 +0000)] 
Madness. Bios parsing for NV05

16 years agorandr12: Minor change.
Maarten Maathuis [Thu, 27 Dec 2007 19:01:14 +0000 (20:01 +0100)] 
randr12: Minor change.

16 years agorandr12: Small change.
Maarten Maathuis [Thu, 27 Dec 2007 18:50:27 +0000 (19:50 +0100)] 
randr12: Small change.

16 years agorandr12: minor change
Maarten Maathuis [Thu, 27 Dec 2007 18:25:00 +0000 (19:25 +0100)] 
randr12: minor change

16 years agorandr12: Undo unnecesary change.
Maarten Maathuis [Thu, 27 Dec 2007 17:37:30 +0000 (18:37 +0100)] 
randr12: Undo unnecesary change.

16 years agorandr12: Some fixes for LVDS and an odd 7300GO.
Maarten Maathuis [Thu, 27 Dec 2007 16:12:17 +0000 (17:12 +0100)] 
randr12: Some fixes for LVDS and an odd 7300GO.

16 years agoFix the setPLL optional code to actually compile
Stuart Bennett [Wed, 26 Dec 2007 20:59:36 +0000 (20:59 +0000)] 
Fix the setPLL optional code to actually compile

16 years agoFix up getting modes for both TMDS and LVDS
Stuart Bennett [Wed, 26 Dec 2007 21:31:16 +0000 (21:31 +0000)] 
Fix up getting modes for both TMDS and LVDS

16 years agorandr12: Remove this, since it's not essential and can cause problems.
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.

16 years agorandr12: Some minor fixed for dvi and lvds.
Maarten Maathuis [Wed, 26 Dec 2007 19:28:43 +0000 (20:28 +0100)] 
randr12: Some minor fixed for dvi and lvds.

16 years agorandr12: Some assorted fixes for dual link outputs.
Maarten Maathuis [Wed, 26 Dec 2007 13:51:49 +0000 (14:51 +0100)] 
randr12: Some assorted fixes for dual link outputs.

16 years agoOn some chips we shouldn't look for a 27MHz crystal
Stuart Bennett [Tue, 25 Dec 2007 23:50:10 +0000 (23:50 +0000)] 
On some chips we shouldn't look for a 27MHz crystal

16 years agorandr12: Some minor changes.
Maarten Maathuis [Tue, 25 Dec 2007 18:43:47 +0000 (19:43 +0100)] 
randr12: Some minor changes.

16 years agorandr12: Restrict TMDS register backup to digital outputs.
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 ;-)

16 years agoBetter (not complete) support for DCB1.1/1.2
Stuart Bennett [Mon, 24 Dec 2007 22:33:21 +0000 (22:33 +0000)] 
Better (not complete) support for DCB1.1/1.2

16 years ago"type1" bios scripts
Stuart Bennett [Mon, 24 Dec 2007 21:00:31 +0000 (21:00 +0000)] 
"type1" bios scripts

16 years agoRehabilitate BMP parsing
Stuart Bennett [Mon, 24 Dec 2007 18:13:47 +0000 (18:13 +0000)] 
Rehabilitate BMP parsing

16 years agoFix BMP length for version 5.16
Stuart Bennett [Mon, 24 Dec 2007 22:51:51 +0000 (22:51 +0000)] 
Fix BMP length for version 5.16

16 years agorandr12: use new PLL code on < NV40
Stuart Bennett [Mon, 24 Dec 2007 15:23:41 +0000 (15:23 +0000)] 
randr12: use new PLL code on < NV40

16 years agosetPLL routines for single and two stage plls
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

16 years agoTwo stage nv31 PLL mnp calculator and bios limits parsing
Stuart Bennett [Mon, 24 Dec 2007 02:29:54 +0000 (02:29 +0000)] 
Two stage nv31 PLL mnp calculator and bios limits parsing

16 years agoSingle stage PLL MNP calculator
Stuart Bennett [Sun, 23 Dec 2007 03:09:26 +0000 (03:09 +0000)] 
Single stage PLL MNP calculator

16 years agoReading into the -1 index of array is a bad idea, this should fix subchannel binding...
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.

16 years agorandr12: Add modesetting debug option (showing most register writes).
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.

16 years agoNV40EXA: Suport as many of the repeat types as possible + random cleanup(randr12).
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).

16 years agoRevert a manifestation of my stupidity.
Arthur Huillet [Sun, 23 Dec 2007 12:49:24 +0000 (13:49 +0100)] 
Revert a manifestation of my stupidity.

16 years agoXv: added an attribute to change the CRTC the overlay is on - useful with dualhead
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

16 years agoaunedsoau~
Arthur Huillet [Sat, 22 Dec 2007 22:32:36 +0000 (23:32 +0100)] 
aunedsoau~

16 years agorandr12: Extend dvi clock setting to nv3x also + cleanup.
Maarten Maathuis [Sun, 23 Dec 2007 10:46:17 +0000 (11:46 +0100)] 
randr12: Extend dvi clock setting to nv3x also + cleanup.

16 years agorandr12: Actually load the default palette on modeset.
Maarten Maathuis [Sun, 23 Dec 2007 09:46:09 +0000 (10:46 +0100)] 
randr12: Actually load the default palette on modeset.

16 years agorandr12: Simplify code a bit by using the more sane code for NV4x also.
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.

16 years agoMinor cleanup.
Maarten Maathuis [Sun, 23 Dec 2007 00:02:18 +0000 (01:02 +0100)] 
Minor cleanup.

16 years agorandr12: Always enable MPLL and NVPLL on pre-NV41 cards.
Maarten Maathuis [Sat, 22 Dec 2007 23:18:13 +0000 (00:18 +0100)] 
randr12: Always enable MPLL and NVPLL on pre-NV41 cards.

16 years agorandr12: Put all NV2x (and lower) cards into restricted mode.
Maarten Maathuis [Sat, 22 Dec 2007 23:07:01 +0000 (00:07 +0100)] 
randr12: Put all NV2x (and lower) cards into restricted mode.

16 years agorandr12: Correct CRTC selection for pre-NV40 cards.
Maarten Maathuis [Sat, 22 Dec 2007 22:55:19 +0000 (23:55 +0100)] 
randr12: Correct CRTC selection for pre-NV40 cards.

16 years agorandr12: Older cards do have switchable CRTC's, i was again wrong.
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.

16 years agorandr12: Minor cleanup to clock writing for pre-NV40 cards.
Maarten Maathuis [Sat, 22 Dec 2007 22:23:32 +0000 (23:23 +0100)] 
randr12: Minor cleanup to clock writing for pre-NV40 cards.

16 years agoNV10EXA: disabled A8+A8 hack on PPC machines.
Arthur Huillet [Sat, 22 Dec 2007 17:44:36 +0000 (18:44 +0100)] 
NV10EXA: disabled A8+A8 hack on PPC machines.

16 years agonv30: Don't touch 0x1a4
Ben Skeggs [Sat, 22 Dec 2007 12:18:57 +0000 (23:18 +1100)] 
nv30: Don't touch 0x1a4

16 years agorandr12: Undo a previous mistake for NV1x/NV2x.
Maarten Maathuis [Sat, 22 Dec 2007 11:02:31 +0000 (12:02 +0100)] 
randr12: Undo a previous mistake for NV1x/NV2x.

16 years agoBeginnings of PLL limits for BMP bioses
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)

16 years agoOn demand PLL limit parsing for NV40
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

16 years agoNV40EXA: Fix borders of images that recieved arbitrary rotation.
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.

16 years agorandr12: Some minor changes.
Maarten Maathuis [Sat, 22 Dec 2007 00:26:44 +0000 (01:26 +0100)] 
randr12: Some minor changes.

16 years agorandr12: Restrict crtc's on nv1x and nv2x.
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.

16 years agorandr12: Detect switchable crtc's.
Maarten Maathuis [Thu, 20 Dec 2007 23:05:37 +0000 (00:05 +0100)] 
randr12: Detect switchable crtc's.

16 years agoNV10 EXA: use the proper variable
Peter Winters [Thu, 20 Dec 2007 22:47:11 +0000 (23:47 +0100)] 
NV10 EXA: use the proper variable

16 years agorandr12: fix old and new style scaling for LVDS, and use an enum for the scaling...
Stuart Bennett [Wed, 19 Dec 2007 23:44:23 +0000 (23:44 +0000)] 
randr12: fix old and new style scaling for LVDS, and use an enum for the scaling modes

16 years agorandr12: Fix secondary (analog) outputs with ffs(or) != 3 on some NV4x cards.
Maarten Maathuis [Wed, 19 Dec 2007 23:07:29 +0000 (00:07 +0100)] 
randr12: Fix secondary (analog) outputs with ffs(or) != 3 on some NV4x cards.

16 years agorandr12: don't use invalid crtc pointer for lvds dpms
Stuart Bennett [Wed, 19 Dec 2007 04:29:34 +0000 (04:29 +0000)] 
randr12: don't use invalid crtc pointer for lvds dpms

16 years agoTurn LVDS panel on again, after resetting, when we're shutting down
Stuart Bennett [Wed, 19 Dec 2007 04:00:14 +0000 (04:00 +0000)] 
Turn LVDS panel on again, after resetting, when we're shutting down

16 years agominor link_head_and_output cleanup
Stuart Bennett [Tue, 18 Dec 2007 16:58:57 +0000 (16:58 +0000)] 
minor link_head_and_output cleanup

16 years agorandr12: CRTC member wasn't big enough
Stuart Bennett [Wed, 19 Dec 2007 03:43:59 +0000 (03:43 +0000)] 
randr12: CRTC member wasn't big enough

yay gcc. could fix console colour breakage

16 years agoNV10EXA: Fix rotation.
Maarten Maathuis [Tue, 18 Dec 2007 22:43:57 +0000 (23:43 +0100)] 
NV10EXA: Fix rotation.