nouveau
16 years agoUse the BMP structure's I2C info, instead of DCB 1.2's, as marcheu's bios is broken
Stuart Bennett [Wed, 5 Mar 2008 01:25:20 +0000 (01:25 +0000)] 
Use the BMP structure's I2C info, instead of DCB 1.2's, as marcheu's bios is broken

16 years agoAdd another DCB 1.4 entry
Stuart Bennett [Wed, 5 Mar 2008 00:38:15 +0000 (00:38 +0000)] 
Add another DCB 1.4 entry

16 years agoDon't zero out i2c_read and i2c_write
Stuart Bennett [Wed, 5 Mar 2008 00:34:16 +0000 (00:34 +0000)] 
Don't zero out i2c_read and i2c_write

pNv is calloc'd, so zero inited, and explicit zeroing overwrites the stuff parsed in parse_bmp_structure. Duh.

16 years agoPut braces around a bitmask.
Maarten Maathuis [Tue, 4 Mar 2008 20:18:49 +0000 (21:18 +0100)] 
Put braces around a bitmask.

16 years agoAdd an LVDS output setup quirk for Powerbooks
Stuart Bennett [Tue, 4 Mar 2008 13:34:16 +0000 (13:34 +0000)] 
Add an LVDS output setup quirk for Powerbooks

Again, as a result of much testing by moondrake and sbriglie.
Hopefully it even works this time :)

16 years agorandr12: Only change vpll value when needed.
Maarten Maathuis [Mon, 3 Mar 2008 18:04:09 +0000 (19:04 +0100)] 
randr12: Only change vpll value when needed.

16 years agorandr12: Keep the gamma values when setting a new mode, instead of always resetting...
Maarten Maathuis [Sun, 2 Mar 2008 19:25:45 +0000 (20:25 +0100)] 
randr12: Keep the gamma values when setting a new mode, instead of always resetting to default.

16 years agoImprove link_head_and_output
Stuart Bennett [Sat, 1 Mar 2008 15:05:09 +0000 (15:05 +0000)] 
Improve link_head_and_output

Thanks to moondrake and sbriglie for their work on this

16 years agonv30: Remove fix that is useless now, and maybe broken in some cases
Patrice Mandin [Fri, 29 Feb 2008 21:17:30 +0000 (22:17 +0100)] 
nv30: Remove fix that is useless now, and maybe broken in some cases

16 years agoLess magical way of setting dual link on EDID equipped panels
Stuart Bennett [Thu, 28 Feb 2008 00:43:17 +0000 (00:43 +0000)] 
Less magical way of setting dual link on EDID equipped panels

Eldritch coupling ftl

16 years agoNV40EXA: Support extend/repeat type pad.
Maarten Maathuis [Wed, 27 Feb 2008 22:45:34 +0000 (23:45 +0100)] 
NV40EXA: Support extend/repeat type pad.

- Note that all xservers, up to about a minute ago, did not try to accelerate repeat type reflect or pad.

16 years agoAdd default dual link transition frequency
Stuart Bennett [Wed, 27 Feb 2008 12:55:54 +0000 (12:55 +0000)] 
Add default dual link transition frequency

For card bios versions before the relevant field was added
Should fix Apple laptops.

16 years agoDeal with pre-nv40 laptops with EDID
Stuart Bennett [Tue, 26 Feb 2008 18:07:39 +0000 (18:07 +0000)] 
Deal with pre-nv40 laptops with EDID

16 years agoRevert dummy commit
Patrice Mandin [Fri, 22 Feb 2008 16:29:12 +0000 (17:29 +0100)] 
Revert dummy commit

16 years agoDummy commit
Patrice Mandin [Fri, 22 Feb 2008 16:27:51 +0000 (17:27 +0100)] 
Dummy commit

16 years agoUse some of nv_hw's functions in nv_bios.c
Stuart Bennett [Sun, 10 Feb 2008 23:14:52 +0000 (23:14 +0000)] 
Use some of nv_hw's functions in nv_bios.c

16 years agoUnbreak console restore again, and use a less ambiguous function name for head locking
Stuart Bennett [Wed, 20 Feb 2008 00:50:48 +0000 (00:50 +0000)] 
Unbreak console restore again, and use a less ambiguous function name for head locking

16 years agorandr12: rename NV*VGA functions for api consistency
Stuart Bennett [Tue, 19 Feb 2008 23:59:12 +0000 (23:59 +0000)] 
randr12: rename NV*VGA functions for api consistency

Also nuke NVCrtcSetOwner wrapper

16 years agoxv: don't crash on init
Ben Skeggs [Wed, 20 Feb 2008 13:55:39 +0000 (00:55 +1100)] 
xv: don't crash on init

16 years agorandr12: Only NV11 needs byteswapping + NV11 uses premultiplied cursors i think.
Maarten Maathuis [Wed, 20 Feb 2008 08:36:42 +0000 (09:36 +0100)] 
randr12: Only NV11 needs byteswapping + NV11 uses premultiplied cursors i think.

16 years agoNV30/40TEX: Create two adapters, one with fancy filtering, the default without.
Maarten Maathuis [Tue, 19 Feb 2008 23:14:12 +0000 (00:14 +0100)] 
NV30/40TEX: Create two adapters, one with fancy filtering, the default without.

- Also enable sync to vblank by default, strange that it was off.
- Remove the GET_TEXTURE(D)_PRIVATE macros, as one of them pointed to the blitter and one is now ambigious.

16 years agorandr12: make more hw funcs generic
Stuart Bennett [Thu, 14 Feb 2008 23:16:01 +0000 (23:16 +0000)] 
randr12: make more hw funcs generic

16 years agoUse fp strapping to determine whether straps are used for flat panel modes
Stuart Bennett [Tue, 19 Feb 2008 21:44:56 +0000 (21:44 +0000)] 
Use fp strapping to determine whether straps are used for flat panel modes

16 years agoRehabilitate bios opcode 6d
Stuart Bennett [Tue, 19 Feb 2008 14:53:41 +0000 (14:53 +0000)] 
Rehabilitate bios opcode 6d

16 years agoSpruce up NV04 bios parsing a little
Stuart Bennett [Tue, 19 Feb 2008 14:23:06 +0000 (14:23 +0000)] 
Spruce up NV04 bios parsing a little

16 years agoMore DCB v1.5 entries
Stuart Bennett [Tue, 19 Feb 2008 00:37:27 +0000 (00:37 +0000)] 
More DCB v1.5 entries

Courtesy HenneNWH's NV11

16 years agoTreat 0x4 and 0x8 bits in LVDS DCB v2.0 configuration as meaning the same thing
Stuart Bennett [Mon, 18 Feb 2008 17:32:43 +0000 (17:32 +0000)] 
Treat 0x4 and 0x8 bits in LVDS DCB v2.0 configuration as meaning the same thing

16 years agoFix PPC DFS/UTS by using PCIgart.
Danny Tholen [Mon, 18 Feb 2008 04:00:03 +0000 (05:00 +0100)] 
Fix PPC DFS/UTS by using PCIgart.

16 years agodri: fix broken display in some cases
Ben Skeggs [Fri, 15 Feb 2008 16:41:38 +0000 (03:41 +1100)] 
dri: fix broken display in some cases

16 years agoFix bios pll setting regression
Stuart Bennett [Wed, 13 Feb 2008 00:52:34 +0000 (00:52 +0000)] 
Fix bios pll setting regression

Oops.

16 years agoUse a loop to read RAMIN bios image, rather than memcpy
Stuart Bennett [Tue, 12 Feb 2008 18:20:43 +0000 (18:20 +0000)] 
Use a loop to read RAMIN bios image, rather than memcpy

16 years agorandr12: reorder some variable declarations in nv_crtc and nv_output
Stuart Bennett [Tue, 12 Feb 2008 17:23:38 +0000 (17:23 +0000)] 
randr12: reorder some variable declarations in nv_crtc and nv_output

16 years agorandr12: use integer math for scaling
Stuart Bennett [Tue, 12 Feb 2008 15:19:58 +0000 (15:19 +0000)] 
randr12: use integer math for scaling

No floats in modesetting path

16 years agorandr12: tidy up some mode retrieval stuff
Stuart Bennett [Tue, 12 Feb 2008 15:03:46 +0000 (15:03 +0000)] 
randr12: tidy up some mode retrieval stuff

16 years agoTrim useless nv_type members
Stuart Bennett [Mon, 11 Feb 2008 16:27:27 +0000 (16:27 +0000)] 
Trim useless nv_type members

Also, crtc_active isn't used on randr12 path

16 years agoRemove some DDX cruft
Stuart Bennett [Mon, 11 Feb 2008 01:42:04 +0000 (01:42 +0000)] 
Remove some DDX cruft

16 years agoUse mmio access wrappers and reorder some variable declarations in nv_bios.c
Stuart Bennett [Mon, 11 Feb 2008 00:34:27 +0000 (00:34 +0000)] 
Use mmio access wrappers and reorder some variable declarations in nv_bios.c

16 years agorandr12: Use absolute regs for 8 bit regs
Stuart Bennett [Mon, 11 Feb 2008 00:03:50 +0000 (00:03 +0000)] 
randr12: Use absolute regs for 8 bit regs

16 years agoMove non-crtc specific hw funcs from nv_crtc to nv_hw
Stuart Bennett [Fri, 8 Feb 2008 19:44:37 +0000 (19:44 +0000)] 
Move non-crtc specific hw funcs from nv_crtc to nv_hw

16 years agoOrdering mechanism for BIT table parsing, and (hopefully) automagic laptop detection
Stuart Bennett [Thu, 7 Feb 2008 02:04:20 +0000 (02:04 +0000)] 
Ordering mechanism for BIT table parsing, and (hopefully) automagic laptop detection

16 years agoReplace a const with its name.
Stephane Marchesin [Wed, 6 Feb 2008 21:18:46 +0000 (22:18 +0100)] 
Replace a const with its name.

16 years agoFix bad debugging in NVWritePVIO().
Maarten Maathuis [Wed, 6 Feb 2008 18:06:14 +0000 (19:06 +0100)] 
Fix bad debugging in NVWritePVIO().

16 years agoFix UV swapping on PPC.
Stephane Marchesin [Wed, 6 Feb 2008 16:44:52 +0000 (17:44 +0100)] 
Fix UV swapping on PPC.

16 years agoMissed out "DEBUG" part of the name in the define
Stuart Bennett [Mon, 4 Feb 2008 22:34:21 +0000 (22:34 +0000)] 
Missed out "DEBUG" part of the name in the define

16 years agoLoad correct PLL limits for single stage PLL cards with blank PLL tables
Stuart Bennett [Mon, 4 Feb 2008 22:31:02 +0000 (22:31 +0000)] 
Load correct PLL limits for single stage PLL cards with blank PLL tables

16 years agoOnce again kill usage of an exa private function.
Maarten Maathuis [Mon, 4 Feb 2008 06:47:06 +0000 (07:47 +0100)] 
Once again kill usage of an exa private function.

- Must have creeped back in during all the texture adapter changes recently.

16 years agoRemove include guards & add copyright.
Stephane Marchesin [Sun, 3 Feb 2008 16:15:50 +0000 (17:15 +0100)] 
Remove include guards & add copyright.

16 years agoLast round of fixes for nv30/40 bicubic Xv.
Stephane Marchesin [Sun, 3 Feb 2008 16:01:50 +0000 (17:01 +0100)] 
Last round of fixes for nv30/40 bicubic Xv.

16 years agoFix tearing.
Stephane Marchesin [Sun, 3 Feb 2008 05:07:35 +0000 (06:07 +0100)] 
Fix tearing.

16 years agoUnderstood and fixed some NV30 FP_CONTROL bits.
Stephane Marchesin [Sun, 3 Feb 2008 04:15:41 +0000 (05:15 +0100)] 
Understood and fixed some NV30 FP_CONTROL bits.

16 years agoFixes to nv30/nv40 textured video.
Stephane Marchesin [Sat, 2 Feb 2008 04:54:47 +0000 (05:54 +0100)] 
Fixes to nv30/nv40 textured video.

16 years agoMisc textured video fixes.
Stephane Marchesin [Thu, 31 Jan 2008 05:15:02 +0000 (06:15 +0100)] 
Misc textured video fixes.

16 years agoOf course, add the nv30 video texture file.
Stephane Marchesin [Thu, 31 Jan 2008 05:00:59 +0000 (06:00 +0100)] 
Of course, add the nv30 video texture file.

16 years agonv30 video texture. Doesn't work with bicubic yet, only bilinear.
Stephane Marchesin [Thu, 31 Jan 2008 04:59:08 +0000 (05:59 +0100)] 
nv30 video texture. Doesn't work with bicubic yet, only bilinear.

16 years agoRemove (void)ing that's not necessary any more.
Stephane Marchesin [Wed, 30 Jan 2008 01:38:14 +0000 (02:38 +0100)] 
Remove (void)ing that's not necessary any more.

16 years agoRemove unneeded stuff.
Stephane Marchesin [Wed, 30 Jan 2008 01:30:39 +0000 (02:30 +0100)] 
Remove unneeded stuff.

16 years agoSeparate the shaders from the rest of the code.
Stephane Marchesin [Wed, 30 Jan 2008 01:19:08 +0000 (02:19 +0100)] 
Separate the shaders from the rest of the code.

16 years agoMacros for the PME range.
Stephane Marchesin [Wed, 30 Jan 2008 01:18:26 +0000 (02:18 +0100)] 
Macros for the PME range.

16 years agoAdd PME range.
Stephane Marchesin [Wed, 30 Jan 2008 01:17:22 +0000 (02:17 +0100)] 
Add PME range.

16 years agoSmall cleanups.
Stephane Marchesin [Tue, 29 Jan 2008 20:25:28 +0000 (21:25 +0100)] 
Small cleanups.

16 years agonv40 video texture: first pass at bicubic video.
Stephane Marchesin [Tue, 29 Jan 2008 20:24:39 +0000 (21:24 +0100)] 
nv40 video texture: first pass at bicubic video.

16 years agoUpdate to newer nouveau_class.h
Stephane Marchesin [Mon, 28 Jan 2008 03:52:01 +0000 (04:52 +0100)] 
Update to newer nouveau_class.h

16 years agoUpdate to latest nouveau_class.h
Stephane Marchesin [Sat, 26 Jan 2008 18:02:50 +0000 (19:02 +0100)] 
Update to latest nouveau_class.h

16 years agoDon't FIRE_RING() when in NoAccel mode.
Jaime Velasco Juan [Sun, 3 Feb 2008 14:45:32 +0000 (15:45 +0100)] 
Don't FIRE_RING() when in NoAccel mode.

16 years agoSome minor reindenting.
Maarten Maathuis [Sun, 3 Feb 2008 14:43:35 +0000 (15:43 +0100)] 
Some minor reindenting.

16 years agoexa: those limits were a bit conservative on some hw.
Ben Skeggs [Sun, 3 Feb 2008 14:19:23 +0000 (01:19 +1100)] 
exa: those limits were a bit conservative on some hw.

AFAIK nv2x up should be able to handle 4096x4096 textures and
render targets.

16 years agoexa: more accurate coordinate limits
Ben Skeggs [Sun, 3 Feb 2008 14:07:07 +0000 (01:07 +1100)] 
exa: more accurate coordinate limits

16 years agoFix NVExaPixmapMap() for NOUVEAU_EXA_PIXMAPS case.
Maarten Maathuis [Sun, 3 Feb 2008 13:54:41 +0000 (14:54 +0100)] 
Fix NVExaPixmapMap() for NOUVEAU_EXA_PIXMAPS case.

16 years agoFix undefined symbol.
Maarten Maathuis [Sun, 3 Feb 2008 11:03:43 +0000 (12:03 +0100)] 
Fix undefined symbol.

16 years agoRemove a few leftovers to actually make the last commits work.
Maarten Maathuis [Sat, 2 Feb 2008 19:34:57 +0000 (20:34 +0100)] 
Remove a few leftovers to actually make the last commits work.

16 years agoKill NVShowHideCursor and use a wrapper.
Maarten Maathuis [Sat, 2 Feb 2008 18:53:32 +0000 (19:53 +0100)] 
Kill NVShowHideCursor and use a wrapper.

16 years agoRemove nvRead/WriteVGA in favor of nvRead/WriteCurVGA wrappers.
Maarten Maathuis [Sat, 2 Feb 2008 18:26:13 +0000 (19:26 +0100)] 
Remove nvRead/WriteVGA in favor of nvRead/WriteCurVGA wrappers.

16 years agoKill NVLockUnlock and make it redirect to NVLockUnlockHead.
Maarten Maathuis [Sat, 2 Feb 2008 18:17:32 +0000 (19:17 +0100)] 
Kill NVLockUnlock and make it redirect to NVLockUnlockHead.

16 years agoMore wrapper death.
Maarten Maathuis [Sat, 2 Feb 2008 14:12:00 +0000 (15:12 +0100)] 
More wrapper death.

16 years agoLet some wrappers die.
Maarten Maathuis [Sat, 2 Feb 2008 14:06:02 +0000 (15:06 +0100)] 
Let some wrappers die.

16 years agoUndo last commit and move it to drm.
Maarten Maathuis [Sat, 2 Feb 2008 11:47:32 +0000 (12:47 +0100)] 
Undo last commit and move it to drm.

16 years agoNV40: Fix longstanding issue with nouveau crashing after using blob.
Maarten Maathuis [Sat, 2 Feb 2008 11:28:44 +0000 (12:28 +0100)] 
NV40: Fix longstanding issue with nouveau crashing after using blob.

- Took me a while to track down, but for me this is definately it.
- In my case i got the X cross and then it would freeze and i would get a fifo dump.
- Don't be shy, let me know if this works for you too.

16 years agoDon't allocate the whole AGP gart as a scratch buffer, since we still need to allocat...
Stephane Marchesin [Sat, 2 Feb 2008 03:04:58 +0000 (04:04 +0100)] 
Don't allocate the whole AGP gart as a scratch buffer, since we still need to allocate the fifo afterwards.

16 years agoDon't use functions that are not supposed to be used in randr12 mode.
Maarten Maathuis [Fri, 1 Feb 2008 22:34:32 +0000 (23:34 +0100)] 
Don't use functions that are not supposed to be used in randr12 mode.

- Also add NVLockUnlockHead() and NVSetOwner() functions.

16 years agoRemove usage of "illegal" wrappers in code that also used for randr12 mode.
Maarten Maathuis [Fri, 1 Feb 2008 21:41:09 +0000 (22:41 +0100)] 
Remove usage of "illegal" wrappers in code that also used for randr12 mode.

- I've got something prettier in mind to clean this up, which will likely follow.

16 years agorandr12: Remove a hack, confirmed on 7600GS that it is unneeded.
Maarten Maathuis [Fri, 1 Feb 2008 18:14:38 +0000 (19:14 +0100)] 
randr12: Remove a hack, confirmed on 7600GS that it is unneeded.

- This was one of the cards that did need it in the past.

16 years agorandr12: Some minor fixes.
Maarten Maathuis [Fri, 1 Feb 2008 13:47:32 +0000 (14:47 +0100)] 
randr12: Some minor fixes.

16 years agoNV10 EXA: limit regcomb state re-emission, fix logic for A8 + A8 yielding a 3% perf...
Arthur Huillet [Fri, 1 Feb 2008 09:04:32 +0000 (10:04 +0100)] 
NV10 EXA: limit regcomb state re-emission, fix logic for A8 + A8 yielding a 3% perf improvement :p

16 years ago(hopefully) Fix build on powerpc.
Maarten Maathuis [Wed, 30 Jan 2008 21:57:09 +0000 (22:57 +0100)] 
(hopefully) Fix build on powerpc.

16 years agoXv: NV30 overlay can not scale down by more than 0.5x
Arthur Huillet [Wed, 30 Jan 2008 17:37:39 +0000 (18:37 +0100)] 
Xv: NV30 overlay can not scale down by more than 0.5x

16 years agoFail gracefully for too-big resolutions / colour depths
Stuart Bennett [Wed, 30 Jan 2008 17:43:16 +0000 (17:43 +0000)] 
Fail gracefully for too-big resolutions / colour depths

16 years agorandr12: Misc change.
Maarten Maathuis [Wed, 30 Jan 2008 17:50:37 +0000 (18:50 +0100)] 
randr12: Misc change.

16 years agoCheck if the framebuffer can fit into the offscreen memory.
Maarten Maathuis [Wed, 30 Jan 2008 17:35:18 +0000 (18:35 +0100)] 
Check if the framebuffer can fit into the offscreen memory.

16 years agoXv: NV04 overlay can not scale down at all, as confirmed by DirectFB
Arthur Huillet [Wed, 30 Jan 2008 17:24:44 +0000 (18:24 +0100)] 
Xv: NV04 overlay can not scale down at all, as confirmed by DirectFB

16 years agoPBUS define additions
Stuart Bennett [Wed, 30 Jan 2008 14:44:14 +0000 (14:44 +0000)] 
PBUS define additions

16 years agoPCRTC define additions
Stuart Bennett [Wed, 30 Jan 2008 14:35:25 +0000 (14:35 +0000)] 
PCRTC define additions

16 years agoMissed these in the ->absolute conversion
Stuart Bennett [Wed, 30 Jan 2008 15:03:06 +0000 (15:03 +0000)] 
Missed these in the ->absolute conversion

16 years agoXv: detection of composite for the overlay
Arthur Huillet [Tue, 29 Jan 2008 17:46:16 +0000 (18:46 +0100)] 
Xv: detection of composite for the overlay

16 years agoMake bios port io use PVIO as appropriate, and have harsh validity checks
Stuart Bennett [Wed, 30 Jan 2008 01:31:43 +0000 (01:31 +0000)] 
Make bios port io use PVIO as appropriate, and have harsh validity checks

16 years agoMake PLL setting quieter
Stuart Bennett [Wed, 30 Jan 2008 00:36:59 +0000 (00:36 +0000)] 
Make PLL setting quieter

16 years agoMove some regs from nv_bios.c to nvreg.h
Stuart Bennett [Tue, 29 Jan 2008 23:10:27 +0000 (23:10 +0000)] 
Move some regs from nv_bios.c to nvreg.h

And use more symbolic names in nv_bios

16 years agoTighten bios reg checks a little
Stuart Bennett [Tue, 29 Jan 2008 22:41:40 +0000 (22:41 +0000)] 
Tighten bios reg checks a little

16 years agorandr12: make nv4x plls less special
Stuart Bennett [Wed, 30 Jan 2008 00:30:46 +0000 (00:30 +0000)] 
randr12: make nv4x plls less special

16 years agoDon't attempt to parse BIT D and L tables on non-mobile cards
Stuart Bennett [Tue, 29 Jan 2008 22:33:34 +0000 (22:33 +0000)] 
Don't attempt to parse BIT D and L tables on non-mobile cards

16 years agoAdd some mobile pci-ids, and reorder numerically
Stuart Bennett [Tue, 29 Jan 2008 18:57:28 +0000 (18:57 +0000)] 
Add some mobile pci-ids, and reorder numerically